504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
35 lines
861 B
Nix
35 lines
861 B
Nix
{ lib, stdenv, fetchFromGitHub, SDL2, SDL2_image, SDL2_mixer }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "abbaye-des-morts";
|
|
version = "2.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nevat";
|
|
repo = "abbayedesmorts-gpl";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-/RAtOL51o3/5pDgqPLJMTtDFY9BpIowM5MpJ88+v/Zs=";
|
|
};
|
|
|
|
buildInputs = [ SDL2 SDL2_image SDL2_mixer ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "DESTDIR=" ];
|
|
|
|
preBuild = lib.optionalString stdenv.cc.isClang
|
|
''
|
|
substituteInPlace Makefile \
|
|
--replace -fpredictive-commoning ""
|
|
'';
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/bin
|
|
mkdir -p $out/share/applications
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://locomalito.com/abbaye_des_morts.php";
|
|
description = "A retro arcade video game";
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.marius851000 ];
|
|
};
|
|
}
|