diff options
author | Rick van Schijndel <Mindavi@users.noreply.github.com> | 2022-06-06 20:44:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-06 20:44:39 +0200 |
commit | 3037752d1d9450921ca3536fee12826188e8082d (patch) | |
tree | 80c96eb6fffca57986c2d43fdd0d8c31895a8969 /pkgs/games | |
parent | 6cecab9cd84f2c01ebeac82c4ed49ea053315d58 (diff) | |
parent | 7b3ca2f395ffac488a44c5c56fe3e8299cc5785c (diff) |
Merge pull request #175961 from helsinki-systems/rem/broken
remove some packages marked broken for over 1.5 years
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/tremulous/default.nix | 82 | ||||
-rw-r--r-- | pkgs/games/tremulous/parse.patch | 21 | ||||
-rw-r--r-- | pkgs/games/zangband/default.nix | 59 |
3 files changed, 0 insertions, 162 deletions
diff --git a/pkgs/games/tremulous/default.nix b/pkgs/games/tremulous/default.nix deleted file mode 100644 index e07697f7c0e1a..0000000000000 --- a/pkgs/games/tremulous/default.nix +++ /dev/null @@ -1,82 +0,0 @@ -{ lib, stdenv, fetchurl, unzip, libGLU, libGL, libX11, SDL, openal, runtimeShell }: -stdenv.mkDerivation rec { - pname = "tremulous"; - version = "1.1.0"; - src1 = fetchurl { - url = "mirror://sourceforge/tremulous/${pname}-${version}.zip"; - sha256 = "11w96y7ggm2sn5ncyaffsbg0vy9pblz2av71vqp9725wbbsndfy7"; - }; - # http://tremulous.net/wiki/Client_versions - src2 = fetchurl { - url = "http://releases.mercenariesguild.net/client/mgclient_source_Release_1.011.tar.gz"; - sha256 = "1vrsi7va7hdp8k824663s1pyw9zpsd4bwwr50j7i1nn72b0v9a26"; - }; - src3 = fetchurl { - url = "http://releases.mercenariesguild.net/tremded/mg_tremded_source_1.01.tar.gz"; - sha256 = "1njrqlhzjvy9myddzkagszwdcf3m4h08wip888w2rmbshs6kz6ql"; - }; - nativeBuildInputs = [ unzip ]; - buildInputs = [ libGLU libGL libX11 SDL openal ]; - unpackPhase = '' - unzip $src1 - cd tremulous - tar xvf $src2 - mkdir mg_tremded_source - cd mg_tremded_source - tar xvf $src3 - cd .. - ''; - patches = [ ./parse.patch ]; - patchFlags = [ "-p" "0" ]; - NIX_LD_FLAGS = '' - -rpath ${stdenv.cc}/lib - -rpath ${stdenv.cc}/lib64 - ''; - buildPhase = '' - cd Release_1.011 - make - cd .. - cd mg_tremded_source - make - cd .. - ''; - installPhase = '' - arch=$(uname -m | sed -e s/i.86/x86/) - mkdir -p $out/opt/tremulous - cp -v Release_1.011/build/release-linux-$arch/tremulous.$arch $out/opt/tremulous/ - cp -v mg_tremded_source/build/release-linux-$arch/tremded.$arch $out/opt/tremulous/ - cp -rv base $out/opt/tremulous - mkdir -p $out/bin - for b in tremulous tremded - do - cat << EOF > $out/bin/$b - #!${runtimeShell} - cd $out/opt/tremulous - exec ./$b.$arch "\$@" - EOF - chmod +x $out/bin/$b - done - ''; - dontPatchELF = true; - meta = with lib; { - description = "A game that blends a team based FPS with elements of an RTS"; - longDescription = '' - Tremulous is a free, open source game that blends a team based FPS with - elements of an RTS. Players can choose from 2 unique races, aliens and - humans. Players on both teams are able to build working structures - in-game like an RTS. These structures provide many functions, the most - important being spawning. The designated builders must ensure there are - spawn structures or other players will not be able to rejoin the game - after death. Other structures provide automated base defense (to some - degree), healing functions and much more... - ''; - homepage = "http://www.tremulous.net"; - license = with licenses; [ - gpl2 - cc-by-sa-25 /* media */ - ]; - maintainers = with maintainers; [ astsmtl ]; - platforms = platforms.linux; - broken = true; - }; -} diff --git a/pkgs/games/tremulous/parse.patch b/pkgs/games/tremulous/parse.patch deleted file mode 100644 index 12a73138c099d..0000000000000 --- a/pkgs/games/tremulous/parse.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -ruN Release_1.011-old/src/qcommon/parse.c Release_1.011/src/qcommon/parse.c ---- Release_1.011-old/src/qcommon/parse.c 2011-12-02 19:11:49.307368651 -0500 -+++ Release_1.011/src/qcommon/parse.c 2011-12-02 19:13:27.556836387 -0500 -@@ -981,7 +981,7 @@ - { - if (*string == '\"') - { -- strcpy(string, string+1); -+ memmove(string, string+1, strlen(string)); - } - if (string[strlen(string)-1] == '\"') - { -@@ -1784,7 +1784,7 @@ - if ((*ptr == '\\' || *ptr == '/') && - (*(ptr+1) == '\\' || *(ptr+1) == '/')) - { -- strcpy(ptr, ptr+1); -+ memmove(ptr, ptr+1, strlen(ptr)); - } - else - { diff --git a/pkgs/games/zangband/default.nix b/pkgs/games/zangband/default.nix deleted file mode 100644 index 7548b082a13ba..0000000000000 --- a/pkgs/games/zangband/default.nix +++ /dev/null @@ -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 - }; -} |