nixpkgs/pkgs/games/abbaye-des-morts/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

37 lines
889 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 = "Retro arcade video game";
mainProgram = "abbayev2";
license = licenses.gpl3;
maintainers = [ maintainers.marius851000 ];
};
}