2020-04-24 07:12:05 +01:00
|
|
|
{ stdenv, autoreconfHook, pkgconfig, SDL2, SDL2_mixer, SDL2_net, fetchFromGitHub }:
|
2014-09-02 09:36:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 07:12:05 +01:00
|
|
|
pname = "chocolate-doom";
|
|
|
|
version = "3.0.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chocolate-doom";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "0ajzb767wyj8vzhjpsmgslw42b0155ji4alk26shxl7k5ijbzn0j";
|
2014-09-02 09:36:47 +01:00
|
|
|
};
|
2020-04-24 07:12:05 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
2014-09-02 09:36:47 +01:00
|
|
|
sed -e 's#/games#/bin#g' -i src{,/setup}/Makefile.am
|
|
|
|
'';
|
|
|
|
|
2020-04-24 07:12:05 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ SDL2 SDL2_mixer SDL2_net ];
|
2014-09-02 09:36:47 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://chocolate-doom.org/";
|
2014-09-09 06:11:14 +01:00
|
|
|
description = "A Doom source port that accurately reproduces the experience of Doom as it was played in the 1990s";
|
2014-09-02 09:36:47 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2014-11-19 11:03:00 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2018-06-23 22:35:01 +01:00
|
|
|
hydraPlatforms = stdenv.lib.platforms.linux; # darwin times out
|
2014-09-02 09:36:47 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ MP2E ];
|
|
|
|
};
|
|
|
|
}
|