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
41 lines
683 B
Nix
41 lines
683 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
bison,
|
|
flex,
|
|
libsepol,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "checkpolicy";
|
|
version = "3.8.1";
|
|
inherit (libsepol) se_url;
|
|
|
|
src = fetchurl {
|
|
url = "${se_url}/${version}/checkpolicy-${version}.tar.gz";
|
|
sha256 = "sha256-e0d8UW4mk9i2xRE4YyMXfx19tRwuBOttDejKKzYSDl0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
bison
|
|
flex
|
|
];
|
|
buildInputs = [ libsepol ];
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
"LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a"
|
|
];
|
|
|
|
meta =
|
|
removeAttrs libsepol.meta [
|
|
"outputsToInstall"
|
|
"name"
|
|
]
|
|
// {
|
|
description = "SELinux policy compiler";
|
|
mainProgram = "checkpolicy";
|
|
};
|
|
}
|