2010-11-13 08:47:04 +01:00
|
|
|
{ stdenv, fetchurl, cmake, wxGTK, openal, pkgconfig, curl, libtorrentRasterbar
|
|
|
|
, gettext, bash, gawk, boost }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "spring-lobby-${version}";
|
2012-02-29 15:29:49 +01:00
|
|
|
version = "0.139";
|
2010-11-13 08:47:04 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.springlobby.info/tarballs/springlobby-${version}.tar.bz2";
|
2012-02-29 15:29:49 +01:00
|
|
|
sha256 = "0ibvv2p4c0qa933mr3hfn5lp8c6h1dycl6k6i1n2gvpa8jr598m5";
|
2010-11-13 08:47:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake wxGTK openal pkgconfig curl gettext libtorrentRasterbar boost ];
|
|
|
|
|
|
|
|
prePatch = ''
|
2012-02-29 15:29:49 +01:00
|
|
|
substituteInPlace tools/regen_config_header.sh --replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
2010-11-13 08:47:04 +01:00
|
|
|
substituteInPlace tools/test-susynclib.awk --replace "#!/usr/bin/awk" "#!${gawk}/bin/awk"
|
|
|
|
substituteInPlace CMakeLists.txt --replace "boost_system-mt" "boost_system"
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://springlobby.info/;
|
|
|
|
description = "A free cross-platform lobby client for the Spring RTS project.";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.phreedom ];
|
2012-02-29 15:29:49 +01:00
|
|
|
platforms = platforms.all;
|
2010-11-13 08:47:04 +01:00
|
|
|
};
|
|
|
|
}
|