2025-07-24 13:55:40 +02:00

73 lines
1.5 KiB
Nix

{
lib,
stdenv,
fetchurl,
autoreconfHook,
pkg-config,
fuse,
util-linux,
xxHash,
lz4,
xz,
zlib,
zstd,
libdeflate,
libselinux,
fuseSupport ? stdenv.hostPlatform.isLinux,
selinuxSupport ? false,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "erofs-utils";
version = "1.8.10";
outputs = [
"out"
"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-BetO3r4R3szm7LNOmNL4DIzSg8Lyln2Lp+/VhBhXBRQ=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
util-linux
xxHash
lz4
zlib
xz
zstd
libdeflate
]
++ lib.optionals fuseSupport [ fuse ]
++ lib.optionals selinuxSupport [ libselinux ];
configureFlags = [
"MAX_BLOCK_SIZE=4096"
"--enable-multithreading"
"--with-libdeflate"
]
++ lib.optional fuseSupport "--enable-fuse"
++ lib.optional selinuxSupport "--with-selinux";
meta = {
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/about/";
description = "Userspace utilities for linux-erofs file system";
changelog = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/tree/ChangeLog?h=v${finalAttrs.version}";
license = with lib.licenses; [ gpl2Plus ];
maintainers = with lib.maintainers; [
ehmry
nikstur
jmbaur
];
platforms = lib.platforms.unix;
};
})