tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
fuse: use macfuse-stubs instead on Darwin
midchildan
5 years ago
c595604b
55b7888f
+18
-18
7 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
llfuse
default.nix
os-specific
darwin
macfuse
default.nix
tools
filesystems
bindfs
default.nix
s3fs
default.nix
unionfs-fuse
default.nix
top-level
all-packages.nix
python-packages.nix
+2
-4
pkgs/development/python-modules/llfuse/default.nix
···
1
1
{ lib, stdenv, fetchPypi, fetchpatch, buildPythonPackage, pkg-config, pytest, fuse, attr, which
2
2
-
, contextlib2, macfuse-stubs, DiskArbitration
2
2
+
, contextlib2
3
3
}:
4
4
5
5
buildPythonPackage rec {
···
21
21
22
22
nativeBuildInputs = [ pkg-config ];
23
23
24
24
-
buildInputs =
25
25
-
lib.optionals stdenv.isLinux [ fuse ]
26
26
-
++ lib.optionals stdenv.isDarwin [ DiskArbitration macfuse-stubs ];
24
24
+
buildInputs = [ fuse ];
27
25
28
26
checkInputs = [ pytest which ] ++
29
27
lib.optionals stdenv.isLinux [ attr ];
+7
-1
pkgs/os-specific/darwin/macfuse/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, cpio, xar, undmg, libtapi }:
1
1
+
{ lib, stdenv, fetchurl, cpio, xar, undmg, libtapi, DiskArbitration }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
pname = "macfuse-stubs";
···
10
10
};
11
11
12
12
nativeBuildInputs = [ cpio xar undmg libtapi ];
13
13
+
propagatedBuildInputs = [ DiskArbitration ];
13
14
14
15
postUnpack = ''
15
16
xar -xf 'Install macFUSE.pkg'
···
40
41
meta = with lib; {
41
42
homepage = "https://osxfuse.github.io";
42
43
description = "Build time stubs for FUSE on macOS";
44
44
+
longDescription = ''
45
45
+
macFUSE is required for this package to work on macOS. To install macFUSE,
46
46
+
use the installer from the <link xlink:href="https://osxfuse.github.io/">
47
47
+
project website</link>.
48
48
+
'';
43
49
platforms = platforms.darwin;
44
50
maintainers = with maintainers; [ midchildan ];
45
51
+2
-4
pkgs/tools/filesystems/bindfs/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, fuse, pkg-config, macfuse-stubs }:
1
1
+
{ lib, stdenv, fetchurl, fuse, pkg-config }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
version = "1.15.1";
···
10
10
};
11
11
12
12
nativeBuildInputs = [ pkg-config ];
13
13
-
buildInputs = if stdenv.isDarwin
14
14
-
then [ macfuse-stubs ]
15
15
-
else [ fuse ];
13
13
+
buildInputs = [ fuse ];
16
14
postFixup = ''
17
15
ln -s $out/bin/bindfs $out/bin/mount.fuse.bindfs
18
16
'';
+2
-4
pkgs/tools/filesystems/s3fs/default.nix
···
1
1
-
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, curl, openssl, libxml2, fuse, macfuse-stubs }:
1
1
+
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, curl, openssl, libxml2, fuse }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
pname = "s3fs-fuse";
···
11
11
sha256 = "sha256-Agb0tq7B98Ioe0G/XEZCYcFQKnMuYXX9x0yg4Gvu3/k=";
12
12
};
13
13
14
14
-
buildInputs = [ curl openssl libxml2 ]
15
15
-
++ lib.optionals stdenv.isLinux [ fuse ]
16
16
-
++ lib.optionals stdenv.isDarwin [ macfuse-stubs ];
14
14
+
buildInputs = [ curl openssl libxml2 fuse ];
17
15
nativeBuildInputs = [ autoreconfHook pkg-config ];
18
16
19
17
configureFlags = [
+3
-3
pkgs/tools/filesystems/unionfs-fuse/default.nix
···
1
1
-
{ lib, stdenv, fetchFromGitHub, cmake, fuse, macfuse-stubs }:
1
1
+
{ lib, stdenv, fetchFromGitHub, cmake, fuse }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
pname = "unionfs-fuse";
···
21
21
22
22
postPatch = lib.optionalString stdenv.isDarwin ''
23
23
substituteInPlace CMakeLists.txt \
24
24
-
--replace '/usr/local/include/osxfuse/fuse' '${macfuse-stubs}/include/fuse'
24
24
+
--replace '/usr/local/include/osxfuse/fuse' '${fuse}/include/fuse'
25
25
'';
26
26
27
27
nativeBuildInputs = [ cmake ];
28
28
-
buildInputs = [ (if stdenv.isDarwin then macfuse-stubs else fuse) ];
28
28
+
buildInputs = [ fuse ];
29
29
30
30
# Put the unionfs mount helper in place as mount.unionfs-fuse. This makes it
31
31
# possible to do:
+2
-1
pkgs/top-level/all-packages.nix
···
19273
19273
fusePackages = dontRecurseIntoAttrs (callPackage ../os-specific/linux/fuse {
19274
19274
util-linux = util-linuxMinimal;
19275
19275
});
19276
19276
-
fuse = lowPrio fusePackages.fuse_2;
19276
19276
+
fuse = lowPrio (if stdenv.isDarwin then macfuse-stubs else fusePackages.fuse_2);
19277
19277
fuse3 = fusePackages.fuse_3;
19278
19278
fuse-common = hiPrio fusePackages.fuse_3.common;
19279
19279
···
19412
19412
19413
19413
macfuse-stubs = callPackage ../os-specific/darwin/macfuse {
19414
19414
inherit (darwin) libtapi;
19415
19415
+
inherit (darwin.apple_sdk.frameworks) DiskArbitration;
19415
19416
};
19416
19417
19417
19418
osxsnarf = callPackage ../os-specific/darwin/osxsnarf { };
-1
pkgs/top-level/python-packages.nix
···
3968
3968
3969
3969
llfuse = callPackage ../development/python-modules/llfuse {
3970
3970
inherit (pkgs) fuse;
3971
3971
-
inherit (pkgs.darwin.apple_sdk.frameworks) DiskArbitration;
3972
3971
};
3973
3972
3974
3973
llvmlite = callPackage ../development/python-modules/llvmlite {