3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/openmw/default.nix

42 lines
1.2 KiB
Nix
Raw Normal View History

2019-03-13 07:33:02 +00:00
{ stdenv, fetchFromGitHub, qt5, qt4, openscenegraph, mygui, bullet, ffmpeg
, boost, cmake, SDL2, unshield, openal, libXt, pkgconfig
, useQt5 ? true }:
2015-09-26 19:00:36 +01:00
let
2016-09-16 17:29:03 +01:00
openscenegraph_ = openscenegraph.overrideDerivation (self: {
src = fetchFromGitHub {
owner = "OpenMW";
repo = "osg";
2018-02-25 17:15:11 +00:00
rev = "2b4c8e37268e595b82da4b9aadd5507852569b87";
sha256 = "0admnllxic6dcpic0h100927yw766ab55dix002vvdx36i6994jb";
};
});
in stdenv.mkDerivation rec {
2019-03-13 07:33:02 +00:00
version = "0.44.0";
2015-09-26 19:00:36 +01:00
name = "openmw-${version}";
src = fetchFromGitHub {
owner = "OpenMW";
repo = "openmw";
rev = name;
2019-03-13 07:33:02 +00:00
sha256 = "0rxkw0bzag7qffifg28dyyga47aaaf5ziiccpv7p8yax1wglvymh";
2015-09-26 19:00:36 +01:00
};
2016-04-11 13:39:09 +01:00
enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig ];
2019-03-13 07:33:02 +00:00
buildInputs = [ cmake boost ffmpeg bullet mygui openscenegraph_ SDL2 unshield openal libXt ]
++ [ (if useQt5 then qt5.qtbase else qt4) ];
cmakeFlags = [
"-DDESIRED_QT_VERSION:INT=${if useQt5 then "5" else "4"}"
];
2015-09-26 19:00:36 +01:00
2016-04-12 01:57:42 +01:00
meta = with stdenv.lib; {
2015-09-26 19:00:36 +01:00
description = "An unofficial open source engine reimplementation of the game Morrowind";
homepage = http://openmw.org;
2016-04-12 01:57:42 +01:00
license = licenses.gpl3;
platforms = platforms.linux;
2016-07-23 11:04:53 +01:00
maintainers = with maintainers; [ abbradar ];
2015-09-26 19:00:36 +01:00
};
}