2019-08-13 17:25:19 +00:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, qtbase, openscenegraph, mygui, bullet, ffmpeg
|
2019-03-14 14:53:34 +00:00
|
|
|
, boost, cmake, SDL2, unshield, openal, libXt, pkgconfig }:
|
2015-09-26 18:00:36 +00:00
|
|
|
|
2016-04-13 01:35:23 +00:00
|
|
|
let
|
2016-09-16 16:29:03 +00:00
|
|
|
openscenegraph_ = openscenegraph.overrideDerivation (self: {
|
2016-04-13 01:35:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenMW";
|
|
|
|
repo = "osg";
|
2018-02-25 17:15:11 +00:00
|
|
|
rev = "2b4c8e37268e595b82da4b9aadd5507852569b87";
|
|
|
|
sha256 = "0admnllxic6dcpic0h100927yw766ab55dix002vvdx36i6994jb";
|
2016-04-13 01:35:23 +00:00
|
|
|
};
|
|
|
|
});
|
2019-08-13 17:25:19 +00:00
|
|
|
in mkDerivation rec {
|
2019-03-30 01:59:34 +00:00
|
|
|
version = "0.45.0";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "openmw";
|
2015-09-26 18:00:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenMW";
|
|
|
|
repo = "openmw";
|
2019-08-15 12:41:18 +00:00
|
|
|
rev = "${pname}-${version}";
|
2019-03-30 01:59:34 +00:00
|
|
|
sha256 = "1r87zrsnza2v9brksh809zzqj6zhk5xj15qs8iq11v1bscm2a2j4";
|
2015-09-26 18:00:36 +00:00
|
|
|
};
|
|
|
|
|
2016-04-11 12:39:09 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-03-14 14:53:34 +00:00
|
|
|
buildInputs = [ cmake boost ffmpeg bullet mygui openscenegraph_ SDL2 unshield openal libXt qtbase ];
|
|
|
|
|
2019-03-13 07:33:02 +00:00
|
|
|
cmakeFlags = [
|
2019-03-14 14:53:34 +00:00
|
|
|
"-DDESIRED_QT_VERSION:INT=5"
|
2019-03-13 07:33:02 +00:00
|
|
|
];
|
2015-09-26 18:00:36 +00:00
|
|
|
|
2016-04-12 00:57:42 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-09-26 18:00:36 +00:00
|
|
|
description = "An unofficial open source engine reimplementation of the game Morrowind";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://openmw.org;
|
2016-04-12 00:57:42 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2016-07-23 10:04:53 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2015-09-26 18:00:36 +00:00
|
|
|
};
|
|
|
|
}
|