Merge pull request #194656 from arcnmx/parsec-bin

parsec-bin: init at 150_28
This commit is contained in:
Thiago Kenji Okada 2022-10-10 22:28:58 +01:00 committed by GitHub
commit 223e7d16ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 83 additions and 0 deletions

View file

@ -0,0 +1,81 @@
{ stdenvNoCC, stdenv
, lib
, dpkg, autoPatchelfHook, makeWrapper
, fetchurl
, alsa-lib, openssl, udev
, libglvnd
, libX11, libXcursor, libXi, libXrandr
, libpulseaudio
, libva
, ffmpeg
}:
stdenvNoCC.mkDerivation {
pname = "parsec-bin";
version = "150_28";
src = fetchurl {
url = "https://web.archive.org/web/20220622215230id_/https://builds.parsecgaming.com/package/parsec-linux.deb";
sha256 = "1hfdzjd8qiksv336m4s4ban004vhv00cv2j461gc6zrp37s0fwhc";
};
unpackPhase = ''
runHook preUnpack
dpkg-deb -x $src .
runHook postUnpack
'';
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
libX11
libXcursor
libXi
libXrandr
];
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 LD_LIBRARY_PATH : "$runtimeDependenciesPath" \
--run "$prepareParsec"
runHook postInstall
'';
meta = with lib; {
homepage = "https://parsecgaming.com/";
description = "Remote streaming service client";
license = licenses.unfree;
maintainers = with maintainers; [ arcnmx ];
platforms = platforms.linux;
mainProgram = "parsecd";
};
}

View file

@ -30662,6 +30662,8 @@ with pkgs;
enableDbusUi = false;
};
parsec-bin = callPackage ../applications/misc/parsec/bin.nix { };
pavucontrol = callPackage ../applications/audio/pavucontrol { };
paraview = libsForQt5.callPackage ../applications/graphics/paraview { };