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.1244";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "habitat-sh";
|
|
repo = "habitat";
|
|
rev = version;
|
|
hash = "sha256-BNrBhDNR8sIafC9mgfL+1Q8c6BbjpFgLBElusydY/2o=";
|
|
};
|
|
|
|
cargoHash = "sha256-U4m3KzlU7XambNdwsdFuI5QPv2Fkm7Dwe264SRdHLak=";
|
|
|
|
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" ];
|
|
};
|
|
}
|