depot/third_party/nixpkgs/pkgs/by-name/ro/roddhjav-apparmor-rules/package.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

47 lines
1.3 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
unstableGitUpdater,
}:
stdenvNoCC.mkDerivation {
pname = "roddhjav-apparmor-rules";
version = "0-unstable-2024-06-27";
src = fetchFromGitHub {
owner = "roddhjav";
repo = "apparmor.d";
rev = "86b2f74a24fdf2957f6aad28fb999fa6a2e43e82";
hash = "sha256-ns6j8ChJpV4ryxajGmdbRlJj3eL8qRIYzrD4VPfTYDY=";
};
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
];
};
}