From 0ed4dff7dd5a37ee89d8ca030eadb6c506d66a7e Mon Sep 17 00:00:00 2001 From: arcnmx Date: Thu, 24 Aug 2023 08:53:13 -0700 Subject: [PATCH] parsec-bin: avoid patching dylib in `share/parsec/skel` Only the main binary needs to be patched, the wrapper script handles everything else. --- pkgs/applications/misc/parsec/bin.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/applications/misc/parsec/bin.nix b/pkgs/applications/misc/parsec/bin.nix index 96d98867e9d6..f631312b6faa 100644 --- a/pkgs/applications/misc/parsec/bin.nix +++ b/pkgs/applications/misc/parsec/bin.nix @@ -90,6 +90,19 @@ stdenvNoCC.mkDerivation { runHook postInstall ''; + # Only the main binary needs to be patched, the wrapper script handles + # everything else. The libraries in `share/parsec/skel` would otherwise + # contain dangling references when copied out of the nix store. + dontAutoPatchelf = true; + + fixupPhase = '' + runHook preFixup + + autoPatchelf $out/bin + + runHook postFixup + ''; + meta = with lib; { homepage = "https://parsecgaming.com/"; changelog = "https://parsec.app/changelog";