1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00
nixpkgs/pkgs/games/abbaye-des-morts/default.nix
2021-01-15 13:36:04 +07:00

36 lines
862 B
Nix

{ lib, stdenv, fetchFromGitHub, SDL2, SDL2_image, SDL2_mixer }:
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=" ];
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 ];
};
}