summary refs log tree commit diff
path: root/pkgs/games/stockfish
diff options
context:
space:
mode:
authorLuis Pedro Coelho <luis@luispedro.org>2015-12-14 11:17:02 +0100
committerLuis Pedro Coelho <luis@luispedro.org>2015-12-30 23:19:39 +0100
commit8bec69e9c83b6b8973d5819670bce9ab2d4b1203 (patch)
treea659256a384456165147068c41f2db344a10fb2d /pkgs/games/stockfish
parent3a8112f7daf69190f81a5420bef3c5fac4aaf703 (diff)
downloadnixlib-8bec69e9c83b6b8973d5819670bce9ab2d4b1203.tar
nixlib-8bec69e9c83b6b8973d5819670bce9ab2d4b1203.tar.gz
nixlib-8bec69e9c83b6b8973d5819670bce9ab2d4b1203.tar.bz2
nixlib-8bec69e9c83b6b8973d5819670bce9ab2d4b1203.tar.lz
nixlib-8bec69e9c83b6b8973d5819670bce9ab2d4b1203.tar.xz
nixlib-8bec69e9c83b6b8973d5819670bce9ab2d4b1203.tar.zst
nixlib-8bec69e9c83b6b8973d5819670bce9ab2d4b1203.zip
stockfish: init at 6
Diffstat (limited to 'pkgs/games/stockfish')
-rw-r--r--pkgs/games/stockfish/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/games/stockfish/default.nix b/pkgs/games/stockfish/default.nix
new file mode 100644
index 000000000000..f919b9683e6a
--- /dev/null
+++ b/pkgs/games/stockfish/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchurl, unzip }:
+stdenv.mkDerivation rec {
+  version = "6";
+  name = "stockfish-${version}";
+  src = fetchurl {
+    url = https://stockfish.s3.amazonaws.com/stockfish-6-src.zip;
+    sha256 = "a69a371d3f84338cefde4575669bd930d186b046a10fa5ab0f8d1aed6cb204c3";
+  };
+  buildPhase = ''
+  cd src
+  make build ARCH=x86-64
+  '';
+  buildInputs = [
+        stdenv
+        unzip
+  ];
+  enableParallelBuilding = true;
+  installPhase = ''
+  mkdir -p $out/bin
+  cp -pr stockfish $out/bin
+  '';
+  meta = with stdenv.lib; {
+    homepage = https://stockfishchess.org/;
+    description = "Strong open source chess engine";
+    longDescription = ''
+      Stockfish is one of the strongest chess engines in the world. It is also
+      much stronger than the best human chess grandmasters.
+      '';
+    maintainers = with maintainers; [ luispedro ];
+    license = licenses.gpl2;
+  };
+}