2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, qtbase, openscenegraph, mygui, bullet, ffmpeg_3
|
2020-12-31 07:48:55 +00:00
|
|
|
, boost, cmake, SDL2, unshield, openal, libXt, pkg-config }:
|
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";
|
2021-01-26 13:35:52 +00:00
|
|
|
# commit does not exist on any branch on the target repository
|
2020-06-16 18:45:23 +00:00
|
|
|
rev = "1556cd7966ebc1c80b6626988d2b25fb43a744cf";
|
|
|
|
sha256 = "0d74hijzmj82nx3jkv5qmr3pkgvplra0b8fbjx1y3vmzxamb0axd";
|
2016-04-13 01:35:23 +00:00
|
|
|
};
|
|
|
|
});
|
2020-12-31 07:48:55 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-06-16 18:45:23 +00:00
|
|
|
version = "0.46.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}";
|
2020-06-16 18:45:23 +00:00
|
|
|
sha256 = "0rm32zsmxvr6b0jjihfj543skhicbw5kg6shjx312clhlm035w2x";
|
2015-09-26 18:00:36 +00:00
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ boost ffmpeg_3 bullet mygui openscenegraph_ SDL2 unshield openal libXt qtbase ];
|
2019-03-14 14:53:34 +00:00
|
|
|
|
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
|
|
|
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-09-26 18:00:36 +00:00
|
|
|
description = "An unofficial open source engine reimplementation of the game Morrowind";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://openmw.org";
|
2020-12-31 07:48:55 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2016-04-12 00:57:42 +00:00
|
|
|
platforms = platforms.linux;
|
2016-07-23 10:04:53 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2015-09-26 18:00:36 +00:00
|
|
|
};
|
|
|
|
}
|