3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/chessdb/default.nix

32 lines
801 B
Nix
Raw Normal View History

2021-01-15 04:31:39 +00:00
{ lib, stdenv, fetchurl, tcl, tk, libX11, makeWrapper }:
2014-05-26 08:45:59 +01:00
stdenv.mkDerivation {
name = "chessdb-3.6.19-beta-1";
2021-01-15 04:31:39 +00:00
2014-05-26 08:45:59 +01:00
src = fetchurl {
url = "mirror://sourceforge/chessdb/ChessDB-3.6.19-beta-1.tar.gz";
2014-05-26 08:45:59 +01:00
sha256 = "0brc3wln3bxp979iqj2w1zxpfd0pch8zzazhdmwf7acww4hrsz62";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ tcl tk libX11 ];
2014-05-26 08:45:59 +01: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 = {
homepage = "http://chessdb.sourceforge.net/";
description = "A free chess database";
2021-01-15 04:31:39 +00:00
platforms = lib.platforms.linux;
2014-05-26 08:45:59 +01:00
};
}