1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{
lib,
stdenv,
fetchurl,
autoreconfHook,
pkg-config,
fuse,
util-linux,
lz4,
xz,
zlib,
libselinux,
fuseSupport ? stdenv.isLinux,
selinuxSupport ? false,
lzmaSupport ? false,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "erofs-utils";
version = "1.8.1";
outputs = [
"out"
"man"
];
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-Xb97SS92gkYrl6dxIdQ8p2Cc2Q5l+MlpMa78ggpvDaM=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs =
[
util-linux
lz4
zlib
]
++ lib.optionals fuseSupport [ fuse ]
++ lib.optionals selinuxSupport [ libselinux ]
++ lib.optionals lzmaSupport [ xz ];
configureFlags =
[ "MAX_BLOCK_SIZE=4096" ]
++ lib.optional fuseSupport "--enable-fuse"
++ lib.optional selinuxSupport "--with-selinux"
++ lib.optional lzmaSupport "--enable-lzma";
meta = with lib; {
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${version}";
license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [
ehmry
nikstur
jmbaur
];
platforms = platforms.unix;
};
})
|