2015-05-15 10:04:08 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, fmod, mesa, SDL }:
|
2009-02-22 23:06:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-05-15 10:04:08 +02:00
|
|
|
name = "zdoom-2.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
#url = "https://github.com/rheit/zdoom";
|
|
|
|
owner = "rheit";
|
|
|
|
repo = "zdoom";
|
|
|
|
rev = "2.7.1";
|
|
|
|
sha256 = "00bx4sgl9j1dyih7yysfq4ah6msxw8580g53p99jfym34ky5ppkh";
|
2009-02-22 23:06:34 +01:00
|
|
|
};
|
2012-11-26 14:22:27 +01:00
|
|
|
|
2015-05-15 10:04:08 +02:00
|
|
|
buildInputs = [ cmake fmod mesa SDL ];
|
2012-11-26 14:22:27 +01:00
|
|
|
|
2015-05-15 10:04:08 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DFMOD_LIBRARY=${fmod}/lib/libfmodex.so"
|
2015-10-11 16:21:43 +02:00
|
|
|
"-DSDL_INCLUDE_DIR=${SDL.dev}/include"
|
2015-05-15 10:04:08 +02:00
|
|
|
];
|
2009-02-22 23:06:34 +01:00
|
|
|
|
2015-10-11 16:21:43 +02:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-I ${SDL.dev}/include/SDL" ];
|
2009-02-22 23:06:34 +01:00
|
|
|
|
2015-05-15 10:04:08 +02:00
|
|
|
preConfigure = ''
|
2009-02-22 23:06:34 +01:00
|
|
|
sed s@zdoom.pk3@$out/share/zdoom.pk3@ -i src/version.h
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp zdoom $out/bin
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp zdoom.pk3 $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://zdoom.org/;
|
|
|
|
description = "Enhanced port of the official DOOM source code";
|
2016-07-11 03:04:01 +02:00
|
|
|
license = stdenv.lib.licenses.unfree;
|
2016-02-10 14:59:36 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.lassulus ];
|
2009-02-22 23:06:34 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|