9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
55 lines
948 B
Nix
55 lines
948 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, tcl
|
|
, tk
|
|
, libX11
|
|
, zlib
|
|
}:
|
|
|
|
tcl.mkTclDerivation rec {
|
|
pname = "scid";
|
|
version = "5.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "benini";
|
|
repo = "scid";
|
|
rev = "v${version}";
|
|
hash = "sha256-5WGZm7EwhZAMKJKxj/OOIFOJIgPBcc6/Bh4xVAlia4Y=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace configure \
|
|
--replace "set var(INSTALL) {install_mac}" ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
tk
|
|
libX11
|
|
zlib
|
|
];
|
|
|
|
configureFlags = [
|
|
"BINDIR=$(out)/bin"
|
|
"SHAREDIR=$(out)/share"
|
|
];
|
|
|
|
makeFlags = [
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "Chess database with play and training functionality";
|
|
maintainers = with lib.maintainers; [ agbrooks ];
|
|
homepage = "https://scid.sourceforge.net/";
|
|
license = lib.licenses.gpl2;
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|