nixpkgs/pkgs/games/openmw/default.nix

41 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, mkDerivationWith, fetchFromGitHub, qtbase, openscenegraph, mygui, bullet, ffmpeg_3
2019-03-14 07:53:34 -07:00
, boost, cmake, SDL2, unshield, openal, libXt, pkgconfig }:
2015-09-26 11:00:36 -07:00
let
2016-09-16 09:29:03 -07:00
openscenegraph_ = openscenegraph.overrideDerivation (self: {
src = fetchFromGitHub {
owner = "OpenMW";
repo = "osg";
2020-06-16 11:45:23 -07:00
rev = "1556cd7966ebc1c80b6626988d2b25fb43a744cf";
sha256 = "0d74hijzmj82nx3jkv5qmr3pkgvplra0b8fbjx1y3vmzxamb0axd";
};
});
2020-01-22 11:06:40 -08:00
in mkDerivationWith stdenv.mkDerivation rec {
2020-06-16 11:45:23 -07:00
version = "0.46.0";
pname = "openmw";
2015-09-26 11:00:36 -07:00
src = fetchFromGitHub {
owner = "OpenMW";
repo = "openmw";
rev = "${pname}-${version}";
2020-06-16 11:45:23 -07:00
sha256 = "0rm32zsmxvr6b0jjihfj543skhicbw5kg6shjx312clhlm035w2x";
2015-09-26 11:00:36 -07:00
};
2016-04-11 05:39:09 -07:00
enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake boost ffmpeg_3 bullet mygui openscenegraph_ SDL2 unshield openal libXt qtbase ];
2019-03-14 07:53:34 -07:00
2019-03-13 00:33:02 -07:00
cmakeFlags = [
2019-03-14 07:53:34 -07:00
"-DDESIRED_QT_VERSION:INT=5"
2019-03-13 00:33:02 -07:00
];
2015-09-26 11:00:36 -07:00
2016-04-11 17:57:42 -07:00
meta = with stdenv.lib; {
2015-09-26 11:00:36 -07:00
description = "An unofficial open source engine reimplementation of the game Morrowind";
homepage = "http://openmw.org";
2016-04-11 17:57:42 -07:00
license = licenses.gpl3;
platforms = platforms.linux;
2016-07-23 03:04:53 -07:00
maintainers = with maintainers; [ abbradar ];
2015-09-26 11:00:36 -07:00
};
}