blob: 505fa37fe2d7b913de0cc166e7c18e3cff591807 (
plain) (
blame)
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
|
{
mkDerivation,
lib,
libgeom,
libjail,
libzfs,
openssl,
zfs-data,
}:
mkDerivation {
path = "cddl/sbin/zfs";
extraPaths = [
"cddl/compat/opensolaris"
"cddl/sbin/zpool"
"sys/contrib/openzfs"
"sys/modules/zfs"
];
buildInputs = [
libgeom
libjail
libzfs
openssl
];
postPatch = ''
sed -i 's|/usr/share/zfs|${zfs-data}/share/zfs|' $BSDSRCDIR/cddl/sbin/zpool/Makefile
'';
# I lied, this is both zpool and zfs
preBuild = ''
make -C $BSDSRCDIR/cddl/sbin/zpool $makeFlags
make -C $BSDSRCDIR/cddl/sbin/zpool $makeFlags install
'';
outputs = [
"out"
"man"
"debug"
];
meta = {
platforms = lib.platforms.freebsd;
license = with lib.licenses; [
cddl
bsd2
];
};
}
|