Merge pull request #177222 from cmm/freeciv-3.0.1

freeciv: 2.6.6 -> 3.0.1

authored by Rick van Schijndel and committed by GitHub a2af6723 e59b2e67

+28 -14
+17 -8
pkgs/games/freeciv/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, autoreconfHook, lua5_3, pkg-config, python3 2 - , zlib, bzip2, curl, xz, gettext, libiconv 3 - , sdlClient ? true, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, freetype, fluidsynth 4 - , gtkClient ? false, gtk3, wrapGAppsHook 2 + , zlib, bzip2, curl, xz, gettext, libiconv, icu 3 + , SDL2, SDL2_mixer, SDL2_image, SDL2_ttf, SDL2_gfx, freetype, fluidsynth 4 + , sdl2Client ? false 5 + , gtkClient ? true, gtk3, wrapGAppsHook 5 6 , qtClient ? false, qt5 6 7 , server ? true, readline 7 8 , enableSqlite ? true, sqlite ··· 9 10 10 11 stdenv.mkDerivation rec { 11 12 pname = "freeciv"; 12 - version = "2.6.6"; 13 + version = "3.0.1"; 13 14 14 15 src = fetchFromGitHub { 15 16 owner = "freeciv"; 16 17 repo = "freeciv"; 17 18 rev = "R${lib.replaceStrings [ "." ] [ "_" ] version}"; 18 - sha256 = "sha256-D5t6sMpm09jbixs5MCghBeDbeuRbGmrrfWR91VNolRM="; 19 + sha256 = "sha256-Nzc6Tirj6TKLgTYN5XjZZut9HVYLKGOp1GZeaoqEtW8="; 19 20 }; 20 21 21 22 postPatch = '' ··· 29 30 ++ lib.optional qtClient [ qt5.wrapQtAppsHook ] 30 31 ++ lib.optional gtkClient [ wrapGAppsHook ]; 31 32 32 - buildInputs = [ lua5_3 zlib bzip2 curl xz gettext libiconv ] 33 - ++ lib.optionals sdlClient [ SDL SDL_mixer SDL_image SDL_ttf SDL_gfx freetype fluidsynth ] 33 + buildInputs = [ lua5_3 zlib bzip2 curl xz gettext libiconv icu ] 34 + ++ [ SDL2 SDL2_mixer SDL2_image SDL2_ttf SDL2_gfx freetype fluidsynth ] 34 35 ++ lib.optionals gtkClient [ gtk3 ] 35 36 ++ lib.optionals qtClient [ qt5.qtbase ] 36 37 ++ lib.optional server readline ··· 39 40 dontWrapQtApps = true; 40 41 dontWrapGApps = true; 41 42 43 + # configure is not smart enough to look for SDL2 headers under 44 + # .../SDL2, but thankfully $SDL2_PATH is almost exactly what we want 45 + preConfigure = '' 46 + export CPPFLAGS="$(echo $SDL2_PATH | sed 's#/nix/store/#-I/nix/store/#g')" 47 + ''; 42 48 configureFlags = [ "--enable-shared" ] 43 - ++ lib.optional sdlClient "--enable-client=sdl" 49 + ++ lib.optionals sdl2Client [ 50 + "--enable-client=sdl2" 51 + "--enable-sdl-mixer=sdl2" 52 + ] 44 53 ++ lib.optionals qtClient [ 45 54 "--enable-client=qt" 46 55 "--with-qt5-includes=${qt5.qtbase.dev}/include"
+11 -6
pkgs/top-level/all-packages.nix
··· 31818 31818 freecell-solver = callPackage ../games/freecell-solver { }; 31819 31819 31820 31820 freeciv = callPackage ../games/freeciv { 31821 - autoreconfHook = buildPackages.autoreconfHook269; 31822 - qt5 = qt514; 31821 + sdl2Client = false; 31822 + gtkClient = true; 31823 + qtClient = false; 31823 31824 }; 31824 31825 31825 - freeciv_gtk = freeciv.override { 31826 - gtkClient = true; 31827 - sdlClient = false; 31826 + freeciv_sdl2 = freeciv.override { 31827 + sdl2Client = true; 31828 + gtkClient = false; 31829 + qtClient = false; 31828 31830 }; 31829 31831 31830 31832 freeciv_qt = freeciv.override { 31833 + sdl2Client = false; 31834 + gtkClient = false; 31831 31835 qtClient = true; 31832 - sdlClient = false; 31833 31836 }; 31837 + 31838 + freeciv_gtk = freeciv; 31834 31839 31835 31840 freedink = callPackage ../games/freedink { }; 31836 31841