1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 00:54:46 +00:00
nixpkgs/pkgs/games/chessdb/default.nix
Tuomas Tynkkynen 21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00

31 lines
774 B
Nix

{ 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 = "A free chess database";
platforms = stdenv.lib.platforms.linux;
};
}