nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 40 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitLab, SDL, SDL_image, SDL_mixer, zlib }: 2 3stdenv.mkDerivation { 4 pname = "meritous"; 5 version = "1.4"; 6 7 src = fetchFromGitLab { 8 owner = "meritous"; 9 repo = "meritous"; 10 rev = "314af46d84d2746eec4c30a0f63cbc2e651d5303"; 11 sha256 = "1hrwm65isg5nwzydyd8gvgl3p36sbj09rsn228sppr8g5p9sm10x"; 12 }; 13 14 prePatch = '' 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]" 20 ''; 21 22 buildInputs = [ SDL SDL_image SDL_mixer zlib ]; 23 24 installPhase = '' 25 install -m 555 -D meritous $out/bin/meritous 26 mkdir -p $out/share/meritous 27 cp -r dat/* $out/share/meritous/ 28 ''; 29 30 hardeningDisable = [ "stackprotector" "fortify" ]; 31 32 meta = with lib; { 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; 38 }; 39} 40