Unverified Commit b4f215cc authored by nikstur's avatar nikstur Committed by GitHub
Browse files

erofs-utils: enable parallel building and add deflate support (#392187)

parents fb37e557 a0c27a7a
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -6,10 +6,12 @@
  pkg-config,
  fuse,
  util-linux,
  xxHash,
  lz4,
  xz,
  zlib,
  zstd,
  libdeflate,
  libselinux,
  fuseSupport ? stdenv.hostPlatform.isLinux,
  selinuxSupport ? false,
@@ -23,6 +25,9 @@ stdenv.mkDerivation (finalAttrs: {
    "man"
  ];

  enableParallelBuilding = true;
  strictDeps = true;

  src = fetchurl {
    url = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/erofs-utils-${finalAttrs.version}.tar.gz";
    hash = "sha256-zYYRJw6chv4GL2RxA8pq2p7XEORDD91ZYNUUd3kZIA0=";
@@ -35,16 +40,22 @@ stdenv.mkDerivation (finalAttrs: {
  buildInputs =
    [
      util-linux
      xxHash
      lz4
      zlib
      xz
      zstd
      libdeflate
    ]
    ++ lib.optionals fuseSupport [ fuse ]
    ++ lib.optionals selinuxSupport [ libselinux ];

  configureFlags =
    [ "MAX_BLOCK_SIZE=4096" ]
    [
      "MAX_BLOCK_SIZE=4096"
      "--enable-multithreading"
      "--with-libdeflate"
    ]
    ++ lib.optional fuseSupport "--enable-fuse"
    ++ lib.optional selinuxSupport "--with-selinux";