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.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/hashi/default.nix b/pkgs/hashi/default.nix
new file mode 100644
index 0000000..97de12a
--- /dev/null
+++ b/pkgs/hashi/default.nix
@@ -0,0 +1,38 @@
+{
+ stdenv,
+ fetchurl,
+ lib,
+ ...
+}:
+let
+ url = "https://artifactory.rbx.com:443/artifactory/generic-rbx-local/hashi/0.1.4/bin/hashi_darwin-amd64";
+in
+stdenv.mkDerivation rec {
+ pname = "hashi";
+ version = "0.1.4";
+ src = fetchurl {
+ inherit url;
+ sha256 = "sha256-uX6AdOUfh6JEwS20kQwjp9Os12lVOGoCajOV9sYWXtA=";
+ };
+
+ installPhase = ''
+ mkdir -p $out/bin
+ cp $src $out/bin/hashi
+ chmod +x $out/bin/hashi
+ '';
+
+ dontUnpack = true;
+ dontStrip = true;
+ doInstallCheck = true;
+
+ installCheckPhase = ''
+ $out/bin/hashi -e sitetest3 version
+ '';
+
+ meta = with lib; {
+ description = "hashi command-line tool";
+ homepage = "http://go/hashicli";
+ license = licenses.unfree;
+ platforms = [ "x86_64-darwin" ];
+ };
+}