meritous: init at 1.4

authored by Alex Vorobiev and committed by Franz Pletz 770bedbc c47d77ce

+43
+1
lib/maintainers.nix
··· 31 31 ak = "Alexander Kjeldaas <ak@formalprivacy.com>"; 32 32 akaWolf = "Artjom Vejsel <akawolf0@gmail.com>"; 33 33 akc = "Anders Claesson <akc@akc.is>"; 34 + alexvorobiev = "Alex Vorobiev <alexander.vorobiev@gmail.com"; 34 35 algorith = "Dries Van Daele <dries_van_daele@telenet.be>"; 35 36 alibabzo = "Alistair Bill <alistair.bill@gmail.com>"; 36 37 all = "Nix Committers <nix-commits@lists.science.uu.nl>";
+40
pkgs/games/meritous/default.nix
··· 1 + { stdenv, fetchFromGitLab, SDL, SDL_image, SDL_mixer, zlib, binutils }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "meritous-${version}"; 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 ${SDL.dev}/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 stdenv.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 +
+2
pkgs/top-level/all-packages.nix
··· 1141 1141 1142 1142 masscan = callPackage ../tools/security/masscan { }; 1143 1143 1144 + meritous = callPackage ../games/meritous { }; 1145 + 1144 1146 meson = callPackage ../development/tools/build-managers/meson { }; 1145 1147 1146 1148 mp3fs = callPackage ../tools/filesystems/mp3fs { };