nixpkgs/pkgs/games/zdoom/default.nix

40 lines
895 B
Nix
Raw Normal View History

2015-05-15 08:04:08 +00:00
{ stdenv, fetchFromGitHub, cmake, fmod, mesa, SDL }:
stdenv.mkDerivation {
2015-05-15 08:04:08 +00:00
name = "zdoom-2.7.1";
src = fetchFromGitHub {
#url = "https://github.com/rheit/zdoom";
owner = "rheit";
repo = "zdoom";
rev = "2.7.1";
sha256 = "00bx4sgl9j1dyih7yysfq4ah6msxw8580g53p99jfym34ky5ppkh";
};
2012-11-26 13:22:27 +00:00
2015-05-15 08:04:08 +00:00
buildInputs = [ cmake fmod mesa SDL ];
2012-11-26 13:22:27 +00:00
2015-05-15 08:04:08 +00:00
cmakeFlags = [
"-DFMOD_LIBRARY=${fmod}/lib/libfmodex.so"
"-DSDL_INCLUDE_DIR=${SDL}/include"
];
2015-05-15 08:04:08 +00:00
NIX_CFLAGS_COMPILE = [ "-I ${SDL}/include/SDL" ];
2015-05-15 08:04:08 +00:00
preConfigure = ''
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";
2015-05-15 08:04:08 +00:00
maintainer = [ stdenv.lib.maintainers.lassulus ];
};
}