Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
protobuf,
|
|
libsodium,
|
|
openssl,
|
|
xz,
|
|
zeromq,
|
|
cacert,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "habitat";
|
|
version = "1.6.1245";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "habitat-sh";
|
|
repo = "habitat";
|
|
rev = version;
|
|
hash = "sha256-n2ylJSCXPnnPHadfZaRS/3vxtnvkXhiTzCyObK7hmEk=";
|
|
};
|
|
|
|
cargoHash = "sha256-JMIAHupv3da71j5ID5ZR0mD7ZLLj4ktIs0aQrdWi3jU=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
protobuf
|
|
];
|
|
|
|
buildInputs = [
|
|
libsodium
|
|
openssl
|
|
xz
|
|
zeromq
|
|
];
|
|
|
|
cargoBuildFlags = [
|
|
"-p"
|
|
"hab"
|
|
];
|
|
cargoTestFlags = cargoBuildFlags;
|
|
|
|
env = {
|
|
OPENSSL_NO_VENDOR = true;
|
|
SODIUM_USE_PKG_CONFIG = true;
|
|
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Application automation framework";
|
|
homepage = "https://www.habitat.sh";
|
|
changelog = "https://github.com/habitat-sh/habitat/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [
|
|
rushmorem
|
|
qjoly
|
|
];
|
|
mainProgram = "hab";
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|