From afbd54c1817caa5b824743cfc468df58277b364b Mon Sep 17 00:00:00 2001 From: Franck Cuny <59291+fcuny@users.noreply.github.com> Date: Thu, 6 Feb 2025 08:45:49 -0800 Subject: install additional work related tools We're switching architecture too, so ensure we install the correct binaries. --- pkgs/hashi/default.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'pkgs/hashi') 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" ]; }; } -- cgit v1.2.3