firejail: add apparmor support

main
Reed Riley 2 years ago
parent e0bc22ad7b
commit b2445ca613
  1. 24
      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.

Loading…
Cancel
Save