3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/cluster/habitat/default.nix

33 lines
826 B
Nix
Raw Normal View History

2016-06-26 19:31:24 +01:00
{ stdenv, lib, fetchFromGitHub, rustPlatform, pkgconfig
, libsodium, libarchive, openssl }:
2016-06-25 20:44:54 +01:00
2016-06-26 19:31:24 +01:00
with rustPlatform;
2016-06-25 20:44:54 +01:00
2016-06-26 19:31:24 +01:00
buildRustPackage rec {
name = "habitat-${version}";
version = "0.8.0";
2016-06-25 20:44:54 +01:00
2016-06-26 19:31:24 +01:00
src = fetchFromGitHub {
owner = "habitat-sh";
repo = "habitat";
rev = version;
sha256 = "1h9wv2v4hcv79jkkjf8j96lzxni9d51755zfflfr5s3ayaip7rzj";
2016-06-25 20:44:54 +01:00
};
2016-06-26 19:31:24 +01:00
sourceRoot = "habitat-${version}-src/components/hab";
2016-06-25 20:44:54 +01:00
depsSha256 = "1612jaw3zdrgrb56r755bb18l8szdmf1wi7p9lpv3d2gklqcb7l1";
2016-06-25 20:44:54 +01:00
2016-06-26 19:31:24 +01:00
buildInputs = [ libsodium libarchive openssl ];
2016-06-25 20:44:54 +01:00
2016-06-26 19:31:24 +01:00
nativeBuildInputs = [ pkgconfig ];
2016-06-25 20:44:54 +01:00
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" ];
};
}