git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17979 from rardiol/springrts2

Springrts and springlobby update

commit6a4e95b918ec87156bbf43b34b6ee80ee6d9c72c authorDomen Kožar <domen@dev.si> dateFri 26 Aug 2016, 12:04 (10 years ago) parentb83dee43b7304e
3 files changed+22−4
pkgs/games/spring/default.nix+2−2 pkgs/games/spring/revert_58b423e.patch+16 pkgs/games/spring/springlobby.nix+4−2
pkgs/games/spring/default.nix+2−2
@@ -8,11 +8,11 @@
88stdenv.mkDerivation rec {
99
1010 name = "spring-${version}";
11− version = "102.0";
11+ version = "103.0";
1212
1313 src = fetchurl {
1414 url = "mirror://sourceforge/springrts/spring_${version}_src.tar.lzma";
15− sha256 = "0gjlpzwl3bdv1ickm8r3xlrbc6dm7m8i968hw3p0an49k6bqa77i";
15+ sha256 = "1fmnwk8ig36429pkp1rafzg4hyzp7i6mwy27p7fdxrdj1q4blx9l";
1616 };
1717
1818 # The cmake included module correcly finds nix's glew, however
pkgs/games/spring/revert_58b423e.patchnew file+16
@@ -0,0 +1,16 @@
1+--- a/src/utils/slpaths.cpp
2++++ b/src/utils/slpaths.cpp
3+@@ -165,13 +165,10 @@
4+ usync_paths.push_back(bundle);
5+ }
6+ if (!SlPaths::IsPortableMode()) {
7+- /*
8+-//FIXME: reenable when #707 is fixed / spring 102.0 is "established"
9+ LSL::SpringBundle systembundle;
10+ if (LSL::SpringBundle::LocateSystemInstalledSpring(systembundle)) {
11+ usync_paths.push_back(systembundle);
12+ }
13+-*/
14+
15+ std::vector<std::string> paths;
16+ PossibleEnginePaths(paths);
pkgs/games/spring/springlobby.nix+4−2
@@ -4,11 +4,11 @@
44stdenv.mkDerivation rec {
55
66 name = "springlobby-${version}";
7− version = "0.247";
7+ version = "0.255";
88
99 src = fetchurl {
1010 url = "http://www.springlobby.info/tarballs/springlobby-${version}.tar.bz2";
11− sha256 = "0sx14k4xsyjkmphhxfn9q341lv32c53g6wl1cbdx2sknzs3qasxs";
11+ sha256 = "12iv6h1mz998lzxc2jwkza0m1yvaaq8h05k36i85xyp7g90197jw";
1212 };
1313
1414 buildInputs = [
@@ -22,6 +22,8 @@ stdenv.mkDerivation rec {
2222 substituteInPlace CMakeLists.txt --replace "boost_system-mt" "boost_system"
2323 '';
2424
25+ patches = [ ./revert_58b423e.patch ]; # Allows springLobby to continue using system installed spring until #707 is fixed
26+
2527 enableParallelBuilding = true;
2628
2729 postInstall = ''