clean up apparmor.d submodules

This commit is contained in:
Grimmauld 2024-10-16 09:06:29 +02:00
parent 2cd93f01d9
commit e1789e9066
Signed by: Grimmauld
GPG Key ID: C2946668769F91FB

View File

@ -21,15 +21,18 @@ buildGoModule {
./apparmor-d-paths.patch ./apparmor-d-paths.patch
]; ];
subPackages = [
"cmd/prebuild"
"cmd/aa-log"
];
postInstall = '' postInstall = ''
mkdir -p $out/etc build/apparmor.d mkdir -p $out/etc
rm $out/bin/cmd $out/bin/aa DISTRIBUTION=arch $out/bin/prebuild --complain --abi 4 # fixme: replace with nixos support once available
mv $out/bin/prebuild build/prebuild
DISTRIBUTION=arch ./build/prebuild --complain --abi 4 # fixme: replace with nixos support once available
mv .build/apparmor.d $out/etc mv .build/apparmor.d $out/etc
rm $out/bin/prebuild
''; '';
meta = { meta = {