git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #114244 from 06kellyjac/waypoint

waypoint: 0.2.2 -> 0.2.3

commitf1fda28592f830f68fd68f97cdb869f6d1573a17 authorSandro <sandro.jaeckel@gmail.com> dateThu 25 Feb 2021, 08:59 (6 years ago) parent6109c59c939abf
1 file changed+19−3
pkgs/applications/networking/cluster/waypoint/default.nix+19−3
pkgs/applications/networking/cluster/waypoint/default.nix+19−3
@@ -2,29 +2,45 @@
22
33buildGoModule rec {
44 pname = "waypoint";
5− version = "0.2.2";
5+ version = "0.2.3";
66
77 src = fetchFromGitHub {
88 owner = "hashicorp";
99 repo = pname;
1010 rev = "v${version}";
11− sha256 = "sha256-JeuVrlm6JB8MgSUmgMLQPuPmlKSScSdsVga9jUwLWHM=";
11+ sha256 = "sha256-FTBBDKFUoyC+Xdm3+2QWXK57fLwitYrFP89OvAyHHVY=";
1212 };
1313
1414 deleteVendor = true;
15− vendorSha256 = "sha256-ArebHOjP3zvpASVAoaPXpSbrG/jq+Jbx7+EaQ1uHSVY=";
15+ vendorSha256 = "sha256-ihelAumTRgLALevJdVq3V3SISitiRPCQZUh2h5/eczA=";
1616
1717 nativeBuildInputs = [ go-bindata ];
1818
1919 # GIT_{COMMIT,DIRTY} filled in blank to prevent trying to run git and ending up blank anyway
2020 buildPhase = ''
21+ runHook preBuild
2122 make bin GIT_DESCRIBE="v${version}" GIT_COMMIT="" GIT_DIRTY=""
23+ runHook postBuild
2224 '';
2325
2426 installPhase = ''
27+ runHook preInstall
2528 install -D waypoint $out/bin/waypoint
29+ runHook postInstall
2630 '';
2731
32+ doInstallCheck = true;
33+ installCheckPhase = ''
34+ runHook preInstallCheck
35+ # `version` tries to write to ~/.config/waypoint
36+ export HOME="$TMPDIR"
37+
38+ $out/bin/waypoint --help
39+ $out/bin/waypoint version # | grep "Waypoint v${version}"
40+ runHook postInstallCheck
41+ '';
42+
43+ # Binary is static
2844 dontPatchELF = true;
2945 dontPatchShebangs = true;
3046