1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-23 07:26:54 +00:00
nixpkgs/pkgs/applications/networking/cluster/habitat/default.nix

44 lines
1 KiB
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform, pkgconfig
2016-06-26 19:31:24 +01:00
, 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 {
2019-08-31 12:41:23 +01:00
pname = "habitat";
2017-02-19 02:23:58 +00:00
version = "0.30.2";
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;
2017-02-19 02:23:58 +00:00
sha256 = "0pqrm85pd9hqn5fwqjbyyrrfh4k7q9mi9qy9hm8yigk5l8mw44y1";
2016-06-25 20:44:54 +01:00
};
# Delete this on next update; see #79975 for details
legacyCargoFetcher = true;
cargoSha256 = "1ahfm5agvabqqqgjsyjb95xxbc7mng1mdyclcakwp1m1qdkxx9p0";
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
2017-02-19 02:23:58 +00:00
cargoBuildFlags = ["--package hab"];
checkPhase = ''
runHook preCheck
echo "Running cargo test"
cargo test --package hab
runHook postCheck
'';
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" ];
broken = true; # mark temporary as broken due git dependencies
2016-06-25 20:44:54 +01:00
};
}