Bump openmw to 0.44.0 and ported to Qt5.
https://github.com/NixOS/nixpkgs/pull/46153 + https://github.com/NixOS/nixpkgs/pull/33239
> cat openmw-0.44.0-qt5.patch
diff --git a/pkgs/games/openmw/default.nix b/pkgs/games/openmw/default.nix
index 4d01feaccc0..9fc0868f329 100644
--- a/pkgs/games/openmw/default.nix
+++ b/pkgs/games/openmw/default.nix
@@ -1,8 +1,11 @@
-{ stdenv, fetchFromGitHub, qt4, openscenegraph, mygui, bullet, ffmpeg, boost, cmake, SDL2, unshield, openal
-, libXt, pkgconfig }:
+{ stdenv, fetchFromGitHub, cmake, doxygen, pkgconfig
+, qtbase, openscenegraph, mygui, bullet, ffmpeg, boost, SDL2, unshield, openal
+, giflib, libXt }:
let
openscenegraph_ = openscenegraph.overrideDerivation (self: {
+ name = "openmw-openscenegraph";
+
src = fetchFromGitHub {
owner = "OpenMW";
repo = "osg";
@@ -10,27 +13,36 @@ let
sha256 = "0admnllxic6dcpic0h100927yw766ab55dix002vvdx36i6994jb";
};
});
+
in stdenv.mkDerivation rec {
- version = "0.43.0";
+ version = "0.44.0";
name = "openmw-${version}";
src = fetchFromGitHub {
owner = "OpenMW";
repo = "openmw";
rev = name;
- sha256 = "1nybxwp77qswjayf0g9xayp4x1xxq799681rhjlggch127r07ifi";
+ sha256 = "0rxkw0bzag7qffifg28dyyga47aaaf5ziiccpv7p8yax1wglvymh";
};
enableParallelBuilding = true;
- nativeBuildInputs = [ pkgconfig ];
- buildInputs = [ cmake boost ffmpeg qt4 bullet mygui openscenegraph_ SDL2 unshield openal libXt ];
+ nativeBuildInputs = [ cmake doxygen pkgconfig ];
+
+ buildInputs = [
+ qtbase
+ boost bullet ffmpeg libXt mygui openal openscenegraph_ SDL2 unshield
+ ];
+
+ cmakeFlags = [
+ "-DDESIRED_QT_VERSION=5"
+ ];
meta = with stdenv.lib; {
description = "An unofficial open source engine reimplementation of the game Morrowind";
- homepage = http://openmw.org;
- license = licenses.gpl3;
- platforms = platforms.linux;
+ homepage = "https://openmw.org";
+ license = licenses.gpl3;
maintainers = with maintainers; [ abbradar ];
+ platforms = platforms.linux;
};
}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 87b27bcd226..db4a2548d19 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -20889,7 +20889,7 @@ in
openjk = callPackage ../games/openjk { };
- openmw = callPackage ../games/openmw { };
+ openmw = callPackage ../games/openmw { qtbase = qt5.qtbase; };
openmw-tes3mp = libsForQt5.callPackage ../games/openmw/tes3mp.nix { };