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
43 lines
785 B
Nix
43 lines
785 B
Nix
{
|
|
stdenv,
|
|
which,
|
|
callPackage,
|
|
|
|
# apparmor deps
|
|
libapparmor,
|
|
apparmor-parser,
|
|
apparmor-utils,
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "apparmor-profiles";
|
|
inherit (libapparmor) version src;
|
|
|
|
sourceRoot = "${libapparmor.src.name}/profiles";
|
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
installFlags = [
|
|
"DESTDIR=$(out)"
|
|
"EXTRAS_DEST=$(out)/share/apparmor/extra-profiles"
|
|
];
|
|
|
|
checkTarget = "check";
|
|
|
|
checkInputs = [
|
|
apparmor-parser
|
|
apparmor-utils
|
|
];
|
|
|
|
preCheck = ''
|
|
export USE_SYSTEM=1
|
|
export LOGPROF="aa-logprof --configdir ${callPackage ./test_config.nix { }} --no-check-mountpoint"
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = libapparmor.meta // {
|
|
description = "Mandatory access control system - profiles";
|
|
mainProgram = "apparmor_parser";
|
|
};
|
|
}
|