From 3ba7d2ae018988212a780dc935ebfc482312dab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edward=20Tj=C3=B6rnhammar?= Date: Sun, 11 Nov 2018 12:36:26 +0100 Subject: [PATCH] zangband: 2.7.3 -> 2.7.4b With minor fixups but marking as broken since the game doesn't progress after character generation. --- pkgs/games/zangband/default.nix | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/pkgs/games/zangband/default.nix b/pkgs/games/zangband/default.nix index cf5e41f389a9..6fab49825340 100644 --- a/pkgs/games/zangband/default.nix +++ b/pkgs/games/zangband/default.nix @@ -1,28 +1,23 @@ { stdenv, fetchurl, ncurses, flex, bison, autoconf, automake, m4, coreutils }: stdenv.mkDerivation rec { - name = "zangband-${version}"; - version = "2.7.3"; + name = pname + "-" + version; + pname = "zangband"; + version = "2.7.4b"; src = fetchurl { - url = "ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/zangband-${version}.tar.gz"; - sha256 = "0654m8fzklsc8565sqdad76mxjsm1z9c280srq8863sd10af0bdq"; + url = "mirror://sourceforge/project/${pname}/${pname}-src/${version}/${name}.tar.gz"; + sha256 = "0kkz6f9myhjnr3308sdab8q186rd55lapvcp38w8qmakdbhc828j"; }; buildInputs = [ ncurses flex bison autoconf automake m4 ]; - # fails during chmod due to broken permissions - dontMakeSourcesWritable = true; - postUnpack = '' - chmod a+rwX -R . - ''; - preConfigure = '' sed -re 's/ch(own|grp|mod)/true/' -i lib/*/makefile.zb makefile.in sed -e '/FIXED_PATHS/d' -i src/z-config.h - ./bootstrap + autoconf ''; preInstall = '' @@ -42,8 +37,8 @@ stdenv.mkDerivation rec { cd "$ZANGBAND_PATH" for i in $(find "$ORIG_PATH" -type f); do REL_PATH="''${i#$ORIG_PATH/}" - mkdir -p "$(dirname "$REL_PATH")" - ln -s "$i" "$REL_PATH" &>/dev/null + mkdir -p "$(dirname "$REL_PATH")" + ln -s "$i" "$REL_PATH" &>/dev/null done mkdir -p lib/user lib/save for i in lib/*/*.raw; do @@ -59,5 +54,6 @@ stdenv.mkDerivation rec { meta = { description = "Rogue-like game"; license = stdenv.lib.licenses.unfree; + broken = true; # broken in runtime, will not get pass character generation }; }