libX11 is not in vice's rpath. this fixes it

This commit is contained in:
Sander van der Burg 2013-09-04 22:34:08 +02:00
parent 6eb240ed24
commit 1642e3a6d7
2 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, lib, perl, gettext, libpng, giflib, libjpeg, alsaLib, readline, mesa
{ stdenv, fetchurl, perl, gettext, libpng, giflib, libjpeg, alsaLib, readline, mesa, libX11
, pkgconfig, gtk, SDL, autoconf, automake, makeDesktopItem
}:
@ -28,15 +28,20 @@ stdenv.mkDerivation rec {
autoreconf -f -i
'';
NIX_LDFLAGS = "-lX11 -L${libX11}/lib";
postInstall = ''
mkdir -p $out/share/applications
cp ${desktopItem}/share/applications/* $out/share/applications
# Patch executables to find libX11
#patchelf --set-rpath $(patchelf --print-rpath $out/bin/x64):${libX11}/lib $out/bin/x64
'';
meta = {
description = "Commodore 64, 128 and other emulators";
homepage = http://www.viceteam.org;
license = "GPLv2+";
maintainers = [ lib.maintainers.sander ];
maintainers = [ stdenv.lib.maintainers.sander ];
};
}

View File

@ -9891,7 +9891,9 @@ let
thinkfan = callPackage ../tools/system/thinkfan { };
vice = callPackage ../misc/emulators/vice { };
vice = callPackage ../misc/emulators/vice {
libX11 = xlibs.libX11;
};
viewnior = callPackage ../applications/graphics/viewnior { };