1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

zangband: remove after being marked broken for over 18 months

It was marked in commit 3ba7d2ae01 by Edward Tjörnhammar on 2018-11-11 (commited on 2018-11-11)
This commit is contained in:
ajs124 2022-06-02 17:52:14 +02:00
parent 77d9d13f3e
commit 7b3ca2f395
2 changed files with 0 additions and 61 deletions

View file

@ -1,59 +0,0 @@
{ lib, stdenv, fetchurl, ncurses, flex, bison, autoconf, automake, m4, coreutils }:
stdenv.mkDerivation rec {
pname = "zangband";
version = "2.7.4b";
src = fetchurl {
url = "mirror://sourceforge/project/${pname}/${pname}-src/${version}/${pname}-${version}.tar.gz";
sha256 = "0kkz6f9myhjnr3308sdab8q186rd55lapvcp38w8qmakdbhc828j";
};
nativeBuildInputs = [ autoconf automake ];
buildInputs = [
ncurses flex bison m4
];
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
autoconf
'';
preInstall = ''
mkdir -p $out/share/games/zangband
mkdir -p $out/share/man
mkdir -p $out/bin
'';
postInstall = ''
mv $out/bin/zangband $out/bin/.zangband.real
echo '#! ${stdenv.shell}
PATH="$PATH:${coreutils}/bin"
ZANGBAND_PATH="$HOME/.zangband"
ORIG_PATH="'$out'"/share/games/zangband
mkdir -p "$ZANGBAND_PATH"
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
done
mkdir -p lib/user lib/save
for i in lib/*/*.raw; do
test -L "$i" && rm "$i";
done
for i in $(find lib -type l); do if ! test -e $(readlink "$i"); then rm "$i"; fi; done;
export ANGBAND_PATH="$PWD"
"'$out'/bin/.zangband.real" "$@"
' > $out/bin/zangband
chmod +x $out/bin/zangband
'';
meta = {
description = "Rogue-like game";
license = lib.licenses.unfree;
broken = true; # broken in runtime, will not get pass character generation
};
}

View file

@ -32472,8 +32472,6 @@ with pkgs;
serverOnly = true;
};
zangband = callPackage ../games/zangband { };
zaz = callPackage ../games/zaz { };
zdbsp = callPackage ../games/zdoom/zdbsp.nix { };