From a4b98175c3ff3e27e951f725b297e4bafdcba786 Mon Sep 17 00:00:00 2001 From: Tom van Dijk <18gatenmaker6@gmail.com> Date: Mon, 28 Jul 2025 13:19:15 +0200 Subject: [PATCH] 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! --- contrib/package/nix/partyfuse/default.nix | 26 +++++++++++++++++++++++ flake.nix | 10 ++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 contrib/package/nix/partyfuse/default.nix diff --git a/contrib/package/nix/partyfuse/default.nix b/contrib/package/nix/partyfuse/default.nix new file mode 100644 index 00000000..59faa914 --- /dev/null +++ b/contrib/package/nix/partyfuse/default.nix @@ -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 + ''; +} diff --git a/flake.nix b/flake.nix index abab5217..61c8c2d7 100644 --- a/flake.nix +++ b/flake.nix @@ -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; };