Merge pull request #16683 from rardiol/cataclysm-dda-git2

cataclysm-dda-git: init at 2017-07-12

authored by Renaud and committed by GitHub 90ffccff 16eef54e

+69
+67
pkgs/games/cataclysm-dda/git.nix
··· 1 + { fetchFromGitHub, stdenv, makeWrapper, pkgconfig, ncurses, lua, SDL2, SDL2_image, SDL2_ttf, 2 + SDL2_mixer, freetype, gettext }: 3 + 4 + stdenv.mkDerivation rec { 5 + version = "2017-07-12"; 6 + name = "cataclysm-dda-git-${version}"; 7 + 8 + src = fetchFromGitHub { 9 + owner = "CleverRaven"; 10 + repo = "Cataclysm-DDA"; 11 + rev = "2d7aa8c"; 12 + sha256 = "0xx7si4k5ivyb5gv98fzlcghrg3w0dfblri547x7x4is7fj5ffjd"; 13 + }; 14 + 15 + nativeBuildInputs = [ makeWrapper pkgconfig ]; 16 + 17 + buildInputs = [ ncurses lua SDL2 SDL2_image SDL2_ttf SDL2_mixer freetype gettext ]; 18 + 19 + postPatch = '' 20 + patchShebangs . 21 + sed -i Makefile \ 22 + -e 's,-Werror,,g' \ 23 + -e 's,\(DATA_PREFIX=$(PREFIX)/share/\)cataclysm-dda/,\1,g' 24 + 25 + sed '1i#include <cmath>' \ 26 + -i src/{crafting,skill,weather_data,melee,vehicle,overmap,iuse_actor}.cpp 27 + ''; 28 + 29 + makeFlags = "PREFIX=$(out) LUA=1 TILES=1 SOUND=1 RELEASE=1 USE_HOME_DIR=1"; 30 + 31 + postInstall = '' 32 + wrapProgram $out/bin/cataclysm-tiles \ 33 + --add-flags "--datadir $out/share/cataclysm-dda/" 34 + ''; 35 + 36 + enableParallelBuilding = true; 37 + 38 + meta = with stdenv.lib; { 39 + description = "A free, post apocalyptic, zombie infested rogue-like"; 40 + longDescription = '' 41 + Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world. 42 + Surviving is difficult: you have been thrown, ill-equipped, into a 43 + landscape now riddled with monstrosities of which flesh eating zombies are 44 + neither the strangest nor the deadliest. 45 + 46 + Yet with care and a little luck, many things are possible. You may try to 47 + eke out an existence in the forests silently executing threats and 48 + providing sustenance with your longbow. You can ride into town in a 49 + jerry-rigged vehicle, all guns blazing, to settle matters in a fug of 50 + smoke from your molotovs. You could take a more measured approach and 51 + construct an impregnable fortress, surrounded by traps to protect you from 52 + the horrors without. The longer you survive, the more skilled and adapted 53 + you will get and the better equipped and armed to deal with the threats 54 + you are presented with. 55 + 56 + In the course of your ordeal there will be opportunities and temptations 57 + to improve or change your very nature. There are tales of survivors fitted 58 + with extraordinary cybernetics giving great power and stories too of 59 + gravely mutated survivors who, warped by their ingestion of exotic 60 + substances or radiation, now more closely resemble insects, birds or fish 61 + than their original form. 62 + ''; 63 + homepage = http://en.cataclysmdda.com/; 64 + license = licenses.cc-by-sa-30; 65 + platforms = platforms.linux; 66 + }; 67 + }
+2
pkgs/top-level/all-packages.nix
··· 17690 17690 17691 17691 cataclysm-dda = callPackage ../games/cataclysm-dda { }; 17692 17692 17693 + cataclysm-dda-git = callPackage ../games/cataclysm-dda/git.nix { }; 17694 + 17693 17695 chessdb = callPackage ../games/chessdb { }; 17694 17696 17695 17697 chessx = libsForQt5.callPackage ../games/chessx { };