Merge pull request #144798 from marius851000/openmw047

openmw: 0.46 -> 0.47

authored by Thiago Kenji Okada and committed by GitHub fced082c d3f2137f

+112 -18
+35
pkgs/development/libraries/collada-dom/default.nix
···
··· 1 + { stdenv, lib, fetchFromGitHub, cmake, boost, libxml2, minizip, readline }: 2 + 3 + stdenv.mkDerivation { 4 + pname = "collada-dom"; 5 + version = "unstable-2020-01-03"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "rdiankov"; 9 + repo = "collada-dom"; 10 + rev = "c1e20b7d6ff806237030fe82f126cb86d661f063"; 11 + sha256 = "sha256-A1ne/D6S0shwCzb9spd1MoSt/238HWA8dvgd+DC9cXc="; 12 + }; 13 + 14 + postInstall = '' 15 + chmod +w -R $out 16 + ln -s $out/include/*/* $out/include 17 + ''; 18 + 19 + nativeBuildInputs = [ cmake ]; 20 + 21 + buildInputs = [ 22 + boost 23 + libxml2 24 + minizip 25 + readline 26 + ]; 27 + 28 + meta = with lib; { 29 + description = "Lightweight version of collada-dom, with only the parser."; 30 + homepage = "https://github.com/rdiankov/collada-dom"; 31 + license = licenses.mit; 32 + maintainers = with maintainers; [ marius851000 ]; 33 + platforms = platforms.all; 34 + }; 35 + }
+6 -4
pkgs/development/libraries/openscenegraph/default.nix
··· 2 libX11, libXinerama, libXrandr, libGLU, libGL, 3 glib, ilmbase, libxml2, pcre, zlib, 4 AGL, Carbon, Cocoa, Foundation, 5 jpegSupport ? true, libjpeg, 6 exrSupport ? false, openexr, 7 gifSupport ? true, giflib, ··· 9 tiffSupport ? true, libtiff, 10 gdalSupport ? false, gdal, 11 curlSupport ? true, curl, 12 - colladaSupport ? false, opencollada, 13 opencascadeSupport ? false, opencascade, 14 ffmpegSupport ? false, ffmpeg, 15 nvttSupport ? false, nvidia-texture-tools, ··· 20 lasSupport ? false, libLAS, 21 luaSupport ? false, lua, 22 sdlSupport ? false, SDL2, 23 - restSupport ? false, asio, boost, 24 withApps ? false, 25 withExamples ? false, fltk, wxGTK, 26 }: ··· 48 ++ lib.optional tiffSupport libtiff 49 ++ lib.optional gdalSupport gdal 50 ++ lib.optional curlSupport curl 51 - ++ lib.optional colladaSupport opencollada 52 ++ lib.optional opencascadeSupport opencascade 53 ++ lib.optional ffmpegSupport ffmpeg 54 ++ lib.optional nvttSupport nvidia-texture-tools ··· 59 ++ lib.optional lasSupport libLAS 60 ++ lib.optional luaSupport lua 61 ++ lib.optional sdlSupport SDL2 62 - ++ lib.optionals restSupport [ asio boost ] 63 ++ lib.optionals withExamples [ fltk wxGTK ] 64 ++ lib.optionals stdenv.isDarwin [ AGL Carbon Cocoa Foundation ] 65 ; 66 67 cmakeFlags = lib.optional (!withApps) "-DBUILD_OSG_APPLICATIONS=OFF" ++ lib.optional withExamples "-DBUILD_OSG_EXAMPLES=ON";
··· 2 libX11, libXinerama, libXrandr, libGLU, libGL, 3 glib, ilmbase, libxml2, pcre, zlib, 4 AGL, Carbon, Cocoa, Foundation, 5 + boost, 6 jpegSupport ? true, libjpeg, 7 exrSupport ? false, openexr, 8 gifSupport ? true, giflib, ··· 10 tiffSupport ? true, libtiff, 11 gdalSupport ? false, gdal, 12 curlSupport ? true, curl, 13 + colladaSupport ? false, collada-dom, 14 opencascadeSupport ? false, opencascade, 15 ffmpegSupport ? false, ffmpeg, 16 nvttSupport ? false, nvidia-texture-tools, ··· 21 lasSupport ? false, libLAS, 22 luaSupport ? false, lua, 23 sdlSupport ? false, SDL2, 24 + restSupport ? false, asio, 25 withApps ? false, 26 withExamples ? false, fltk, wxGTK, 27 }: ··· 49 ++ lib.optional tiffSupport libtiff 50 ++ lib.optional gdalSupport gdal 51 ++ lib.optional curlSupport curl 52 + ++ lib.optional colladaSupport collada-dom 53 ++ lib.optional opencascadeSupport opencascade 54 ++ lib.optional ffmpegSupport ffmpeg 55 ++ lib.optional nvttSupport nvidia-texture-tools ··· 60 ++ lib.optional lasSupport libLAS 61 ++ lib.optional luaSupport lua 62 ++ lib.optional sdlSupport SDL2 63 + ++ lib.optional restSupport asio 64 ++ lib.optionals withExamples [ fltk wxGTK ] 65 ++ lib.optionals stdenv.isDarwin [ AGL Carbon Cocoa Foundation ] 66 + ++ lib.optional (restSupport || colladaSupport) boost 67 ; 68 69 cmakeFlags = lib.optional (!withApps) "-DBUILD_OSG_APPLICATIONS=OFF" ++ lib.optional withExamples "-DBUILD_OSG_EXAMPLES=ON";
+27
pkgs/development/libraries/recastnavigation/default.nix
···
··· 1 + { stdenv, lib, fetchFromGitHub, cmake, libGL, SDL2, libGLU }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "recastai"; 5 + # use latest revision for the CMake build process and OpenMW 6 + # OpenMW use e75adf86f91eb3082220085e42dda62679f9a3ea 7 + version = "unstable-2021-03-05"; 8 + 9 + src = fetchFromGitHub { 10 + owner = "recastnavigation"; 11 + repo = "recastnavigation"; 12 + rev = "c5cbd53024c8a9d8d097a4371215e3342d2fdc87"; 13 + sha256 = "sha256-QP3lMMFR6fiKQTksAkRL6X9yaoVz2xt4QSIP9g6piww="; 14 + }; 15 + 16 + nativeBuildInputs = [ cmake ]; 17 + 18 + buildInputs = [ libGL SDL2 libGLU ]; 19 + 20 + meta = with lib; { 21 + homepage = "https://github.com/recastnavigation/recastnavigation"; 22 + description = "Navigation-mesh Toolset for Games"; 23 + license = licenses.zlib; 24 + maintainers = with maintainers; [ marius851000 ]; 25 + platforms = platforms.all; 26 + }; 27 + }
+32 -13
pkgs/games/openmw/default.nix
··· 13 , unshield 14 , openal 15 , libXt 16 }: 17 18 let 19 - openscenegraph_ = openscenegraph.overrideDerivation (self: { 20 src = fetchFromGitHub { 21 - owner = "OpenMW"; 22 - repo = "osg"; 23 - # commit does not exist on any branch on the target repository 24 - rev = "1556cd7966ebc1c80b6626988d2b25fb43a744cf"; 25 - sha256 = "0d74hijzmj82nx3jkv5qmr3pkgvplra0b8fbjx1y3vmzxamb0axd"; 26 }; 27 }); 28 29 in 30 mkDerivation rec { 31 - version = "0.46.0"; 32 pname = "openmw"; 33 34 src = fetchFromGitHub { 35 owner = "OpenMW"; 36 repo = "openmw"; 37 rev = "${pname}-${version}"; 38 - sha256 = "0rm32zsmxvr6b0jjihfj543skhicbw5kg6shjx312clhlm035w2x"; 39 }; 40 41 nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ]; ··· 43 buildInputs = [ 44 SDL2 45 boost 46 - bullet 47 ffmpeg 48 libXt 49 mygui 50 openal 51 - openscenegraph_ 52 unshield 53 ]; 54 55 cmakeFlags = [ 56 - "-DDESIRED_QT_VERSION:INT=5" 57 # as of 0.46, openmw is broken with GLVND 58 "-DOpenGL_GL_PREFERENCE=LEGACY" 59 ]; 60 61 meta = with lib; { 62 description = "An unofficial open source engine reimplementation of the game Morrowind"; 63 - homepage = "http://openmw.org"; 64 license = licenses.gpl3Plus; 65 - maintainers = with maintainers; [ abbradar ]; 66 platforms = platforms.linux; 67 }; 68 }
··· 13 , unshield 14 , openal 15 , libXt 16 + , lz4 17 + , recastnavigation 18 }: 19 20 let 21 + openscenegraph_openmw = (openscenegraph.override { colladaSupport = true; }) 22 + .overrideDerivation (self: { 23 + src = fetchFromGitHub { 24 + owner = "OpenMW"; 25 + repo = "osg"; 26 + rev = "bbe61c3bc510a4f5bb4aea21cce506519c2d24e6"; 27 + sha256 = "sha256-t3smLqstp7wWfi9HXJoBCek+3acqt/ySBYF8RJOG6Mo="; 28 + }; 29 + }); 30 + 31 + bullet_openmw = bullet.overrideDerivation (old: rec { 32 + version = "3.17"; 33 src = fetchFromGitHub { 34 + owner = "bulletphysics"; 35 + repo = "bullet3"; 36 + rev = version; 37 + sha256 = "sha256-uQ4X8F8nmagbcFh0KexrmnhHIXFSB3A1CCnjPVeHL3Q="; 38 }; 39 + patches = []; 40 + cmakeFlags = (old.cmakeFlags or []) ++ [ 41 + "-DUSE_DOUBLE_PRECISION=ON" 42 + "-DBULLET2_MULTITHREADING=ON" 43 + ]; 44 }); 45 46 in 47 mkDerivation rec { 48 pname = "openmw"; 49 + version = "0.47.0"; 50 51 src = fetchFromGitHub { 52 owner = "OpenMW"; 53 repo = "openmw"; 54 rev = "${pname}-${version}"; 55 + sha256 = "sha256-Xq9hDUTCQr79Zzjk0CsiXclVTHK6nrSowukIQqVdrKY="; 56 }; 57 58 nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ]; ··· 60 buildInputs = [ 61 SDL2 62 boost 63 + bullet_openmw 64 ffmpeg 65 libXt 66 mygui 67 openal 68 + openscenegraph_openmw 69 unshield 70 + lz4 71 + recastnavigation 72 ]; 73 74 cmakeFlags = [ 75 # as of 0.46, openmw is broken with GLVND 76 "-DOpenGL_GL_PREFERENCE=LEGACY" 77 + "-DOPENMW_USE_SYSTEM_RECASTNAVIGATION=1" 78 ]; 79 80 meta = with lib; { 81 description = "An unofficial open source engine reimplementation of the game Morrowind"; 82 + homepage = "https://openmw.org"; 83 license = licenses.gpl3Plus; 84 + maintainers = with maintainers; [ abbradar marius851000 ]; 85 platforms = platforms.linux; 86 }; 87 }
+8 -1
pkgs/games/openmw/tes3mp.nix
··· 9 , symlinkJoin 10 , mygui 11 , crudini 12 }: 13 14 # revisions are taken from https://github.com/GrimKriegor/TES3MP-deploy ··· 70 71 nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ makeWrapper ]; 72 73 - buildInputs = oldAttrs.buildInputs ++ [ luajit ]; 74 75 cmakeFlags = oldAttrs.cmakeFlags ++ [ 76 "-DBUILD_OPENCS=OFF" ··· 78 "-DRakNet_LIBRARY_RELEASE=${raknet}/lib/libRakNetLibStatic.a" 79 "-DRakNet_LIBRARY_DEBUG=${raknet}/lib/libRakNetLibStatic.a" 80 ]; 81 82 # https://github.com/TES3MP/openmw-tes3mp/issues/552 83 patches = [ ./tes3mp.patch ];
··· 9 , symlinkJoin 10 , mygui 11 , crudini 12 + , bullet 13 }: 14 15 # revisions are taken from https://github.com/GrimKriegor/TES3MP-deploy ··· 71 72 nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ makeWrapper ]; 73 74 + buildInputs = (builtins.map (x: if x.pname or "" == "bullet" then bullet else x) oldAttrs.buildInputs) 75 + ++ [ luajit ]; 76 77 cmakeFlags = oldAttrs.cmakeFlags ++ [ 78 "-DBUILD_OPENCS=OFF" ··· 80 "-DRakNet_LIBRARY_RELEASE=${raknet}/lib/libRakNetLibStatic.a" 81 "-DRakNet_LIBRARY_DEBUG=${raknet}/lib/libRakNetLibStatic.a" 82 ]; 83 + 84 + prePatch = '' 85 + substituteInPlace components/process/processinvoker.cpp \ 86 + --replace "\"./\"" "\"$out/bin/\"" 87 + ''; 88 89 # https://github.com/TES3MP/openmw-tes3mp/issues/552 90 patches = [ ./tes3mp.patch ];
+4
pkgs/top-level/all-packages.nix
··· 15839 15840 cointop = callPackage ../applications/misc/cointop { }; 15841 15842 cog = callPackage ../development/web/cog { }; 15843 15844 cosmopolitan = callPackage ../development/libraries/cosmopolitan { }; ··· 19228 readline81 = callPackage ../development/libraries/readline/8.1.nix { }; 19229 19230 readosm = callPackage ../development/libraries/readosm { }; 19231 19232 rinutils = callPackage ../development/libraries/rinutils { }; 19233
··· 15839 15840 cointop = callPackage ../applications/misc/cointop { }; 15841 15842 + collada-dom = callPackage ../development/libraries/collada-dom { }; 15843 + 15844 cog = callPackage ../development/web/cog { }; 15845 15846 cosmopolitan = callPackage ../development/libraries/cosmopolitan { }; ··· 19230 readline81 = callPackage ../development/libraries/readline/8.1.nix { }; 19231 19232 readosm = callPackage ../development/libraries/readosm { }; 19233 + 19234 + recastnavigation = callPackage ../development/libraries/recastnavigation { }; 19235 19236 rinutils = callPackage ../development/libraries/rinutils { }; 19237