package won't build on the current nixos/nixpkgs (but it did with older checkouts on my other computer). so here is a fix which makes springlobby compile and install at least

svn path=/nixpkgs/trunk/; revision=32937
This commit is contained in:
Joachim Schiele 2012-03-09 00:59:13 +00:00
parent a14e9f7c0f
commit ac9f3a50a2

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, cmake, wxGTK, openal, pkgconfig, curl, libtorrentRasterbar
, gettext, bash, gawk, boost }:
, gettext, bash, gawk, boost}:
stdenv.mkDerivation rec {
name = "springlobby-${version}";
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "37cf3aa1ed78a0ded782cc5c692301619dbb2cf4749bccbf059c51707daaf734";
};
buildInputs = [ cmake wxGTK openal pkgconfig curl gettext libtorrentRasterbar boost ];
buildInputs = [ cmake wxGTK openal pkgconfig curl gettext libtorrentRasterbar boost];
prePatch = ''
substituteInPlace tools/regen_config_header.sh --replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
@ -18,8 +18,13 @@ stdenv.mkDerivation rec {
substituteInPlace CMakeLists.txt --replace "boost_system-mt" "boost_system"
'';
# for now sound is disabled as it causes a linker error with alure i can't resolve (qknight)
cmakeFlags = "-DOPTION_SOUND:BOOL=OFF";
enableParallelBuilding = true;
#buildPhase = "make VERBOSE=1";
meta = with stdenv.lib; {
homepage = http://springlobby.info/;
description = "A free cross-platform lobby client for the Spring RTS project.";