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 = "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb";
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 = "A retro arcade video game";
32 license = licenses.gpl3;
33 maintainers = [ maintainers.marius851000 ];