diff options
author | Domen Kožar <domen@dev.si> | 2014-02-10 14:18:58 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2014-02-10 14:19:57 +0100 |
commit | e5124e7a0ea5514b9fa4334cd4fa474331f6e300 (patch) | |
tree | 8ea4e2f065fa1ddcd51a2a0f8246d2340313ce5a /pkgs/games | |
parent | e37afbf53c891d81b822eedf92a6767afb1858cb (diff) | |
download | nixlib-e5124e7a0ea5514b9fa4334cd4fa474331f6e300.tar nixlib-e5124e7a0ea5514b9fa4334cd4fa474331f6e300.tar.gz nixlib-e5124e7a0ea5514b9fa4334cd4fa474331f6e300.tar.bz2 nixlib-e5124e7a0ea5514b9fa4334cd4fa474331f6e300.tar.lz nixlib-e5124e7a0ea5514b9fa4334cd4fa474331f6e300.tar.xz nixlib-e5124e7a0ea5514b9fa4334cd4fa474331f6e300.tar.zst nixlib-e5124e7a0ea5514b9fa4334cd4fa474331f6e300.zip |
springlobby: specify spring run-time dependency paths
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/spring/springlobby.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/games/spring/springlobby.nix b/pkgs/games/spring/springlobby.nix index f522eef8eb91..34760db7c68d 100644 --- a/pkgs/games/spring/springlobby.nix +++ b/pkgs/games/spring/springlobby.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, cmake, wxGTK, openal, pkgconfig, curl, libtorrentRasterbar, libpng, libX11 -, gettext, bash, gawk, boost, libnotify, gtk, doxygen }: +, gettext, bash, gawk, boost, libnotify, gtk, doxygen, spring, makeWrapper }: stdenv.mkDerivation rec { name = "springlobby-${version}"; @@ -12,9 +12,11 @@ stdenv.mkDerivation rec { buildInputs = [ cmake wxGTK openal pkgconfig curl gettext libtorrentRasterbar boost libpng libX11 - libnotify gtk doxygen + libnotify gtk doxygen makeWrapper ]; + patches = [ ./unitsync_path_find.patch ]; + prePatch = '' substituteInPlace tools/regen_config_header.sh --replace "#!/usr/bin/env bash" "#!${bash}/bin/bash" substituteInPlace tools/test-susynclib.awk --replace "#!/usr/bin/awk" "#!${gawk}/bin/awk" @@ -26,13 +28,17 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - #buildPhase = "make VERBOSE=1"; + postInstall = '' + wrapProgram $out/bin/springlobby \ + --prefix PATH : "${spring}/bin" \ + --set SPRING_LIB_DIRS "${spring}/lib" + ''; meta = with stdenv.lib; { homepage = http://springlobby.info/; description = "Cross-platform lobby client for the Spring RTS project"; license = licenses.gpl2; - maintainers = [ maintainers.phreedom maintainers.qknight]; + maintainers = [ maintainers.phreedom maintainers.qknight maintainers.iElectric ]; platforms = platforms.linux; }; } |