2022-07-05 06:57:13 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nix-update-script }:
|
2022-03-04 06:52:10 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ejson2env";
|
2022-04-22 15:22:38 +02:00
|
|
|
version = "2.0.5";
|
2022-03-04 06:52:10 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Shopify";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-22 15:22:38 +02:00
|
|
|
sha256 = "sha256-HcUmFajbOUZ0T5Th6OA9WBtfTz646qLbXx8NVeJsVng=";
|
2022-03-04 06:52:10 +01:00
|
|
|
};
|
|
|
|
|
2022-04-22 15:22:38 +02:00
|
|
|
vendorSha256 = "sha256-agWcD8vFNde1SCdkRovMNPf+1KODxV8wW1mXvE0w/CI=";
|
2022-03-04 06:52:10 +01:00
|
|
|
|
2022-04-12 03:07:55 +02:00
|
|
|
ldflags = [
|
2022-07-05 06:57:13 +02:00
|
|
|
"-s"
|
|
|
|
"-w"
|
2022-04-12 03:07:55 +02:00
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2023-07-27 00:21:18 +02:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2022-07-05 06:57:13 +02:00
|
|
|
|
2022-03-04 06:52:10 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool to simplify storing secrets that should be accessible in the shell environment in your git repo.";
|
|
|
|
homepage = "https://github.com/Shopify/ejson2env";
|
|
|
|
maintainers = with maintainers; [ viraptor ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|