2023-06-05 13:59:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, tcl
|
|
|
|
, tk
|
|
|
|
, libX11
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
tcl.mkTclDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "scid";
|
2023-06-05 13:59:37 +00:00
|
|
|
version = "5.0.2";
|
2012-12-12 09:39:35 +00:00
|
|
|
|
2023-06-05 13:59:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "benini";
|
|
|
|
repo = "scid";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-5WGZm7EwhZAMKJKxj/OOIFOJIgPBcc6/Bh4xVAlia4Y=";
|
2012-12-12 09:39:35 +00:00
|
|
|
};
|
|
|
|
|
2023-06-05 13:59:37 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure \
|
|
|
|
--replace "set var(INSTALL) {install_mac}" ""
|
|
|
|
'';
|
2012-12-12 09:39:35 +00:00
|
|
|
|
2023-06-05 13:59:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
2012-12-12 09:39:35 +00:00
|
|
|
|
2023-06-05 13:59:37 +00:00
|
|
|
buildInputs = [
|
|
|
|
tk
|
|
|
|
libX11
|
|
|
|
zlib
|
|
|
|
];
|
2012-12-12 09:39:35 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"BINDIR=$(out)/bin"
|
|
|
|
"SHAREDIR=$(out)/share"
|
|
|
|
];
|
|
|
|
|
2023-06-05 13:59:37 +00:00
|
|
|
makeFlags = [
|
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
|
|
];
|
2012-12-12 09:39:35 +00:00
|
|
|
|
2023-06-05 13:59:37 +00:00
|
|
|
enableParallelBuilding = true;
|
2012-12-12 09:39:35 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Chess database with play and training functionality";
|
2021-05-07 16:55:08 +00:00
|
|
|
maintainers = with lib.maintainers; [ agbrooks ];
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://scid.sourceforge.net/";
|
2024-07-03 09:37:36 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2023-06-05 13:59:37 +00:00
|
|
|
platforms = lib.platforms.all;
|
2012-12-12 09:39:35 +00:00
|
|
|
};
|
|
|
|
}
|