2024-10-15 23:31:58 +02:00
|
|
|
{ buildGoModule, fetchFromGitHub, git, lib }:
|
|
|
|
buildGoModule {
|
2024-10-12 18:19:18 +02:00
|
|
|
pname = "apparmor-d";
|
|
|
|
version = "unstable-2024-10-12";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-10-17 23:23:50 +02:00
|
|
|
rev = "93269e0596a8d416a9ee647146c983115da2f346";
|
2024-10-12 18:19:18 +02:00
|
|
|
owner = "roddhjav";
|
|
|
|
repo = "apparmor.d";
|
2024-10-17 23:23:50 +02:00
|
|
|
hash = "sha256-x8vnKEx/HZOweVX2Fu8ydGVpnS4gxsVJBbUWtKuwMUM=";
|
2024-10-12 18:19:18 +02:00
|
|
|
};
|
2024-10-15 23:31:58 +02:00
|
|
|
|
|
|
|
vendorHash = "sha256-YkOcpzn5AKFMDWUYbKY8DzGMiIMSyaDfexFmXv5HNQI=";
|
2024-10-12 18:19:18 +02:00
|
|
|
|
|
|
|
doCheck = false;
|
2024-10-15 23:31:58 +02:00
|
|
|
#dontBuild = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ git ];
|
2024-10-12 18:19:18 +02:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./apparmor-d-paths.patch
|
|
|
|
];
|
|
|
|
|
2024-10-16 09:06:29 +02:00
|
|
|
subPackages = [
|
|
|
|
"cmd/prebuild"
|
|
|
|
"cmd/aa-log"
|
|
|
|
];
|
|
|
|
|
2024-10-15 23:31:58 +02:00
|
|
|
postInstall = ''
|
2024-10-16 09:06:29 +02:00
|
|
|
mkdir -p $out/etc
|
2024-10-15 23:31:58 +02:00
|
|
|
|
2024-10-17 19:12:24 +02:00
|
|
|
DISTRIBUTION=opensuse $out/bin/prebuild --abi 4 # fixme: replace with nixos support once available
|
2024-10-15 23:31:58 +02:00
|
|
|
|
|
|
|
mv .build/apparmor.d $out/etc
|
2024-10-16 09:06:29 +02:00
|
|
|
rm $out/bin/prebuild
|
2024-10-12 18:19:18 +02:00
|
|
|
'';
|
2024-10-15 23:31:58 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Full set of AppArmor profiles (~ 1500 profiles) ";
|
|
|
|
homepage = "https://github.com/roddhjav/apparmor.d";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
mainProgram = "aa-log";
|
|
|
|
maintainers = with lib.maintainers; [ grimmauld ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
2024-10-12 18:19:18 +02:00
|
|
|
}
|