summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authornikstur <nikstur@outlook.com>2023-11-03 18:38:15 +0100
committerGitHub <noreply@github.com>2023-11-03 18:38:15 +0100
commit937204ae055c37893900ad030b3ddd64c1ed52ad (patch)
treea57d3a0411fbc576389bd8e9274c5ff3aed498dd /pkgs
parent680d27d59135466c5669fca3ef57e8c3c026b406 (diff)
parent7db10104532e92a1513dcdfb5cf025593a5f78f3 (diff)
Merge pull request #243428 from wineee/erofs
erofs-utils: add selinuxSupport option
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/filesystems/erofs-utils/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/tools/filesystems/erofs-utils/default.nix b/pkgs/tools/filesystems/erofs-utils/default.nix
index dbf8de967d738..b57dcc4b3629a 100644
--- a/pkgs/tools/filesystems/erofs-utils/default.nix
+++ b/pkgs/tools/filesystems/erofs-utils/default.nix
@@ -1,5 +1,6 @@
-{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, fuse, util-linux, lz4, zlib
+{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, fuse, util-linux, lz4, zlib, libselinux
 , fuseSupport ? stdenv.isLinux
+, selinuxSupport ? false
 }:
 
 stdenv.mkDerivation rec {
@@ -15,11 +16,13 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ autoreconfHook pkg-config ];
   buildInputs = [ util-linux lz4 zlib ]
-    ++ lib.optionals fuseSupport [ fuse ];
+    ++ lib.optionals fuseSupport [ fuse ]
+    ++ lib.optionals selinuxSupport [ libselinux ];
 
   configureFlags = [
     "MAX_BLOCK_SIZE=4096"
-  ] ++ lib.optional fuseSupport "--enable-fuse";
+  ] ++ lib.optional fuseSupport "--enable-fuse"
+    ++ lib.optional selinuxSupport "--with-selinux";
 
   meta = with lib; {
     homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/about/";