1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/games/meritous/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitLab, SDL, SDL_image, SDL_mixer, zlib }:
2017-10-24 02:51:14 +01:00
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "meritous";
2017-10-24 02:51:14 +01:00
version = "1.4";
src = fetchFromGitLab {
owner = "meritous";
repo = "meritous";
rev = "314af46d84d2746eec4c30a0f63cbc2e651d5303";
sha256 = "1hrwm65isg5nwzydyd8gvgl3p36sbj09rsn228sppr8g5p9sm10x";
};
prePatch = ''
substituteInPlace Makefile \
--replace "CPPFLAGS +=" "CPPFLAGS += -DSAVES_IN_HOME -DDATADIR=\\\"$out/share/meritous\\\"" \
--replace sld-config ${SDL.dev}/bin/sdl-config
substituteInPlace src/audio.c \
--replace "filename[64]" "filename[256]"
'';
buildInputs = [ SDL SDL_image SDL_mixer zlib ];
installPhase = ''
install -m 555 -D meritous $out/bin/meritous
mkdir -p $out/share/meritous
cp -r dat/* $out/share/meritous/
'';
hardeningDisable = [ "stackprotector" "fortify" ];
meta = with stdenv.lib; {
description = "Action-adventure dungeon crawl game";
homepage = "http://www.asceai.net/meritous/";
2017-10-24 02:51:14 +01:00
license = licenses.gpl3;
maintainers = [ maintainers.alexvorobiev ];
platforms = platforms.linux;
};
}