crafty: remove
This commit is contained in:
parent
af6a78c0ca
commit
9334785442
|
@ -1,73 +0,0 @@
|
|||
{ lib, stdenv, fetchurl, unzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "crafty";
|
||||
version = "25.0.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.craftychess.com/downloads/source/crafty-${version}.zip";
|
||||
sha256 = "0aqgj2q7kdlgbha01qs869cwyja13bc7q2lh4nfhlba2pklknsm8";
|
||||
};
|
||||
|
||||
bookBin = fetchurl {
|
||||
url = "http://www.craftychess.com/downloads/book/book.bin";
|
||||
sha256 = "10rrgkr3hxm7pxdbc2jq8b5g74gfhzk4smahks3k8am1cmyq4p7r";
|
||||
};
|
||||
|
||||
startPgn = fetchurl {
|
||||
url = "http://craftychess.com/downloads/book/start.pgn.gz";
|
||||
sha256 = "12g70mgfifwssfvndzq94pin34dizlixhsga75vgj7dakysi2p7f";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
unpackPhase = ''
|
||||
mkdir "craftysrc"
|
||||
unzip $src -d craftysrc
|
||||
gunzip -c $startPgn > "craftysrc/start.pgn"
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
cd craftysrc
|
||||
make unix-gcc
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
BUILDDIR="$PWD"
|
||||
mkdir -p $out/bin
|
||||
cp -p ./crafty $out/bin
|
||||
|
||||
mkdir -p $out/share/crafty
|
||||
cd $out/share/crafty
|
||||
|
||||
$out/bin/crafty "books create $BUILDDIR/start.pgn 60"
|
||||
rm -f *.001
|
||||
|
||||
cp -p ${bookBin} $out/share/crafty/book.bin
|
||||
|
||||
mv $out/bin/crafty $out/bin/.crafty-wrapped
|
||||
|
||||
cat - > $out/bin/crafty <<EOF
|
||||
#! ${stdenv.shell}
|
||||
#
|
||||
# The books are copied from share/crafty to ~/.crafty/books the first time
|
||||
# this script is run. You can restore them at any time just copying them
|
||||
# again.
|
||||
if [[ ! -d "\$HOME/.crafty/books" ]]; then
|
||||
mkdir "\$HOME/.crafty/books" -p
|
||||
cp "$out/share/crafty/"book*.bin "\$HOME/.crafty/books"
|
||||
chmod ug+w "\$HOME/.crafty/books/"*
|
||||
fi
|
||||
exec $out/bin/.crafty-wrapped bookpath=\$HOME/.crafty/books "\$@"
|
||||
EOF
|
||||
chmod +x $out/bin/crafty
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.craftychess.com/";
|
||||
description = "Chess program developed by Dr. Robert M. Hyatt";
|
||||
license = lib.licenses.unfree;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = [ lib.maintainers.jwiegley ];
|
||||
};
|
||||
}
|
|
@ -156,6 +156,7 @@ mapAliases ({
|
|||
coredumper = throw "coredumper has been removed: abandoned by upstream."; # added 2019-11-16
|
||||
cpp_ethereum = throw "cpp_ethereum has been removed; abandoned upstream."; # added 2020-11-30
|
||||
cpuminer-multi = throw "cpuminer-multi has been removed: deleted by upstream"; # added 2022-01-07
|
||||
crafty = throw "crafty has been removed: deleted by upstream"; # 2022-01-07
|
||||
cryptol = throw "cryptol was removed due to prolonged broken build"; # added 2020-08-21
|
||||
cpp-gsl = microsoft_gsl; # added 2019-05-24
|
||||
cudatoolkit_6 = throw "cudatoolkit_6 has been removed in favor of newer versions"; # added 2021-02-14
|
||||
|
|
|
@ -30342,8 +30342,6 @@ with pkgs;
|
|||
|
||||
crack_attack = callPackage ../games/crack-attack { };
|
||||
|
||||
crafty = callPackage ../games/crafty { };
|
||||
|
||||
crawlTiles = callPackage ../games/crawl {
|
||||
tileMode = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue