springlobby: specify spring run-time dependency paths
This commit is contained in:
parent
e37afbf53c
commit
e5124e7a0e
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, cmake, wxGTK, openal, pkgconfig, curl, libtorrentRasterbar, libpng, libX11
|
{ 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 {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
name = "springlobby-${version}";
|
name = "springlobby-${version}";
|
||||||
@ -12,9 +12,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
cmake wxGTK openal pkgconfig curl gettext libtorrentRasterbar boost libpng libX11
|
cmake wxGTK openal pkgconfig curl gettext libtorrentRasterbar boost libpng libX11
|
||||||
libnotify gtk doxygen
|
libnotify gtk doxygen makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
|
patches = [ ./unitsync_path_find.patch ];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace tools/regen_config_header.sh --replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
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"
|
substituteInPlace tools/test-susynclib.awk --replace "#!/usr/bin/awk" "#!${gawk}/bin/awk"
|
||||||
@ -26,13 +28,17 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
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; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://springlobby.info/;
|
homepage = http://springlobby.info/;
|
||||||
description = "Cross-platform lobby client for the Spring RTS project";
|
description = "Cross-platform lobby client for the Spring RTS project";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = [ maintainers.phreedom maintainers.qknight];
|
maintainers = [ maintainers.phreedom maintainers.qknight maintainers.iElectric ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user