3
0
Fork 0
forked from mirrors/nixpkgs

Add expression for ChessDB

This commit is contained in:
John Wiegley 2014-05-26 02:45:59 -05:00
parent b0234f216c
commit aea8bff895
2 changed files with 31 additions and 0 deletions

View file

@ -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";
};
}

View file

@ -9858,6 +9858,8 @@ let
castle_combat = callPackage ../games/castle-combat { };
chessdb = callPackage ../games/chessdb { };
construoBase = lowPrio (callPackage ../games/construo {
mesa = null;
freeglut = null;