summary refs log tree commit diff
path: root/pkgs/misc/emulators/vice
diff options
context:
space:
mode:
authorSander van der Burg <svanderburg@gmail.com>2013-09-04 22:34:08 +0200
committerSander van der Burg <svanderburg@gmail.com>2013-09-04 22:34:08 +0200
commit1642e3a6d79ee9c35f56d573cac1c682c0176fc4 (patch)
treeb3b6ba7b91ca4b6d789d501f9df339076c00b139 /pkgs/misc/emulators/vice
parent6eb240ed2448971ad8c261172b5ebbb74051a92d (diff)
downloadnixlib-1642e3a6d79ee9c35f56d573cac1c682c0176fc4.tar
nixlib-1642e3a6d79ee9c35f56d573cac1c682c0176fc4.tar.gz
nixlib-1642e3a6d79ee9c35f56d573cac1c682c0176fc4.tar.bz2
nixlib-1642e3a6d79ee9c35f56d573cac1c682c0176fc4.tar.lz
nixlib-1642e3a6d79ee9c35f56d573cac1c682c0176fc4.tar.xz
nixlib-1642e3a6d79ee9c35f56d573cac1c682c0176fc4.tar.zst
nixlib-1642e3a6d79ee9c35f56d573cac1c682c0176fc4.zip
libX11 is not in vice's rpath. this fixes it
Diffstat (limited to 'pkgs/misc/emulators/vice')
-rw-r--r--pkgs/misc/emulators/vice/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/misc/emulators/vice/default.nix b/pkgs/misc/emulators/vice/default.nix
index 12f1222553ef..6507730f74a6 100644
--- a/pkgs/misc/emulators/vice/default.nix
+++ b/pkgs/misc/emulators/vice/default.nix
@@ -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 ];
   };
 }