diff options
author | John Wiegley <johnw@newartisans.com> | 2014-05-26 02:45:59 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2014-05-26 02:45:59 -0500 |
commit | aea8bff8955e8fc7951507da9bd5ca4c8af7d8bc (patch) | |
tree | 5cfe64cdb3cebae0b701d9f5e26e01c2611d2c70 | |
parent | b0234f216ccf71013daf8e4e8b8bcfc4044d36cf (diff) |
Add expression for ChessDB
-rw-r--r-- | pkgs/games/chessdb/default.nix | 29 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/games/chessdb/default.nix b/pkgs/games/chessdb/default.nix new file mode 100644 index 0000000000000..381e35632a6ef --- /dev/null +++ b/pkgs/games/chessdb/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, tcl, tk, libX11, makeWrapper }: + +stdenv.mkDerivation { + name = "chessdb-3.6.19-beta-1"; + + src = fetchurl { + url = mirror://sourceforge/chessdb/ChessDB-3.6.19-beta-1.tar.gz; + sha256 = "0brc3wln3bxp979iqj2w1zxpfd0pch8zzazhdmwf7acww4hrsz62"; + }; + + buildInputs = [ tcl tk libX11 makeWrapper ]; + + makeFlags = [ + "BINDIR=$(out)/bin" + "SHAREDIR=$(out)/share/chessdb" + "SOUNDSDIR=$(out)/share/chessdb/sounds" + "TBDIR=$(out)/share/chessdb/tablebases" + "MANDIR=$(out)/man" + ]; + + postInstall = '' + wrapProgram $out/bin/chessdb --set TK_LIBRARY "${tk}/lib/${tk.libPrefix}" + ''; + + meta = { + homepage = http://chessdb.sourceforge.net/; + description = "ChessDB is a free chess database"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e0b35e55d47fa..3b6a3ddc76eb5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9858,6 +9858,8 @@ let castle_combat = callPackage ../games/castle-combat { }; + chessdb = callPackage ../games/chessdb { }; + construoBase = lowPrio (callPackage ../games/construo { mesa = null; freeglut = null; |