summaryrefslogtreecommitdiffstats
path: root/pkgs/games/fairymax
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-11-05 11:51:19 +0300
committerMichael Raskin <7c6f434c@mail.ru>2014-11-05 11:56:20 +0300
commit404930ec8c2f4a6ce13b979767a9ab03ae90f5d7 (patch)
treedd72e5f9ba72ba04308dc4f50ecce8f599cf968f /pkgs/games/fairymax
parenta5dfaef9eae8c006d1ce0dde0d0315c195afd267 (diff)
Add fairymax chess engine
Diffstat (limited to 'pkgs/games/fairymax')
-rw-r--r--pkgs/games/fairymax/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/games/fairymax/default.nix b/pkgs/games/fairymax/default.nix
new file mode 100644
index 000000000000..85fbd2d6a3b0
--- /dev/null
+++ b/pkgs/games/fairymax/default.nix
@@ -0,0 +1,40 @@
+{stdenv, fetchurl}:
+stdenv.mkDerivation rec {
+ name = "fairymax-${version}";
+ 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 = ''
+ gcc *.c -o fairymax -DINI_FILE='"'"$out/share/fairymax/fmax.ini"'"'
+ '';
+ installPhase = ''
+ mkdir -p "$out"/{bin,share/fairymax}
+ cp fairymax "$out/bin"
+ cp fmax.ini "$out/share/fairymax"
+ '';
+ meta = {
+ inherit version;
+ description = ''A small chess engine supporting fairy pieces'';
+ 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,
+ and board sizes upto 12x8 board. A Linux port exists in the
+ format of a debian package.
+ '';
+ license = stdenv.lib.licenses.free ;
+ maintainers = [stdenv.lib.maintainers.raskin];
+ platforms = stdenv.lib.platforms.linux;
+ homepage = "http://home.hccnet.nl/h.g.muller/dwnldpage.html";
+ };
+}