2020-06-18 07:06:33 +00:00
|
|
|
{ stdenv, mkDerivationWith, fetchFromGitHub, qtbase, openscenegraph, mygui, bullet, ffmpeg_3
|
2020-04-24 23:36:52 +00:00
|
|
|
, boost, cmake, SDL2, unshield, openal, libXt, pkgconfig }:
|
|
|
|
|
|
|
|
let
|
|
|
|
openscenegraph_ = openscenegraph.overrideDerivation (self: {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenMW";
|
|
|
|
repo = "osg";
|
2020-06-18 07:06:33 +00:00
|
|
|
rev = "1556cd7966ebc1c80b6626988d2b25fb43a744cf";
|
|
|
|
sha256 = "0d74hijzmj82nx3jkv5qmr3pkgvplra0b8fbjx1y3vmzxamb0axd";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
in mkDerivationWith stdenv.mkDerivation rec {
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "0.46.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "openmw";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenMW";
|
|
|
|
repo = "openmw";
|
|
|
|
rev = "${pname}-${version}";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "0rm32zsmxvr6b0jjihfj543skhicbw5kg6shjx312clhlm035w2x";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-06-18 07:06:33 +00:00
|
|
|
buildInputs = [ cmake boost ffmpeg_3 bullet mygui openscenegraph_ SDL2 unshield openal libXt qtbase ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DDESIRED_QT_VERSION:INT=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;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|