2021-05-19 03:30:30 +02:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
2021-07-31 02:40:22 +02:00
|
|
|
, wrapQtAppsHook
|
2021-05-19 03:30:30 +02:00
|
|
|
, openscenegraph
|
|
|
|
, mygui
|
|
|
|
, bullet
|
|
|
|
, ffmpeg
|
|
|
|
, boost
|
|
|
|
, SDL2
|
|
|
|
, unshield
|
|
|
|
, openal
|
|
|
|
, libXt
|
|
|
|
}:
|
2015-09-26 20:00:36 +02:00
|
|
|
|
2016-04-13 03:35:23 +02:00
|
|
|
let
|
2016-09-16 18:29:03 +02:00
|
|
|
openscenegraph_ = openscenegraph.overrideDerivation (self: {
|
2016-04-13 03:35:23 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenMW";
|
|
|
|
repo = "osg";
|
2021-01-26 14:35:52 +01:00
|
|
|
# commit does not exist on any branch on the target repository
|
2020-06-16 20:45:23 +02:00
|
|
|
rev = "1556cd7966ebc1c80b6626988d2b25fb43a744cf";
|
|
|
|
sha256 = "0d74hijzmj82nx3jkv5qmr3pkgvplra0b8fbjx1y3vmzxamb0axd";
|
2016-04-13 03:35:23 +02:00
|
|
|
};
|
|
|
|
});
|
2020-12-31 08:48:55 +01:00
|
|
|
|
2021-05-19 03:30:30 +02:00
|
|
|
in
|
|
|
|
mkDerivation rec {
|
2020-06-16 20:45:23 +02:00
|
|
|
version = "0.46.0";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "openmw";
|
2015-09-26 20:00:36 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenMW";
|
|
|
|
repo = "openmw";
|
2019-08-15 14:41:18 +02:00
|
|
|
rev = "${pname}-${version}";
|
2020-06-16 20:45:23 +02:00
|
|
|
sha256 = "0rm32zsmxvr6b0jjihfj543skhicbw5kg6shjx312clhlm035w2x";
|
2015-09-26 20:00:36 +02:00
|
|
|
};
|
|
|
|
|
2021-07-31 02:40:22 +02:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
|
2021-05-19 03:30:30 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
boost
|
|
|
|
bullet
|
|
|
|
ffmpeg
|
|
|
|
libXt
|
|
|
|
mygui
|
|
|
|
openal
|
|
|
|
openscenegraph_
|
|
|
|
unshield
|
|
|
|
];
|
2019-03-14 15:53:34 +01:00
|
|
|
|
2019-03-13 08:33:02 +01:00
|
|
|
cmakeFlags = [
|
2019-03-14 15:53:34 +01:00
|
|
|
"-DDESIRED_QT_VERSION:INT=5"
|
2021-05-19 03:30:30 +02:00
|
|
|
# as of 0.46, openmw is broken with GLVND
|
|
|
|
"-DOpenGL_GL_PREFERENCE=LEGACY"
|
2019-03-13 08:33:02 +01:00
|
|
|
];
|
2015-09-26 20:00:36 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-09-26 20:00:36 +02:00
|
|
|
description = "An unofficial open source engine reimplementation of the game Morrowind";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://openmw.org";
|
2020-12-31 08:48:55 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2016-07-23 12:04:53 +02:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2021-05-19 03:30:30 +02:00
|
|
|
platforms = platforms.linux;
|
2015-09-26 20:00:36 +02:00
|
|
|
};
|
|
|
|
}
|