diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-01-07 02:18:36 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-01-07 02:18:47 +0000 |
commit | 36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2 (patch) | |
tree | b3faaf573407b32aa645237a4d16b82778a39a92 /nixpkgs/pkgs/games/stockfish | |
parent | 4e31070265257dc67d120c27e0f75c2344fdfa9a (diff) | |
parent | abf060725d7614bd3b9f96764262dfbc2f9c2199 (diff) | |
download | nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.gz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.bz2 nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.lz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.xz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.zst nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.zip |
Add 'nixpkgs/' from commit 'abf060725d7614bd3b9f96764262dfbc2f9c2199'
git-subtree-dir: nixpkgs git-subtree-mainline: 4e31070265257dc67d120c27e0f75c2344fdfa9a git-subtree-split: abf060725d7614bd3b9f96764262dfbc2f9c2199
Diffstat (limited to 'nixpkgs/pkgs/games/stockfish')
-rw-r--r-- | nixpkgs/pkgs/games/stockfish/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/stockfish/default.nix b/nixpkgs/pkgs/games/stockfish/default.nix new file mode 100644 index 000000000000..13033c7f9f0a --- /dev/null +++ b/nixpkgs/pkgs/games/stockfish/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchurl }: + +let arch = if stdenv.isx86_64 then "x86-64" else + if stdenv.isi686 then "x86-32" else + "unknown"; + + version = "10"; +in + +stdenv.mkDerivation { + + name = "stockfish-${version}"; + + src = fetchurl { + url = "https://github.com/official-stockfish/Stockfish/archive/sf_${version}.tar.gz"; + sha256 = "1lrxqq8fw1wrw5b45r4s3ddd51yr85a2k8a9i1wjvyd6v9vm7761"; + }; + + postUnpack = "sourceRoot+=/src"; + makeFlags = [ "PREFIX=$(out)" "ARCH=${arch}" ]; + buildFlags = "build "; + + enableParallelBuilding = true; + + 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 peti ]; + platforms = ["x86_64-linux" "i686-linux"]; + license = licenses.gpl2; + }; + +} |