ejson2env: update script and strip

This commit is contained in:
Stanisław Pitucha 2022-07-05 14:57:13 +10:00
parent 2c9deba079
commit 2924c3dcab

View file

@ -1,4 +1,4 @@
{ buildGoModule, fetchFromGitHub, lib }: { lib, buildGoModule, fetchFromGitHub, nix-update-script }:
buildGoModule rec { buildGoModule rec {
pname = "ejson2env"; pname = "ejson2env";
@ -14,9 +14,15 @@ buildGoModule rec {
vendorSha256 = "sha256-agWcD8vFNde1SCdkRovMNPf+1KODxV8wW1mXvE0w/CI="; vendorSha256 = "sha256-agWcD8vFNde1SCdkRovMNPf+1KODxV8wW1mXvE0w/CI=";
ldflags = [ ldflags = [
"-s"
"-w"
"-X main.version=${version}" "-X main.version=${version}"
]; ];
passthru.updateScript = nix-update-script {
attrPath = pname;
};
meta = with lib; { meta = with lib; {
description = "A tool to simplify storing secrets that should be accessible in the shell environment in your git repo."; 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"; homepage = "https://github.com/Shopify/ejson2env";