From 062e241e425f3457019a44e88f7664c10ed50ff4 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 18 Dec 2024 09:05:00 -0800 Subject: add overlay for the hashi tool --- packages/hashi/default.nix | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 packages/hashi/default.nix (limited to 'packages/hashi/default.nix') diff --git a/packages/hashi/default.nix b/packages/hashi/default.nix new file mode 100644 index 0000000..54f71d1 --- /dev/null +++ b/packages/hashi/default.nix @@ -0,0 +1,35 @@ +{ 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 = builtins.trace "Attempting to fetch: ${url}" 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" ]; + }; +} + -- cgit 1.4.1