25 stdenvNoCC.mkDerivation {
30 url = "https://web.archive.org/web/20230531105208/https://builds.parsec.app/package/parsec-linux.deb";
31 sha256 = "sha256-wwBy86TdrHaH9ia40yh24yd5G84WTXREihR+9I6o6uU=";
42 nativeBuildInputs = [ dpkg autoPatchelfHook makeWrapper ];
45 stdenv.cc.cc # libstdc++
50 runtimeDependenciesPath = lib.makeLibraryPath [
70 if [[ ! -e "$HOME/.parsec/appdata.json" ]]; then
71 mkdir -p "$HOME/.parsec"
72 cp --no-preserve=mode,ownership,timestamps ${placeholder "out"}/share/parsec/skel/* "$HOME/.parsec/"
82 wrapProgram $out/bin/parsecd \
83 --prefix LD_LIBRARY_PATH : "$runtimeDependenciesPath" \
84 --run "$prepareParsec"
86 substituteInPlace $out/share/applications/parsecd.desktop \
87 --replace "/usr/bin/parsecd" "parsecd" \
88 --replace "/usr/share/icons" "${placeholder "out"}/share/icons"
93 # Only the main binary needs to be patched, the wrapper script handles
94 # everything else. The libraries in `share/parsec/skel` would otherwise
95 # contain dangling references when copied out of the nix store.
96 dontAutoPatchelf = true;
101 autoPatchelf $out/bin
107 homepage = "https://parsecgaming.com/";
108 changelog = "https://parsec.app/changelog";
109 description = "Remote streaming service client";
110 license = licenses.unfree;
111 maintainers = with maintainers; [ arcnmx ];
112 platforms = platforms.linux;
113 mainProgram = "parsecd";