nixpkgs-suyu/pkgs/applications/networking/cluster/habitat/default.nix

41 lines
997 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform, pkgconfig
2016-06-26 20:31:24 +02:00
, libsodium, libarchive, openssl }:
2016-06-25 21:44:54 +02:00
2016-06-26 20:31:24 +02:00
with rustPlatform;
2016-06-25 21:44:54 +02:00
2016-06-26 20:31:24 +02:00
buildRustPackage rec {
name = "habitat-${version}";
2017-02-19 03:23:58 +01:00
version = "0.30.2";
2016-06-25 21:44:54 +02:00
2016-06-26 20:31:24 +02:00
src = fetchFromGitHub {
owner = "habitat-sh";
repo = "habitat";
rev = version;
2017-02-19 03:23:58 +01:00
sha256 = "0pqrm85pd9hqn5fwqjbyyrrfh4k7q9mi9qy9hm8yigk5l8mw44y1";
2016-06-25 21:44:54 +02:00
};
cargoSha256 = "1ahfm5agvabqqqgjsyjb95xxbc7mng1mdyclcakwp1m1qdkxx9p0";
2016-06-25 21:44:54 +02:00
2016-06-26 20:31:24 +02:00
buildInputs = [ libsodium libarchive openssl ];
2016-06-25 21:44:54 +02:00
2016-06-26 20:31:24 +02:00
nativeBuildInputs = [ pkgconfig ];
2016-06-25 21:44:54 +02:00
2017-02-19 03:23:58 +01:00
cargoBuildFlags = ["--package hab"];
checkPhase = ''
runHook preCheck
echo "Running cargo test"
cargo test --package hab
runHook postCheck
'';
2016-06-25 21:44:54 +02: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" ];
broken = true; # mark temporary as broken due git dependencies
2016-06-25 21:44:54 +02:00
};
}