From 8bec69e9c83b6b8973d5819670bce9ab2d4b1203 Mon Sep 17 00:00:00 2001 From: Luis Pedro Coelho Date: Mon, 14 Dec 2015 11:17:02 +0100 Subject: [PATCH 1/2] stockfish: init at 6 --- pkgs/games/stockfish/default.nix | 32 ++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/games/stockfish/default.nix diff --git a/pkgs/games/stockfish/default.nix b/pkgs/games/stockfish/default.nix new file mode 100644 index 00000000000..f919b9683e6 --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6ec1aff8776..6fa5c4b7f4e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14294,6 +14294,8 @@ let stardust = callPackage ../games/stardust {}; + stockfish = callPackage ../games/stockfish { }; + steamPackages = callPackage ../games/steam { }; steam = steamPackages.steam-chrootenv.override { # DEPRECATED From c570bc50bc885ee6c87d90f77296b3619a5241c0 Mon Sep 17 00:00:00 2001 From: Luis Pedro Coelho Date: Mon, 14 Dec 2015 00:51:05 +0100 Subject: [PATCH 2/2] chessx: init at 1.3.2 Chessx is a chess database GUI. Using the stockfish engine, users can also analyse games. --- pkgs/games/chessx/default.nix | 34 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/games/chessx/default.nix diff --git a/pkgs/games/chessx/default.nix b/pkgs/games/chessx/default.nix new file mode 100644 index 00000000000..dd0fa16b707 --- /dev/null +++ b/pkgs/games/chessx/default.nix @@ -0,0 +1,34 @@ +{ stdenv, pkgconfig, zlib, qtbase, qtsvg, qttools, qtmultimedia, fetchurl }: +stdenv.mkDerivation rec { + name = "chessx-${version}"; + version = "1.3.2"; + src = fetchurl { + url = "mirror://sourceforge/chessx/chessx-${version}.tgz"; + sha256 = "b136cf56d37d34867cdb9538176e1703b14f61b3384885b6f100580d0af0a3ff"; + }; + preConfigure = '' + qmake -spec linux-g++ chessx.pro + ''; + buildInputs = [ + stdenv + pkgconfig + qtbase + qtsvg + qttools + qtmultimedia + zlib + ]; + + enableParallelBuilding = true; + installPhase = '' + mkdir -p "$out/bin" + cp -pr release/chessx "$out/bin" + ''; + + meta = with stdenv.lib; { + homepage = http://chessx.sourceforge.net/; + description = "ChessX allows you to browse and analyse chess games"; + license = licenses.gpl2; + maintainers = [maintainers.luispedro]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6fa5c4b7f4e..24a1a7d0af0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13998,6 +13998,8 @@ let chessdb = callPackage ../games/chessdb { }; + chessx = qt5.callPackage ../games/chessx { }; + chocolateDoom = callPackage ../games/chocolate-doom { }; cockatrice = qt5.callPackage ../games/cockatrice { };