depot/third_party/nixpkgs/pkgs/by-name/ro/roddhjav-apparmor-rules/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

47 lines
1.3 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
unstableGitUpdater,
}:
stdenvNoCC.mkDerivation {
pname = "roddhjav-apparmor-rules";
version = "0-unstable-2024-09-19";
src = fetchFromGitHub {
owner = "roddhjav";
repo = "apparmor.d";
rev = "7a3a1f7725d07cbd7d969bba2649f31d330d1e40";
hash = "sha256-6P3dNNcPGPux/Epr0vIrEEl7To399UzJfb4Uq8MT5p4=";
};
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
];
};
}