ninfs.nix: try to set PYTHONPATH including fusepy except on darwin

This commit is contained in:
ihaveahax 2024-10-08 20:08:01 -05:00
parent bdeedb3002
commit 0cec229e89
No known key found for this signature in database

View File

@ -14,10 +14,12 @@ buildPythonApplication rec {
pypng
tkinter
setuptools # missing from requirements.txt
fusepy
#fusepy # this gets added to PYTHONPATH manually in makeWrapperArgs
haccrypto
];
makeWrapperArgs = lib.optional (!stdenv.isDarwin) [ "--prefix PYTHONPATH : ${fusepy}/${fusepy.pythonModule.sitePackages}" ];
# ninfs includes its own copy of fusepy mainly for Windows support and fuse-t on macOS.
# This isn't needed when running on Linux, and on macOS, macFUSE is required anyway.
patchPhase = lib.optionalString (!stdenv.isDarwin) ''
@ -29,7 +31,6 @@ buildPythonApplication rec {
homepage = "https://github.com/ihaveamac/ninfs";
license = licenses.mit;
platforms = platforms.unix;
broken = !stdenv.isDarwin;
mainProgram = "ninfs";
};
}