mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
Merge pull request #194656 from arcnmx/parsec-bin
parsec-bin: init at 150_28
This commit is contained in:
commit
223e7d16ca
81
pkgs/applications/misc/parsec/bin.nix
Normal file
81
pkgs/applications/misc/parsec/bin.nix
Normal 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";
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user