Files
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

45 lines
1.2 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
systemd,
}:
rustPlatform.buildRustPackage rec {
pname = "nix-store-veritysetup-generator";
version = "0.1.0";
src = fetchFromGitHub {
owner = "nikstur";
repo = "nix-store-veritysetup-generator";
rev = version;
hash = "sha256-kQ+mFBnvxmEH2+z1sDaehGInEsBpfZu8LMAseGjZ3/I=";
};
sourceRoot = "${src.name}/rust";
cargoHash = "sha256-9DwED8X/RHjBCInm+VbzoeVSb28U+XIE2IjNAGon6+E=";
env = {
SYSTEMD_VERITYSETUP_PATH = "${systemd}/lib/systemd/systemd-veritysetup";
SYSTEMD_ESCAPE_PATH = "${systemd}/bin/systemd-escape";
};
# Use a fake path in tests so that they are not dependent on specific Nix
# Store paths and thus don't break on different Nixpkgs invocations. This is
# relevant so that this package can be compiled on different architectures.
preCheck = ''
export SYSTEMD_VERITYSETUP_PATH="systemd-veritysetup";
'';
stripAllList = [ "bin" ];
meta = with lib; {
description = "Systemd unit generator for a verity protected Nix Store";
homepage = "https://github.com/nikstur/nix-store-veritysetup-generator";
license = licenses.mit;
maintainers = with lib.maintainers; [ nikstur ];
mainProgram = "nix-store-veritysetup-generator";
};
}