c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
31 lines
760 B
Nix
31 lines
760 B
Nix
{ lib, buildGoModule, fetchFromGitHub, nix-update-script }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ejson2env";
|
|
version = "2.0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Shopify";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-HcUmFajbOUZ0T5Th6OA9WBtfTz646qLbXx8NVeJsVng=";
|
|
};
|
|
|
|
vendorHash = "sha256-agWcD8vFNde1SCdkRovMNPf+1KODxV8wW1mXvE0w/CI=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Decrypt EJSON secrets and export them as environment variables";
|
|
homepage = "https://github.com/Shopify/ejson2env";
|
|
maintainers = with maintainers; [ viraptor ];
|
|
license = licenses.mit;
|
|
mainProgram = "ejson2env";
|
|
};
|
|
}
|