mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
b7ef71665d
The build has been broken on master for a very long time, for want of an upgrade. This continues the effort put forth here: https://github.com/NixOS/nixpkgs/pull/63105 Note that while there are newer versions than this, upgrading to those requires getting some Cargo protobuf dependencies to compile. Since this fixes the failing build, it seems like a good start. Upstream does not appear to have any Darin builds in their CI, and we do not have a Darwin maintainer available, so this disables it as well.
39 lines
1 KiB
Nix
39 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig
|
|
, libsodium, libarchive, openssl, zeromq }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "habitat";
|
|
# Newer versions required protobuf, which requires some finesse to get to
|
|
# compile with the vendored protobuf crate.
|
|
version = "0.90.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "habitat-sh";
|
|
repo = "habitat";
|
|
rev = version;
|
|
sha256 = "0rwi0lkmhlq4i8fba3s9nd9ajhz2dqxzkgfp5i8y0rvbfmhmfd6b";
|
|
};
|
|
|
|
cargoSha256 = "08sncz0jgsr2s821j3s4bk7d54xqwmnld7m57avavym1xqvsnbmy";
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ libsodium libarchive openssl zeromq ];
|
|
|
|
cargoBuildFlags = ["--package hab"];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
echo "Running cargo test"
|
|
cargo test --package hab
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "An application automation framework";
|
|
homepage = "https://www.habitat.sh";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ rushmorem ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|