diff --git a/pkgs/games/openmw/default.nix b/pkgs/games/openmw/default.nix index 4d01feaccc0..bb7c2c4eeb6 100644 --- a/pkgs/games/openmw/default.nix +++ b/pkgs/games/openmw/default.nix @@ -1,5 +1,6 @@ -{ stdenv, fetchFromGitHub, qt4, openscenegraph, mygui, bullet, ffmpeg, boost, cmake, SDL2, unshield, openal -, libXt, pkgconfig }: +{ stdenv, fetchFromGitHub, qt5, qt4, openscenegraph, mygui, bullet, ffmpeg +, boost, cmake, SDL2, unshield, openal, libXt, pkgconfig +, useQt5 ? true }: let openscenegraph_ = openscenegraph.overrideDerivation (self: { @@ -11,20 +12,24 @@ let }; }); 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 ]; + buildInputs = [ cmake boost ffmpeg bullet mygui openscenegraph_ SDL2 unshield openal libXt ] + ++ [ (if useQt5 then qt5.qtbase else qt4) ]; + cmakeFlags = [ + "-DDESIRED_QT_VERSION:INT=${if useQt5 then "5" else "4"}" + ]; meta = with stdenv.lib; { description = "An unofficial open source engine reimplementation of the game Morrowind";