aboutsummaryrefslogtreecommitdiff
path: root/pkgs/hashi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/hashi/default.nix')
-rw-r--r--pkgs/hashi/default.nix19
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" ];
};
}