nixpkgs/pkgs/games/gzdoom/default.nix
Jookia e5154f2ab2 zdoom: Mark it and its forks as nonfree.
See http://zdoom.org/wiki/License and the source code of each package.
2016-07-11 11:05:34 +10:00

35 lines
902 B
Nix

{stdenv, fetchFromGitHub, cmake, fmod, mesa, SDL2}:
stdenv.mkDerivation {
name = "gzdoom-2015-05-07";
src = fetchFromGitHub{
owner = "coelckers";
repo = "gzdoom";
rev = "a59824cd8897dea5dd452c31be1328415478f990";
sha256 = "1lg9dk5prn2bjmyznq941a862alljvfgbb42whbpg0vw9vhpikak";
};
buildInputs = [ cmake fmod mesa SDL2 ];
cmakeFlags = [ "-DFMOD_LIBRARY=${fmod}/lib/libfmodex.so" ];
preConfigure=''
sed s@gzdoom.pk3@$out/share/gzdoom.pk3@ -i src/version.h
'';
installPhase = ''
mkdir -p $out/bin
cp gzdoom $out/bin
mkdir -p $out/share
cp gzdoom.pk3 $out/share
'';
meta = {
homepage = https://github.com/coelckers/gzdoom;
description = "A Doom source port based on ZDoom. It features an OpenGL renderer and lots of new features";
license = stdenv.lib.licenses.unfree;
maintainers = [ stdenv.lib.maintainers.lassulus ];
};
}