tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
e2fsprogs: add withFuse option
Nikolay Korotkiy
2 years ago
d8c8ccae
af7fe85a
+4
-4
1 changed file
expand all
collapse all
unified
split
pkgs
tools
filesystems
e2fsprogs
default.nix
+4
-4
pkgs/tools/filesystems/e2fsprogs/default.nix
···
1
1
{ lib, stdenv, buildPackages, fetchurl, fetchpatch, pkg-config, libuuid, gettext, texinfo
2
2
-
, fuse
2
2
+
, withFuse ? stdenv.isLinux, fuse
3
3
, shared ? !stdenv.hostPlatform.isStatic
4
4
, e2fsprogs, runCommand
5
5
}:
···
15
15
16
16
# fuse2fs adds 14mb of dependencies
17
17
outputs = [ "bin" "dev" "out" "man" "info" ]
18
18
-
++ lib.optionals stdenv.isLinux [ "fuse2fs" ];
18
18
+
++ lib.optionals withFuse [ "fuse2fs" ];
19
19
20
20
depsBuildBuild = [ buildPackages.stdenv.cc ];
21
21
nativeBuildInputs = [ pkg-config texinfo ];
22
22
buildInputs = [ libuuid gettext ]
23
23
-
++ lib.optionals stdenv.isLinux [ fuse ];
23
23
+
++ lib.optionals withFuse [ fuse ];
24
24
25
25
patches = [
26
26
(fetchpatch { # avoid using missing __GNUC_PREREQ(X,Y)
···
63
63
if [ -f $out/lib/${pname}/e2scrub_all_cron ]; then
64
64
mv $out/lib/${pname}/e2scrub_all_cron $bin/bin/
65
65
fi
66
66
-
'' + lib.optionalString stdenv.isLinux ''
66
66
+
'' + lib.optionalString withFuse ''
67
67
mkdir -p $fuse2fs/bin
68
68
mv $bin/bin/fuse2fs $fuse2fs/bin/fuse2fs
69
69
'';