Skip to content

Commit

Permalink
playonlinux: fix build
Browse files Browse the repository at this point in the history
(cherry picked from commit 93a9ac6)
  • Loading branch information
FRidh committed Apr 25, 2020
1 parent f18b838 commit 94e3962
Showing 1 changed file with 31 additions and 29 deletions.
60 changes: 31 additions & 29 deletions pkgs/applications/misc/playonlinux/default.nix
Expand Up @@ -9,7 +9,7 @@
, imagemagick
, netcat-gnu
, p7zip
, python2Packages
, python2
, unzip
, wget
, wine
Expand All @@ -27,25 +27,25 @@
let
version = "4.3.4";

binpath = stdenv.lib.makeBinPath
[ cabextract
python2Packages.python
gettext
glxinfo
gnupg
icoutils
imagemagick
netcat-gnu
p7zip
unzip
wget
wine
xdg-user-dirs
xterm
which
curl
jq
];
binpath = stdenv.lib.makeBinPath [
cabextract
python
gettext
glxinfo
gnupg
icoutils
imagemagick
netcat-gnu
p7zip
unzip
wget
wine
xdg-user-dirs
xterm
which
curl
jq
];

ld32 =
if stdenv.hostPlatform.system == "x86_64-linux" then "${stdenv.cc}/nix-support/dynamic-linker-m32"
Expand All @@ -54,6 +54,11 @@ let
ld64 = "${stdenv.cc}/nix-support/dynamic-linker";
libs = pkgs: stdenv.lib.makeLibraryPath [ xorg.libX11 libGL ];

python = python2.withPackages(ps: with ps; [
wxPython
setuptools
]);

in stdenv.mkDerivation {
pname = "playonlinux";
inherit version;
Expand All @@ -65,15 +70,13 @@ in stdenv.mkDerivation {

nativeBuildInputs = [ makeWrapper ];

buildInputs =
[ python2Packages.python
python2Packages.wxPython
python2Packages.setuptools
xorg.libX11
libGL
];
buildInputs = [
xorg.libX11
libGL
python
];

patchPhase = ''
postPatch = ''
patchShebangs python tests/python
sed -i "s/ %F//g" etc/PlayOnLinux.desktop
'';
Expand All @@ -85,7 +88,6 @@ in stdenv.mkDerivation {
install -D -m644 etc/PlayOnLinux.desktop $out/share/applications/playonlinux.desktop
makeWrapper $out/share/playonlinux/playonlinux $out/bin/playonlinux \
--prefix PYTHONPATH : $PYTHONPATH:$(toPythonPath "$out") \
--prefix PATH : ${binpath}
bunzip2 $out/share/playonlinux/bin/check_dd_x86.bz2
Expand Down

0 comments on commit 94e3962

Please sign in to comment.