7 stdenv.mkDerivation rec {
13 inherit (stdenv.hostPlatform) system;
14 selectSystem = attrs: attrs.${system} or (throw "Unsupported system: ${system}");
15 suffix = selectSystem {
16 x86_64-linux = "linux_amd64";
17 aarch64-linux = "linux_arm64";
18 x86_64-darwin = "darwin_amd64";
19 aarch64-darwin = "darwin_arm64";
22 x86_64-linux = "sha256-U7ZCmpmcZpgLkf2jwc35Q9jezxUzaKp85WX2Tqs5IFI=";
23 aarch64-linux = "sha256-gYbeC+f/EXfhzUtwojjvyEATri1XpHpu+JPQtj4oRb4=";
24 x86_64-darwin = "sha256-N6Uy5JiU9mW1/muHYF6Rf1KLX1iXYt/5ct1IHeFUgds=";
25 aarch64-darwin = "sha256-Oxfzy/9ggcJXS+tXiYmJXSiqbMKw4vv9RMquUuOlJ08=";
29 url = "https://releases.hashicorp.com/boundary/${version}/boundary_${version}_${suffix}.zip";
39 install -D boundary $out/bin/boundary
43 doInstallCheck = true;
44 installCheckPhase = ''
45 runHook preInstallCheck
46 $out/bin/boundary --help
47 $out/bin/boundary version
48 runHook postInstallCheck
52 dontPatchShebangs = true;
55 passthru.updateScript = ./update.sh;
58 homepage = "https://boundaryproject.io/";
59 changelog = "https://github.com/hashicorp/boundary/blob/v${version}/CHANGELOG.md";
60 description = "Enables identity-based access management for dynamic infrastructure";
62 Boundary provides a secure way to access hosts and critical systems
63 without having to manage credentials or expose your network, and is
66 Boundary is designed to be straightforward to understand, highly scalable,
67 and resilient. It can run in clouds, on-prem, secure enclaves and more,
68 and does not require an agent to be installed on every end host.
70 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
71 license = licenses.bsl11;
72 maintainers = with maintainers; [
76 platforms = platforms.unix;
77 mainProgram = "boundary";