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 { 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 5 , qtClient ? false, qt5 6 , server ? true, readline 7 , enableSqlite ? true, sqlite ··· 9 10 stdenv.mkDerivation rec { 11 pname = "freeciv"; 12 - version = "2.6.6"; 13 14 src = fetchFromGitHub { 15 owner = "freeciv"; 16 repo = "freeciv"; 17 rev = "R${lib.replaceStrings [ "." ] [ "_" ] version}"; 18 - sha256 = "sha256-D5t6sMpm09jbixs5MCghBeDbeuRbGmrrfWR91VNolRM="; 19 }; 20 21 postPatch = '' ··· 29 ++ lib.optional qtClient [ qt5.wrapQtAppsHook ] 30 ++ lib.optional gtkClient [ wrapGAppsHook ]; 31 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 ] 34 ++ lib.optionals gtkClient [ gtk3 ] 35 ++ lib.optionals qtClient [ qt5.qtbase ] 36 ++ lib.optional server readline ··· 39 dontWrapQtApps = true; 40 dontWrapGApps = true; 41 42 configureFlags = [ "--enable-shared" ] 43 - ++ lib.optional sdlClient "--enable-client=sdl" 44 ++ lib.optionals qtClient [ 45 "--enable-client=qt" 46 "--with-qt5-includes=${qt5.qtbase.dev}/include"
··· 1 { lib, stdenv, fetchFromGitHub, autoreconfHook, lua5_3, pkg-config, python3 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 6 , qtClient ? false, qt5 7 , server ? true, readline 8 , enableSqlite ? true, sqlite ··· 10 11 stdenv.mkDerivation rec { 12 pname = "freeciv"; 13 + version = "3.0.1"; 14 15 src = fetchFromGitHub { 16 owner = "freeciv"; 17 repo = "freeciv"; 18 rev = "R${lib.replaceStrings [ "." ] [ "_" ] version}"; 19 + sha256 = "sha256-Nzc6Tirj6TKLgTYN5XjZZut9HVYLKGOp1GZeaoqEtW8="; 20 }; 21 22 postPatch = '' ··· 30 ++ lib.optional qtClient [ qt5.wrapQtAppsHook ] 31 ++ lib.optional gtkClient [ wrapGAppsHook ]; 32 33 + buildInputs = [ lua5_3 zlib bzip2 curl xz gettext libiconv icu ] 34 + ++ [ SDL2 SDL2_mixer SDL2_image SDL2_ttf SDL2_gfx freetype fluidsynth ] 35 ++ lib.optionals gtkClient [ gtk3 ] 36 ++ lib.optionals qtClient [ qt5.qtbase ] 37 ++ lib.optional server readline ··· 40 dontWrapQtApps = true; 41 dontWrapGApps = true; 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 + ''; 48 configureFlags = [ "--enable-shared" ] 49 + ++ lib.optionals sdl2Client [ 50 + "--enable-client=sdl2" 51 + "--enable-sdl-mixer=sdl2" 52 + ] 53 ++ lib.optionals qtClient [ 54 "--enable-client=qt" 55 "--with-qt5-includes=${qt5.qtbase.dev}/include"
+11 -6
pkgs/top-level/all-packages.nix
··· 31818 freecell-solver = callPackage ../games/freecell-solver { }; 31819 31820 freeciv = callPackage ../games/freeciv { 31821 - autoreconfHook = buildPackages.autoreconfHook269; 31822 - qt5 = qt514; 31823 }; 31824 31825 - freeciv_gtk = freeciv.override { 31826 - gtkClient = true; 31827 - sdlClient = false; 31828 }; 31829 31830 freeciv_qt = freeciv.override { 31831 qtClient = true; 31832 - sdlClient = false; 31833 }; 31834 31835 freedink = callPackage ../games/freedink { }; 31836
··· 31818 freecell-solver = callPackage ../games/freecell-solver { }; 31819 31820 freeciv = callPackage ../games/freeciv { 31821 + sdl2Client = false; 31822 + gtkClient = true; 31823 + qtClient = false; 31824 }; 31825 31826 + freeciv_sdl2 = freeciv.override { 31827 + sdl2Client = true; 31828 + gtkClient = false; 31829 + qtClient = false; 31830 }; 31831 31832 freeciv_qt = freeciv.override { 31833 + sdl2Client = false; 31834 + gtkClient = false; 31835 qtClient = true; 31836 }; 31837 + 31838 + freeciv_gtk = freeciv; 31839 31840 freedink = callPackage ../games/freedink { }; 31841