Files
nixpkgs/pkgs/by-name/ge/genealogos-cli/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.2 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
crate ? "cli",
}:
rustPlatform.buildRustPackage rec {
pname = "genealogos-${crate}";
version = "1.0.0";
src = fetchFromGitHub {
owner = "tweag";
repo = "genealogos";
tag = "v${version}";
hash = "sha256-EQrKInsrqlpjySX6duylo++2qwglB3EqGfLFJucOQM8=";
# Genealogos' fixture tests contain valid nix store paths, and are thus incompatible with a fixed-output-derivation.
# To avoid this, we just remove the tests
postFetch = ''
rm -r $out/genealogos/tests/
'';
};
cargoHash = "sha256-R3HQXPpTtqgXfc7nLNdJp5zUMEpfccKWOQtS5Y786Jc=";
cargoBuildFlags = [
"-p"
"genealogos-${crate}"
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
# Since most tests were removed, just skip testing
doCheck = false;
meta = {
description = "Nix sbom generator";
homepage = "https://github.com/tweag/genealogos";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ erin ];
changelog = "https://github.com/tweag/genealogos/blob/${src.tag}/CHANGELOG.md";
mainProgram =
{
api = "genealogos-api";
cli = "genealogos";
}
.${crate};
platforms = lib.platforms.unix;
};
}