blob: bfe01d51aef870e88076acf398a603683fc79942 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ 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" ];
};
}
|