2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, SDL2, SDL2_image, SDL2_mixer }:
|
2019-05-29 09:42:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "abbaye-des-morts";
|
|
|
|
version = "2.0.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nevat";
|
|
|
|
repo = "abbayedesmorts-gpl";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ SDL2 SDL2_image SDL2_mixer ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "DESTDIR=" ];
|
|
|
|
|
2021-01-15 04:31:39 +00:00
|
|
|
preBuild = lib.optionalString stdenv.cc.isClang
|
2019-05-29 09:42:31 +00:00
|
|
|
''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace -fpredictive-commoning ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-29 09:42:31 +00:00
|
|
|
homepage = "https://locomalito.com/abbaye_des_morts.php";
|
|
|
|
description = "A retro arcade video game";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.marius851000 ];
|
|
|
|
};
|
|
|
|
}
|