nixpkgs/pkgs/games/abbaye-des-morts/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

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