28 stdenvNoCC.mkDerivation {
33 url = "https://web.archive.org/web/20240725203323/https://builds.parsec.app/package/parsec-linux.deb";
34 sha256 = "sha256-9F56u+jYj2CClhbnGlLi65FxS1Vq00coxwu7mjVTY1w=";
44 stdenv.cc.cc # libstdc++
49 runtimeDependenciesPath = lib.makeLibraryPath [
69 binPath = lib.makeBinPath [
74 if [[ ! -e "$HOME/.parsec/appdata.json" ]]; then
75 mkdir -p "$HOME/.parsec"
76 cp --no-preserve=mode,ownership,timestamps ${placeholder "out"}/share/parsec/skel/* "$HOME/.parsec/"
86 wrapProgram $out/bin/parsecd \
87 --prefix PATH : "$binPath" \
88 --prefix LD_LIBRARY_PATH : "$runtimeDependenciesPath" \
89 --run "$prepareParsec"
91 substituteInPlace $out/share/applications/parsecd.desktop \
92 --replace "/usr/bin/parsecd" "parsecd" \
93 --replace "/usr/share/icons" "${placeholder "out"}/share/icons"
98 # Only the main binary needs to be patched, the wrapper script handles
99 # everything else. The libraries in `share/parsec/skel` would otherwise
100 # contain dangling references when copied out of the nix store.
101 dontAutoPatchelf = true;
106 autoPatchelf $out/bin
112 homepage = "https://parsec.app/";
113 changelog = "https://parsec.app/changelog";
114 description = "Remote streaming service client";
115 license = licenses.unfree;
116 maintainers = with maintainers; [
120 platforms = platforms.linux;
121 mainProgram = "parsecd";