summaryrefslogtreecommitdiff
path: root/pkgs/tools/networking/boundary/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/networking/boundary/default.nix')
-rw-r--r--pkgs/tools/networking/boundary/default.nix21
1 files changed, 11 insertions, 10 deletions
diff --git a/pkgs/tools/networking/boundary/default.nix b/pkgs/tools/networking/boundary/default.nix
index 1eb445cfd3e0..31fd2e70d4a8 100644
--- a/pkgs/tools/networking/boundary/default.nix
+++ b/pkgs/tools/networking/boundary/default.nix
@@ -2,25 +2,26 @@
stdenv.mkDerivation rec {
pname = "boundary";
- version = "0.2.0";
+ version = "0.2.2";
src =
let
inherit (stdenv.hostPlatform) system;
- suffix = {
+ selectSystem = attrs: attrs.${system} or (throw "Unsupported system: ${system}");
+ suffix = selectSystem {
x86_64-linux = "linux_amd64";
aarch64-linux = "linux_arm64";
x86_64-darwin = "darwin_amd64";
- }.${system} or (throw "Unsupported system: ${system}");
- fetchsrc = version: sha256: fetchzip {
- url = "https://releases.hashicorp.com/boundary/${version}/boundary_${version}_${suffix}.zip";
- sha256 = sha256.${system};
+ };
+ sha256 = selectSystem {
+ x86_64-linux = "sha256-K9WlOS9pRhBcoGaSZ3AhbGoTfKUrn4SDq50x6wnIib8=";
+ aarch64-linux = "sha256-BRm0Hy9vuxZSYINrPIMwl2UGZdWTSixLT8EJ1OzCGMg=";
+ x86_64-darwin = "sha256-pinmzz6GbQWAj3Ut/IB2o75w8X+CS2tXhE6nekYO4vc=";
};
in
- fetchsrc version {
- x86_64-linux = "sha256-4h1Lx+Et1AfX75Cn0YUhV4MkEtzP6ICqAHVKex3PBpg=";
- aarch64-linux = "sha256-i7gzv8GdDgikPT1tMia4xltEYiIZ/VNRbAiGF2o8oKA=";
- x86_64-darwin = "sha256-tleIY1loPE61n59Qc9CJeropRUvTBbcIA8xmB1SaMt8=";
+ fetchzip {
+ url = "https://releases.hashicorp.com/boundary/${version}/boundary_${version}_${suffix}.zip";
+ inherit sha256;
};
dontConfigure = true;