2013-03-30 19:04:31 +00:00
|
|
|
{ stdenv, fetchurl, cmake, wxGTK, openal, pkgconfig, curl, libtorrentRasterbar, libpng, libX11
|
2014-02-10 13:18:58 +00:00
|
|
|
, gettext, bash, gawk, boost, libnotify, gtk, doxygen, spring, makeWrapper }:
|
2010-11-13 07:47:04 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2012-03-08 15:32:20 +00:00
|
|
|
name = "springlobby-${version}";
|
2014-06-08 18:39:46 +01:00
|
|
|
version = "0.195";
|
2010-11-13 07:47:04 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.springlobby.info/tarballs/springlobby-${version}.tar.bz2";
|
2014-06-08 18:39:46 +01:00
|
|
|
sha256 = "0hxxm97c74rvm78vlfn2byn0zjlrhankxdrs2hz73rdq6451h10b";
|
2010-11-13 07:47:04 +00:00
|
|
|
};
|
|
|
|
|
2013-12-04 02:25:05 +00:00
|
|
|
buildInputs = [
|
2014-09-19 18:56:08 +01:00
|
|
|
cmake wxGTK openal pkgconfig curl gettext libtorrentRasterbar
|
2014-10-01 20:55:40 +01:00
|
|
|
boost libpng libX11 libnotify gtk doxygen makeWrapper
|
2013-12-04 02:25:05 +00:00
|
|
|
];
|
2010-11-13 07:47:04 +00:00
|
|
|
|
|
|
|
prePatch = ''
|
2012-02-29 14:29:49 +00:00
|
|
|
substituteInPlace tools/regen_config_header.sh --replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2010-11-13 07:47:04 +00:00
|
|
|
substituteInPlace tools/test-susynclib.awk --replace "#!/usr/bin/awk" "#!${gawk}/bin/awk"
|
|
|
|
substituteInPlace CMakeLists.txt --replace "boost_system-mt" "boost_system"
|
|
|
|
'';
|
|
|
|
|
2012-03-09 00:59:13 +00:00
|
|
|
# for now sound is disabled as it causes a linker error with alure i can't resolve (qknight)
|
|
|
|
cmakeFlags = "-DOPTION_SOUND:BOOL=OFF";
|
|
|
|
|
2010-11-13 07:47:04 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-02-10 13:18:58 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/springlobby \
|
|
|
|
--prefix PATH : "${spring}/bin" \
|
2014-03-22 10:49:20 +00:00
|
|
|
--set SPRING_BUNDLE_DIR "${spring}/lib"
|
2014-02-10 13:18:58 +00:00
|
|
|
'';
|
2012-03-09 00:59:13 +00:00
|
|
|
|
2010-11-13 07:47:04 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://springlobby.info/;
|
2014-03-22 10:49:20 +00:00
|
|
|
repositories.git = git://github.com/springlobby/springlobby.git;
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Cross-platform lobby client for the Spring RTS project";
|
2010-11-13 07:47:04 +00:00
|
|
|
license = licenses.gpl2;
|
2014-03-22 10:49:20 +00:00
|
|
|
maintainers = with maintainers; [ phreedom qknight iElectric ];
|
2012-03-08 15:32:20 +00:00
|
|
|
platforms = platforms.linux;
|
2010-11-13 07:47:04 +00:00
|
|
|
};
|
2012-03-08 15:32:20 +00:00
|
|
|
}
|