mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
Merge pull request #16502 from rushmorem/new-habitat
habitat: init at 0.7.0
This commit is contained in:
commit
f1683ee7ef
43
pkgs/applications/networking/cluster/habitat/default.nix
Normal file
43
pkgs/applications/networking/cluster/habitat/default.nix
Normal 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" ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user