Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
840 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
pkg-config,
which,
buildPackages,
# apparmor deps
libapparmor,
# testing
perl,
}:
stdenv.mkDerivation {
pname = "apparmor-bin-utils";
inherit (libapparmor)
version
src
;
sourceRoot = "${libapparmor.src.name}/binutils";
nativeBuildInputs = [
pkg-config
libapparmor
which
];
buildInputs = [
libapparmor
];
makeFlags = [
"LANGS="
"USE_SYSTEM=1"
"POD2MAN=${lib.getExe' buildPackages.perl "pod2man"}"
"POD2HTML=${lib.getExe' buildPackages.perl "pod2html"}"
"MANDIR=share/man"
];
doCheck = true;
checkInputs = [ perl ];
installFlags = [
"DESTDIR=$(out)"
"BINDIR=$(out)/bin"
"SBINDIR=$(out)/bin"
];
meta = libapparmor.meta // {
description = "Mandatory access control system - binary user-land utilities";
};
}