1 { lib, stdenv, fetchFromGitHub, SDL2, SDL2_image, SDL2_mixer }:
3 stdenv.mkDerivation rec {
4 pname = "abbaye-des-morts";
7 src = fetchFromGitHub {
9 repo = "abbayedesmorts-gpl";
11 sha256 = "sha256-IU7E1zmeif9CdoBxzmh7MG2jElGGnEZyKnK7eYFrjsQ=";
14 buildInputs = [ SDL2 SDL2_image SDL2_mixer ];
16 makeFlags = [ "PREFIX=$(out)" "DESTDIR=" ];
18 preBuild = lib.optionalString stdenv.cc.isClang
20 substituteInPlace Makefile \
21 --replace -fpredictive-commoning ""
26 mkdir -p $out/share/applications
30 homepage = "https://locomalito.com/abbaye_des_morts.php";
31 description = "Retro arcade video game";
32 mainProgram = "abbayev2";
33 license = licenses.gpl3;
34 maintainers = [ maintainers.marius851000 ];