nix: add partyfuse

One downside of the way the nix ecosystem works is that MacFUSE needs to
be installed manually. Luckily the script tells you that already!
This commit is contained in:
Tom van Dijk 2025-07-28 13:19:15 +02:00
parent 71b052a98a
commit a4b98175c3
No known key found for this signature in database
GPG key ID: 7A984C8207ADBA51
2 changed files with 35 additions and 1 deletions

View file

@ -0,0 +1,26 @@
{
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
'';
}

View file

@ -17,6 +17,10 @@
ffmpeg = self.ffmpeg-full;
};
partyfuse = super.callPackage ./contrib/package/nix/partyfuse {
inherit copyparty;
};
u2c = super.callPackage ./contrib/package/nix/u2c {
inherit copyparty;
};
@ -35,7 +39,11 @@
in
{
packages = {
inherit (pkgs) copyparty u2c;
inherit (pkgs)
copyparty
partyfuse
u2c
;
default = self.packages.${system}.copyparty;
};