13 fuseSupport ? stdenv.hostPlatform.isLinux,
14 selinuxSupport ? false,
18 stdenv.mkDerivation (finalAttrs: {
19 pname = "erofs-utils";
27 url = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/erofs-utils-${finalAttrs.version}.tar.gz";
28 hash = "sha256-eRWHqgdLufn6IYx2LMH2CwFeL1G8ss6R9oLwQ4VqtJQ=";
41 ++ lib.optionals fuseSupport [ fuse ]
42 ++ lib.optionals selinuxSupport [ libselinux ]
43 ++ lib.optionals lzmaSupport [ xz ];
46 [ "MAX_BLOCK_SIZE=4096" ]
47 ++ lib.optional fuseSupport "--enable-fuse"
48 ++ lib.optional selinuxSupport "--with-selinux"
49 ++ lib.optional lzmaSupport "--enable-lzma";
52 homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/about/";
53 description = "Userspace utilities for linux-erofs file system";
54 changelog = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/tree/ChangeLog?h=v${version}";
55 license = with licenses; [ gpl2Plus ];
56 maintainers = with maintainers; [
61 platforms = platforms.unix;