2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, SDL2, SDL2_image, SDL2_mixer }:
|
2019-05-29 11:42:31 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "abbaye-des-morts";
|
2023-10-24 16:35:24 +02:00
|
|
|
version = "2.0.2";
|
2019-05-29 11:42:31 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nevat";
|
|
|
|
repo = "abbayedesmorts-gpl";
|
|
|
|
rev = "v${version}";
|
2023-10-24 16:35:24 +02:00
|
|
|
sha256 = "sha256-/RAtOL51o3/5pDgqPLJMTtDFY9BpIowM5MpJ88+v/Zs=";
|
2019-05-29 11:42:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ SDL2 SDL2_image SDL2_mixer ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "DESTDIR=" ];
|
|
|
|
|
2021-01-15 05:31:39 +01:00
|
|
|
preBuild = lib.optionalString stdenv.cc.isClang
|
2019-05-29 11:42:31 +02:00
|
|
|
''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace -fpredictive-commoning ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-05-29 11:42:31 +02:00
|
|
|
homepage = "https://locomalito.com/abbaye_des_morts.php";
|
|
|
|
description = "A retro arcade video game";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "abbayev2";
|
2019-05-29 11:42:31 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.marius851000 ];
|
|
|
|
};
|
|
|
|
}
|