depot/third_party/nixpkgs/pkgs/by-name/ro/roddhjav-apparmor-rules/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

47 lines
1.3 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
unstableGitUpdater,
}:
stdenvNoCC.mkDerivation {
pname = "roddhjav-apparmor-rules";
version = "0-unstable-2024-07-20";
src = fetchFromGitHub {
owner = "roddhjav";
repo = "apparmor.d";
rev = "d9ca201519ddd361987860efccf95babbe24163c";
hash = "sha256-cftNBgsoKnqlV8Lu41prvaNQ3AhTnHb3CvzGv+D1kU4=";
};
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/etc/apparmor.d
cp -r apparmor.d/* $out/etc/apparmor.d
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater { };
meta = {
homepage = "https://github.com/roddhjav/apparmor.d";
description = "Over 1500 AppArmor profiles aiming to confine most linux processes";
longDescription = ''
AppArmor.d is a set of over 1500 AppArmor profiles whose aim is to confine
most Linux based applications and processes. Confines all system services, user services
and most desktop environments. Currently supported DEs are GNOME, KDE and XFCE (partial).
If your DE is not listed in https://github.com/roddhjav/apparmor.d
Do not use this, else it may break your system.
'';
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [
johnrtitor
];
};
}