diff options
author | Reed Riley <reed@riley.engineer> | 2022-01-19 08:36:35 -0500 |
---|---|---|
committer | Reed Riley <reed@riley.engineer> | 2022-01-19 13:35:19 -0500 |
commit | b2445ca61396528de927a86e74fc8de239bad05a (patch) | |
tree | 2d3cd28860a380b6ede61db321e894d765a93209 /pkgs/os-specific/linux/firejail | |
parent | e0bc22ad7bd758bd164d9f4fbbd972b56335c38c (diff) |
firejail: add apparmor support
Diffstat (limited to 'pkgs/os-specific/linux/firejail')
-rw-r--r-- | pkgs/os-specific/linux/firejail/default.nix | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/firejail/default.nix b/pkgs/os-specific/linux/firejail/default.nix index a747057edacdb..348be830562ff 100644 --- a/pkgs/os-specific/linux/firejail/default.nix +++ b/pkgs/os-specific/linux/firejail/default.nix @@ -1,4 +1,13 @@ -{ lib, stdenv, fetchFromGitHub, fetchpatch, which, xdg-dbus-proxy, nixosTests }: +{ lib +, stdenv +, fetchFromGitHub +, fetchpatch +, pkg-config +, libapparmor +, which +, xdg-dbus-proxy +, nixosTests +}: stdenv.mkDerivation rec { pname = "firejail"; @@ -11,7 +20,18 @@ stdenv.mkDerivation rec { sha256 = "sha256-oKstTiGt0r4wePaZ9u1o78GZ1XWJ27aS0BdLxmfYk9Q="; }; - buildInputs = [ which ]; + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + libapparmor + which + ]; + + configureFlags = [ + "--enable-apparmor" + ]; patches = [ # Adds the /nix directory when using an overlay. |