diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-06-02 21:54:33 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-06-02 22:01:40 -0300 |
commit | a78c3a93adc4bfc2761841b9363b2dc4fae448f1 (patch) | |
tree | 46614e0d7489c4b61e9a50f31ff5afbe10b99a8e | |
parent | 37f592134430521fe1b7dacf5946a82b7151b255 (diff) |
pomerium-cli: use new SRI hash format
-rw-r--r-- | pkgs/tools/security/pomerium-cli/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/tools/security/pomerium-cli/default.nix b/pkgs/tools/security/pomerium-cli/default.nix index 7dc7e3a7a903c..9463e0851898a 100644 --- a/pkgs/tools/security/pomerium-cli/default.nix +++ b/pkgs/tools/security/pomerium-cli/default.nix @@ -9,15 +9,17 @@ let in buildGoModule rec { pname = "pomerium-cli"; - version = pomerium.version; + inherit (pomerium) version; + src = fetchFromGitHub { owner = "pomerium"; repo = "cli"; rev = "v${version}"; - hash = "sha256:0230b22xjnpykj8bcdahzzlsvlrd63z2cmg6yb246c5ngjs835q1"; + hash = "sha256-AZeBtHy2MEPE8uZVJv4wLdOt6f9QNbaQnP5a2YVYYAg="; }; - vendorSha256 = "sha256:0xx22lmh6wip1d1bjrp4lgab3q9yilw54v4lg24lf3xhbsr5si9b"; + vendorSha256 = "sha256-K0Vdsl6wD0eJeJRsUjiNPuGx1KPkZrlCCzdyAysVonc="; + subPackages = [ "cmd/pomerium-cli" ]; @@ -45,7 +47,11 @@ buildGoModule rec { ]; installPhase = '' + runHook preInstall + install -Dm0755 $GOPATH/bin/pomerium-cli $out/bin/pomerium-cli + + runHook postInstall ''; meta = with lib; { |