Fixed fatal error with X11 and libGL while building playonlinux on unstable

This commit is contained in:
mtrsk 2019-03-06 19:39:21 -03:00 committed by Silvan Mosberger
parent 171eb304c6
commit dc4b9b30ed
No known key found for this signature in database
GPG Key ID: 9424360B4B85C9E7

View File

@ -20,6 +20,8 @@
, which
, curl
, jq
, xorg
, libGL
}:
let
@ -50,7 +52,7 @@ let
else if stdenv.hostPlatform.system == "i686-linux" then "${stdenv.cc}/nix-support/dynamic-linker"
else throw "Unsupported platform for PlayOnLinux: ${stdenv.hostPlatform.system}";
ld64 = "${stdenv.cc}/nix-support/dynamic-linker";
libs = pkgs: stdenv.lib.makeLibraryPath [ pkgs.xorg.libX11 ];
libs = pkgs: stdenv.lib.makeLibraryPath [ xorg.libX11 xorg.libX11.dev libGL ];
in stdenv.mkDerivation {
name = "playonlinux-${version}";
@ -66,6 +68,8 @@ in stdenv.mkDerivation {
[ python2Packages.python
python2Packages.wxPython
python2Packages.setuptools
xorg.libX11.dev
libGL
];
patchPhase = ''
@ -102,6 +106,5 @@ in stdenv.mkDerivation {
license = licenses.gpl3;
maintainers = [ maintainers.a1russell ];
platforms = [ "x86_64-linux" "i686-linux" ];
broken = true;
};
}