nixpkgs/pkgs/games/openmw/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2019-03-14 07:53:34 -07:00
{ stdenv, fetchFromGitHub, qtbase, openscenegraph, mygui, bullet, ffmpeg
, 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";
2018-02-25 09:15:11 -08:00
rev = "2b4c8e37268e595b82da4b9aadd5507852569b87";
sha256 = "0admnllxic6dcpic0h100927yw766ab55dix002vvdx36i6994jb";
};
});
in stdenv.mkDerivation rec {
2019-03-29 18:59:34 -07:00
version = "0.45.0";
2015-09-26 11:00:36 -07:00
name = "openmw-${version}";
src = fetchFromGitHub {
owner = "OpenMW";
repo = "openmw";
rev = name;
2019-03-29 18:59:34 -07:00
sha256 = "1r87zrsnza2v9brksh809zzqj6zhk5xj15qs8iq11v1bscm2a2j4";
2015-09-26 11:00:36 -07:00
};
2016-04-11 05:39:09 -07:00
enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig ];
2019-03-14 07:53:34 -07:00
buildInputs = [ cmake boost ffmpeg bullet mygui openscenegraph_ SDL2 unshield openal libXt qtbase ];
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
};
}