1 { lib, stdenv, fetchFromGitLab, SDL, SDL_image, SDL_mixer, zlib }:
7 src = fetchFromGitLab {
10 rev = "314af46d84d2746eec4c30a0f63cbc2e651d5303";
11 sha256 = "1hrwm65isg5nwzydyd8gvgl3p36sbj09rsn228sppr8g5p9sm10x";
15 substituteInPlace Makefile \
16 --replace "CPPFLAGS +=" "CPPFLAGS += -DSAVES_IN_HOME -DDATADIR=\\\"$out/share/meritous\\\"" \
17 --replace sld-config ${lib.getDev SDL}/bin/sdl-config
18 substituteInPlace src/audio.c \
19 --replace "filename[64]" "filename[256]"
22 buildInputs = [ SDL SDL_image SDL_mixer zlib ];
25 install -m 555 -D meritous $out/bin/meritous
26 mkdir -p $out/share/meritous
27 cp -r dat/* $out/share/meritous/
30 hardeningDisable = [ "stackprotector" "fortify" ];
33 description = "Action-adventure dungeon crawl game";
34 homepage = "http://www.asceai.net/meritous/";
35 license = licenses.gpl3;
36 maintainers = [ maintainers.alexvorobiev ];
37 platforms = platforms.linux;