mirror of
https://github.com/ihaveamac/ninfs.git
synced 2025-06-18 08:55:34 -04:00
nix: add mountAliases option
This commit is contained in:
parent
45b3c2603a
commit
5898401dae
@ -14,6 +14,8 @@
|
||||
stdenv,
|
||||
|
||||
withGUI ? true,
|
||||
# this should probably be an option within python
|
||||
mountAliases ? true,
|
||||
|
||||
}:
|
||||
|
||||
@ -54,6 +56,10 @@ buildPythonApplication rec {
|
||||
|
||||
makeWrapperArgs = [ "--prefix PYTHONPATH : ${mfusepy}/${mfusepy.pythonModule.sitePackages}" ];
|
||||
|
||||
preFixup = lib.optionalString (!mountAliases) ''
|
||||
rm $out/bin/mount_*
|
||||
'';
|
||||
|
||||
postInstall = lib.optionalString (!stdenv.isDarwin) ''
|
||||
mkdir -p $out/share/{applications,icons}
|
||||
NINFS_USE_NINFS_EXECUTABLE_IN_DESKTOP=1 $out/bin/ninfs --install-desktop-entry $out/share
|
||||
|
Loading…
Reference in New Issue
Block a user