diff options
author | Sven Keidel <svenkeidel@googlemail.com> | 2015-08-06 23:04:44 +0200 |
---|---|---|
committer | Sven Keidel <svenkeidel@googlemail.com> | 2015-08-09 15:17:14 +0200 |
commit | 61e804a35f06c5cd7c6207302e12ef75c3d11a52 (patch) | |
tree | 562ea05d879b73ec479f3e0faa4659b1d06ab29a /pkgs/games/cataclysm-dda | |
parent | f433c06ad877435d42b82062b5457df235d51032 (diff) | |
download | nixpkgs-61e804a35f06c5cd7c6207302e12ef75c3d11a52.tar nixpkgs-61e804a35f06c5cd7c6207302e12ef75c3d11a52.tar.gz nixpkgs-61e804a35f06c5cd7c6207302e12ef75c3d11a52.tar.bz2 nixpkgs-61e804a35f06c5cd7c6207302e12ef75c3d11a52.tar.lz nixpkgs-61e804a35f06c5cd7c6207302e12ef75c3d11a52.tar.xz nixpkgs-61e804a35f06c5cd7c6207302e12ef75c3d11a52.tar.zst nixpkgs-61e804a35f06c5cd7c6207302e12ef75c3d11a52.zip |
cataclysm-dda: init at 0.C
Diffstat (limited to 'pkgs/games/cataclysm-dda')
-rw-r--r-- | pkgs/games/cataclysm-dda/default.nix | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/games/cataclysm-dda/default.nix b/pkgs/games/cataclysm-dda/default.nix new file mode 100644 index 00000000000..c8d69d3078d --- /dev/null +++ b/pkgs/games/cataclysm-dda/default.nix @@ -0,0 +1,71 @@ +{ fetchFromGitHub, stdenv, makeWrapper, pkgconfig, ncurses, lua, SDL2, SDL2_image, SDL2_ttf, +SDL2_mixer, freetype, gettext }: + +let architecture = + if stdenv.system == "i686-linux" then + "linux32" + else if stdenv.system == "x86_64-linux" then + "linux64" + else + abort "currently only linux 32-bit and 64-bit are supported"; + +in stdenv.mkDerivation rec { + version = "0.C"; + name = "cataclysm-dda-${version}"; + + src = fetchFromGitHub { + owner = "CleverRaven"; + repo = "Cataclysm-DDA"; + rev = "${version}"; + sha256 = "03sdzsk4qdq99qckq0axbsvg1apn6xizscd8pwp5w6kq2fyj5xkv"; + }; + + buildInputs = [ makeWrapper pkgconfig ncurses lua SDL2 SDL2_image SDL2_ttf SDL2_mixer freetype gettext ]; + + patchPhase = '' + patchShebangs . + substituteAllInPlace lang/compile_mo.sh \ + --replace msgfmt ${gettext}/msgfmt + sed -i -e 's|DATA_PREFIX=$(PREFIX)/share/cataclysm-dda/|DATA_PREFIX=$(PREFIX)/share/|g' Makefile + ''; + + makeFlags = "PREFIX=$(out) LUA=1 TILES=1 SOUND=1 RELEASE=1 USE_HOME_DIR=1"; + + postInstall = '' + wrapProgram $out/bin/cataclysm-tiles \ + --add-flags "--datadir $out/share/" + ''; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { + description = "A free, post apocalyptic, zombie infested rogue-like"; + longDescription = '' + Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world. + Surviving is difficult: you have been thrown, ill-equipped, into a + landscape now riddled with monstrosities of which flesh eating zombies are + neither the strangest nor the deadliest. + + Yet with care and a little luck, many things are possible. You may try to + eke out an existence in the forests silently executing threats and + providing sustenance with your longbow. You can ride into town in a + jerry-rigged vehicle, all guns blazing, to settle matters in a fug of + smoke from your molotovs. You could take a more measured approach and + construct an impregnable fortress, surrounded by traps to protect you from + the horrors without. The longer you survive, the more skilled and adapted + you will get and the better equipped and armed to deal with the threats + you are presented with. + + In the course of your ordeal there will be opportunities and temptations + to improve or change your very nature. There are tales of survivors fitted + with extraordinary cybernetics giving great power and stories too of + gravely mutated survivors who, warped by their ingestion of exotic + substances or radiation, now more closely resemble insects, birds or fish + than their original form. + ''; + homepage = http://en.cataclysmdda.com/; + license = licenses.cc-by-sa-30; + maintainers = [ maintainers.skeidel ]; + platforms = platforms.linux; + }; +} |