Merge pull request #309051 from qubitnano/pr/popcorntime

popcorntime: 0.5.0 -> 0.5.1, add libGL
This commit is contained in:
Weijia Wang 2024-05-04 18:50:55 +02:00 committed by GitHub
commit fd97212d62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,7 @@
, gsettings-desktop-schemas , gsettings-desktop-schemas
, gtk3 , gtk3
, lib , lib
, libGL
, makeDesktopItem , makeDesktopItem
, makeWrapper , makeWrapper
, nwjs , nwjs
@ -16,11 +17,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "popcorntime"; pname = "popcorntime";
version = "0.5.0"; version = "0.5.1";
src = fetchurl { src = fetchurl {
url = "https://github.com/popcorn-official/popcorn-desktop/releases/download/v${version}/Popcorn-Time-${version}-linux64.zip"; url = "https://github.com/popcorn-official/popcorn-desktop/releases/download/v${version}/Popcorn-Time-${version}-linux64.zip";
hash = "sha256-A5G66KkCQ1AiOOO02dZFAVz6dqvComrd5lXQ4Wc1S0s="; hash = "sha256-lCsIioR252GWP/+wNwkTw5PLSal/M9x6mlR/EKOd/hs=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -45,7 +46,7 @@ stdenv.mkDerivation rec {
dontUnpack = true; dontUnpack = true;
makeWrapperArgs = [ makeWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ gcc-unwrapped.lib gtk3 udev ]}" "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ gcc-unwrapped.lib gtk3 udev libGL ]}"
"--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]}" "--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]}"
]; ];