Merge pull request #16502 from rushmorem/new-habitat

habitat: init at 0.7.0
This commit is contained in:
Rushmore Mushambi 2016-06-25 21:59:30 +02:00 committed by GitHub
commit f1683ee7ef
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ stdenv, lib, fetchurl, fetchzip }:
let
version = "0.7.0";
linux = rec {
timestamp = "20160614230104";
src = fetchurl {
url = "https://dl.bintray.com/habitat/stable/linux/x86_64/hab-${version}-${timestamp}-x86_64-linux.tar.gz";
sha256 = "1xaclcswvqxwvrxxjv2kabx6v14bp2pwi514gvrvs90sv5ysxh87";
};
};
darwin = rec {
timestamp = "20160614231131";
src = fetchzip {
url = "https://dl.bintray.com/habitat/stable/darwin/x86_64/hab-${version}-${timestamp}-x86_64-darwin.zip";
sha256 = "1v158a38qch7ax6yxsdd1n89z6gb6fsaj776v11y4i8p7yhcc3a9";
};
};
in stdenv.mkDerivation rec {
inherit version;
name = "habitat-${version}";
src = if stdenv.isDarwin then darwin.src else linux.src;
installPhase =
''
mkdir -p $out/bin
cp -v hab $out/bin
'';
meta = with lib; {
description = "An application automation framework";
homepage = https://www.habitat.sh;
license = licenses.asl20;
maintainers = [ maintainers.rushmorem ];
platforms = [ "x86_64-linux" "x86_64-darwin" ];
};
}

View File

@ -1906,6 +1906,8 @@ in
haveged = callPackage ../tools/security/haveged { };
habitat = callPackage ../applications/networking/cluster/habitat { };
hardlink = callPackage ../tools/system/hardlink { };
hashcat = callPackage ../tools/security/hashcat { };