diff options
| author | Franck Cuny <59291+fcuny@users.noreply.github.com> | 2025-02-06 08:45:49 -0800 |
|---|---|---|
| committer | Franck Cuny <59291+fcuny@users.noreply.github.com> | 2025-02-06 08:45:49 -0800 |
| commit | afbd54c1817caa5b824743cfc468df58277b364b (patch) | |
| tree | a8d99ee9492d455c722bfbbcad8c438e7d514f53 /pkgs/hashi/default.nix | |
| parent | new work laptop (diff) | |
| download | infra-afbd54c1817caa5b824743cfc468df58277b364b.tar.gz | |
install additional work related tools
We're switching architecture too, so ensure we install the correct
binaries.
Diffstat (limited to 'pkgs/hashi/default.nix')
| -rw-r--r-- | pkgs/hashi/default.nix | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/hashi/default.nix b/pkgs/hashi/default.nix index 97de12a..885282a 100644 --- a/pkgs/hashi/default.nix +++ b/pkgs/hashi/default.nix @@ -5,14 +5,23 @@ ... }: let - url = "https://artifactory.rbx.com:443/artifactory/generic-rbx-local/hashi/0.1.4/bin/hashi_darwin-amd64"; + version = "0.1.4"; + sources = { + aarch64-darwin = { + url = "https://artifactory.rbx.com:443/artifactory/generic-rbx-local/hashi/${version}/bin/hashi_darwin-arm64"; + sha256 = "sha256-FU7auH1BNdsJsHrWBytK7FJpOll9nx0i29Z5Jd18guI="; + }; + }; in stdenv.mkDerivation rec { pname = "hashi"; - version = "0.1.4"; + inherit version; + src = fetchurl { - inherit url; - sha256 = "sha256-uX6AdOUfh6JEwS20kQwjp9Os12lVOGoCajOV9sYWXtA="; + inherit (sources.${stdenv.hostPlatform.system}) + url + sha256 + ; }; installPhase = '' @@ -33,6 +42,6 @@ stdenv.mkDerivation rec { description = "hashi command-line tool"; homepage = "http://go/hashicli"; license = licenses.unfree; - platforms = [ "x86_64-darwin" ]; + platforms = [ "aarch64-darwin" ]; }; } |
