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