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}";
|
2016-07-07 14:41:20 +01:00
|
|
|
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;
|
2016-07-07 14:41:20 +01:00
|
|
|
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
|
|
|
|
2016-07-07 14:41:20 +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" ];
|
|
|
|
};
|
|
|
|
}
|