Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

124 lines
2.3 KiB
Nix

{
stdenvNoCC,
stdenv,
lib,
dpkg,
autoPatchelfHook,
makeWrapper,
fetchurl,
alsa-lib,
openssl,
udev,
libglvnd,
libX11,
libXcursor,
libXi,
libXrandr,
libXfixes,
libpulseaudio,
libva,
ffmpeg_7,
libpng,
libjpeg8,
curl,
vulkan-loader,
zenity,
}:
stdenvNoCC.mkDerivation {
pname = "parsec-bin";
version = "150_97c";
src = fetchurl {
url = "https://web.archive.org/web/20250226223019/https://builds.parsec.app/package/parsec-linux.deb";
sha256 = "sha256-8Wkbo6l1NGBPX2QMJszq+u9nLM96tu7WYRTQq6/CzM8=";
};
nativeBuildInputs = [
dpkg
autoPatchelfHook
makeWrapper
];
buildInputs = [
stdenv.cc.cc # libstdc++
libglvnd
libX11
];
runtimeDependenciesPath = lib.makeLibraryPath [
stdenv.cc.cc
libglvnd
openssl
udev
alsa-lib
libpulseaudio
libva
ffmpeg_7
libpng
libjpeg8
curl
libX11
libXcursor
libXi
libXrandr
libXfixes
vulkan-loader
];
binPath = lib.makeBinPath [
zenity
];
prepareParsec = ''
if [[ ! -e "$HOME/.parsec/appdata.json" ]]; then
mkdir -p "$HOME/.parsec"
cp --no-preserve=mode,ownership,timestamps ${placeholder "out"}/share/parsec/skel/* "$HOME/.parsec/"
fi
'';
installPhase = ''
runHook preInstall
mkdir $out
mv usr/* $out
wrapProgram $out/bin/parsecd \
--prefix PATH : "$binPath" \
--prefix LD_LIBRARY_PATH : "$runtimeDependenciesPath" \
--run "$prepareParsec"
substituteInPlace $out/share/applications/parsecd.desktop \
--replace "/usr/bin/parsecd" "parsecd" \
--replace "/usr/share/icons" "${placeholder "out"}/share/icons"
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://parsec.app/";
changelog = "https://parsec.app/changelog";
description = "Remote streaming service client";
license = licenses.unfree;
maintainers = with maintainers; [
arcnmx
pabloaul
];
platforms = platforms.linux;
mainProgram = "parsecd";
};
}