2021-01-15 04:31:39 +00:00
|
|
|
{lib, stdenv, fetchurl}:
|
2014-11-05 08:51:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "fairymax";
|
2014-11-05 08:51:19 +00:00
|
|
|
version = "4.8";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://home.hccnet.nl/h.g.muller/fmax4_8w.c";
|
|
|
|
sha256 = "01vxhpa4z0613mkgkzmsln293wxmyp5kdzil93cd1ik51q4gwjca";
|
|
|
|
};
|
|
|
|
ini = fetchurl {
|
|
|
|
url = "http://home.hccnet.nl/h.g.muller/fmax.ini";
|
|
|
|
sha256 = "1zwx70g3gspbqx1zf9gm1may8jrli9idalvskxbdg33qgjys47cn";
|
|
|
|
};
|
|
|
|
unpackPhase = ''
|
|
|
|
cp ${src} fairymax.c
|
|
|
|
cp ${ini} fmax.ini
|
|
|
|
'';
|
|
|
|
buildPhase = ''
|
2021-02-20 15:24:20 +00:00
|
|
|
$CC *.c -Wno-return-type -o fairymax -DINI_FILE='"'"$out/share/fairymax/fmax.ini"'"'
|
2014-11-05 08:51:19 +00:00
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/{bin,share/fairymax}
|
|
|
|
cp fairymax "$out/bin"
|
|
|
|
cp fmax.ini "$out/share/fairymax"
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
inherit version;
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "A small chess engine supporting fairy pieces";
|
2014-11-05 08:51:19 +00:00
|
|
|
longDescription = ''
|
|
|
|
A version of micro-Max that reads the piece description
|
|
|
|
from a file fmax.ini, so that arbitrary fairy pieces can be
|
|
|
|
implemented. This version (4.8J) supports up to 15 piece types,
|
2014-12-30 02:31:03 +00:00
|
|
|
and board sizes up to 12x8. A Linux port exists in the
|
2014-11-05 08:51:19 +00:00
|
|
|
format of a debian package.
|
|
|
|
'';
|
2021-01-15 04:31:39 +00:00
|
|
|
license = lib.licenses.free ;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
2021-02-20 15:24:20 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://home.hccnet.nl/h.g.muller/dwnldpage.html";
|
2014-11-05 08:51:19 +00:00
|
|
|
};
|
|
|
|
}
|