mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
One downside of the way the nix ecosystem works is that MacFUSE needs to be installed manually. Luckily the script tells you that already!
27 lines
522 B
Nix
27 lines
522 B
Nix
{
|
|
stdenvNoCC,
|
|
copyparty,
|
|
python3,
|
|
makeBinaryWrapper,
|
|
}:
|
|
let
|
|
python = python3.withPackages (p: [ p.fusepy ]);
|
|
in
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "partyfuse";
|
|
inherit (copyparty) version meta;
|
|
src = ../../../..;
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm444 bin/partyfuse.py -t $out/share/copyparty
|
|
makeWrapper ${python.interpreter} $out/bin/partyfuse \
|
|
--add-flag $out/share/copyparty/partyfuse.py
|
|
|
|
runHook postInstall
|
|
'';
|
|
}
|