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