3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/chocolate-doom/default.nix

31 lines
928 B
Nix
Raw Normal View History

2021-01-15 04:31:39 +00:00
{ lib, stdenv, autoreconfHook, pkgconfig, SDL2, SDL2_mixer, SDL2_net, fetchFromGitHub }:
stdenv.mkDerivation rec {
2020-04-24 07:12:05 +01:00
pname = "chocolate-doom";
2020-07-03 05:23:16 +01:00
version = "3.0.1";
2020-04-24 07:12:05 +01:00
src = fetchFromGitHub {
owner = "chocolate-doom";
repo = pname;
rev = "${pname}-${version}";
2020-07-03 05:23:16 +01:00
sha256 = "1zlcqhd49c5n8vaahgaqrc2y10z86xng51sbd82xm3rk2dly25jp";
};
2020-04-24 07:12:05 +01:00
postPatch = ''
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 ];
enableParallelBuilding = true;
meta = {
homepage = "http://chocolate-doom.org/";
description = "A Doom source port that accurately reproduces the experience of Doom as it was played in the 1990s";
2021-01-15 04:31:39 +00:00
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
hydraPlatforms = lib.platforms.linux; # darwin times out
maintainers = with lib.maintainers; [ MP2E ];
};
}