summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2021-05-20 13:14:07 +0200
committerGitHub <noreply@github.com>2021-05-20 13:14:07 +0200
commit61f412a75ff77d32c9cc701742bd146cce9cab42 (patch)
tree1ce28d34b971f0e4e64947141a7474c0bfecbc28
parent91f76f9fec2310e28b9cef9c99606e0a3ebe0f16 (diff)
parent2f2e8a0009e79e866464e061ee30a036ad8c94bb (diff)
downloadnixpkgs-61f412a75ff77d32c9cc701742bd146cce9cab42.tar
nixpkgs-61f412a75ff77d32c9cc701742bd146cce9cab42.tar.gz
nixpkgs-61f412a75ff77d32c9cc701742bd146cce9cab42.tar.bz2
nixpkgs-61f412a75ff77d32c9cc701742bd146cce9cab42.tar.lz
nixpkgs-61f412a75ff77d32c9cc701742bd146cce9cab42.tar.xz
nixpkgs-61f412a75ff77d32c9cc701742bd146cce9cab42.tar.zst
nixpkgs-61f412a75ff77d32c9cc701742bd146cce9cab42.zip
Merge pull request #123781 from 06kellyjac/boundary
boundary: 0.2.1 -> 0.2.2
-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 7604885eccd..31fd2e70d4a 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.1";
+  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-DDrsgZlnDF+WlBKyDi1McqcXEe5mAxoq5WW60p5qFQ8=";
-      aarch64-linux = "sha256-z9puhWmWf6G2C9PItKD4KL742UjVyVE/TDIu0gpOKd4=";
-      x86_64-darwin = "sha256-hDZPKi5R0seLbkHe7V4Vm+FarI6HrSZJF9JBJBa9O2Y=";
+    fetchzip {
+      url = "https://releases.hashicorp.com/boundary/${version}/boundary_${version}_${suffix}.zip";
+      inherit sha256;
     };
 
   dontConfigure = true;