git.iko.soy/typeable/nixpkgs
on master help sign in
FreeOrion 0.4.7.1 -> 0.4.8 (#45943)
commitae76e51f86a9f0d9c677e90e992126dda8276629 authorMilan Svoboda <milan.svoboda@centrum.cz> dateSun 2 Sep 2018, 21:42 (8 years ago) parenta92cfb5
3 files changed+11−24
pkgs/games/freeorion/default.nix+9−11 pkgs/games/freeorion/fix-paths.sh+2−2 pkgs/games/freeorion/fix_rpaths.patch−11
pkgs/games/freeorion/default.nix+9−11
@@ -4,29 +4,25 @@
44}:
55
66stdenv.mkDerivation rec {
7− version = "0.4.7.1";
7+ version = "0.4.8";
88 name = "freeorion-${version}";
99
1010 src = fetchFromGitHub {
1111 owner = "freeorion";
1212 repo = "freeorion";
13− rev = "v${version}";
14− sha256 = "1m05l3a6ilqd7p2g3aqjpq89grb571cg8n9bpgz0y3sxskcym6sp";
13+ rev = "v${version}";
14+ sha256 = "1lj1q2ljjgbbiqxb53wdrrcz0zxxr3vv9jqrhbzvfsss7q808jfw";
1515 };
1616
17− buildInputs = [ boost SDL2 python2 freetype openal libogg libvorbis zlib libpng libtiff libjpeg libGLU_combined glew ];
17+ buildInputs = [
18+ (boost.override { enablePython = true; })
19+ SDL2 python2 freetype openal libogg libvorbis zlib libpng libtiff libjpeg libGLU_combined glew ];
1820
1921 nativeBuildInputs = [ cmake doxygen graphviz makeWrapper ];
2022
2123 enableParallelBuilding = true;
2224
2325 patches = [
24− # fix build with boost 1.66
25− (fetchpatch {
26− url = https://github.com/freeorion/freeorion/commit/c9b5b13fb81b1ed142dee0e843101c6b8832ca95.patch;
27− sha256 = "0agqhxk8462sgd230lmdzbrbrfd77zyy7a4g8hrf28zxza1nza94";
28− })
29− ./fix_rpaths.patch
3026 ];
3127
3228 postInstall = ''
@@ -41,7 +37,8 @@ stdenv.mkDerivation rec {
4137 chmod +x $out/fixpaths/fix-paths
4238
4339 wrapProgram $out/bin/freeorion \
44− --run $out/fixpaths/fix-paths
40+ --run $out/fixpaths/fix-paths \
41+ --prefix LD_LIBRARY_PATH : $out/lib/freeorion
4542 '';
4643
4744 meta = with stdenv.lib; {
@@ -49,5 +46,6 @@ stdenv.mkDerivation rec {
4946 homepage = http://www.freeorion.org;
5047 license = with licenses; [ gpl2 cc-by-sa-30 ];
5148 platforms = platforms.linux;
49+ maintainers = with maintainers; [ tex ];
5250 };
5351}
pkgs/games/freeorion/fix-paths.sh+2−2
@@ -1,6 +1,6 @@
11#!/bin/sh
22
3−if [ -e ~/.freeorion/config.xml ]; then
4− @libxsltBin@/bin/xsltproc -o ~/.freeorion/config.xml @out@/fixpaths/fix-paths.xslt ~/.freeorion/config.xml
3+if [ -e ~/.config/freeorion/config.xml ]; then
4+ @libxsltBin@/bin/xsltproc -o ~/.config/freeorion/config.xml @out@/fixpaths/fix-paths.xslt ~/.config/freeorion/config.xml
55fi
66exit 0
pkgs/games/freeorion/fix_rpaths.patchdeleted−11
@@ -1,11 +0,0 @@
1−--- a/CMakeLists.txt
2−+++ b/CMakeLists.txt
3−@@ -46,7 +46,7 @@
4− set(FreeOrion_INSTALL_LIBDIR "${CMAKE_INSTALL_LIBDIR}/freeorion")
5− endif()
6−
7−-set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${FreeOrion_INSTALL_LIBDIR}")
8−+set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}/freeorion")
9− set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
10−
11− if (WIN32)