2021-01-15 04:31:39 +00:00
|
|
|
{ lib, stdenv, fetchurl, tcl, tk, libX11, makeWrapper }:
|
2014-05-26 07:45:59 +00:00
|
|
|
|
2021-06-22 21:44:58 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "chessdb";
|
|
|
|
version = "3.6.19-beta-1";
|
2021-01-15 04:31:39 +00:00
|
|
|
|
2014-05-26 07:45:59 +00:00
|
|
|
src = fetchurl {
|
2021-06-22 21:44:58 +00:00
|
|
|
url = "mirror://sourceforge/chessdb/ChessDB-${version}.tar.gz";
|
2014-05-26 07:45:59 +00:00
|
|
|
sha256 = "0brc3wln3bxp979iqj2w1zxpfd0pch8zzazhdmwf7acww4hrsz62";
|
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ tcl tk libX11 ];
|
2014-05-26 07:45:59 +00:00
|
|
|
|
|
|
|
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 = {
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://chessdb.sourceforge.net/";
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "A free chess database";
|
2021-01-15 04:31:39 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2014-05-26 07:45:59 +00:00
|
|
|
};
|
|
|
|
}
|