diff options
author | Alexander Tsamutali <astsmtl@yandex.ru> | 2010-04-03 23:01:36 +0000 |
---|---|---|
committer | Alexander Tsamutali <astsmtl@yandex.ru> | 2010-04-03 23:01:36 +0000 |
commit | c68b4a9297c7ac4fda3fbfe2f898b1158b4df948 (patch) | |
tree | a7f745ec42e3967ad7335ff40147de330dad2b27 | |
parent | bb8a2181ada9a5eaadf4807f99e4af1c7d61f6ec (diff) | |
download | nixlib-c68b4a9297c7ac4fda3fbfe2f898b1158b4df948.tar nixlib-c68b4a9297c7ac4fda3fbfe2f898b1158b4df948.tar.gz nixlib-c68b4a9297c7ac4fda3fbfe2f898b1158b4df948.tar.bz2 nixlib-c68b4a9297c7ac4fda3fbfe2f898b1158b4df948.tar.lz nixlib-c68b4a9297c7ac4fda3fbfe2f898b1158b4df948.tar.xz nixlib-c68b4a9297c7ac4fda3fbfe2f898b1158b4df948.tar.zst nixlib-c68b4a9297c7ac4fda3fbfe2f898b1158b4df948.zip |
pkgs/games/warsow: Now mesa will be added to RPATH. Small cleanup.
svn path=/nixpkgs/trunk/; revision=20935
-rw-r--r-- | pkgs/games/warsow/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/games/warsow/default.nix b/pkgs/games/warsow/default.nix index e3d17e855d5a..5b6850b24aca 100644 --- a/pkgs/games/warsow/default.nix +++ b/pkgs/games/warsow/default.nix @@ -19,10 +19,9 @@ stdenv.mkDerivation rec { cd source unzip $src2 'basewsw/*' -d release ''; - inherit openal; patchPhase = '' - substituteInPlace Makefile --replace "openal-config" "pkg-config openal" - substituteInPlace snd_openal/snd_main.c --replace libopenal.so.0 $openal/lib/libopenal.so + substituteInPlace Makefile --replace openal-config 'pkg-config openal' + substituteInPlace snd_openal/snd_main.c --replace libopenal.so.0 ${openal}/lib/libopenal.so ''; buildInputs = [ unzip pkgconfig zlib curl libjpeg libvorbis libXxf86dga libXxf86vm libXinerama SDL mesa openal ]; @@ -38,6 +37,11 @@ stdenv.mkDerivation rec { cp -rv basewsw libs $dest cp -v warsow wsw_server wswtv_server $out/bin ''; + postFixup = '' + p=$out/opt/warsow/warsow.* + cur_rpath=$(patchelf --print-rpath $p) + patchelf --set-rpath $cur_rpath:${mesa}/lib $p + ''; meta = { description = "A multiplayer FPS designed for competitive gaming."; longDescription = '' |