2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, tcl
|
|
|
|
, tk
|
|
|
|
, libX11
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
tcl.mkTclDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "scid";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "5.0.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "benini";
|
|
|
|
repo = "scid";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-5WGZm7EwhZAMKJKxj/OOIFOJIgPBcc6/Bh4xVAlia4Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure \
|
|
|
|
--replace "set var(INSTALL) {install_mac}" ""
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
buildInputs = [
|
|
|
|
tk
|
|
|
|
libX11
|
|
|
|
zlib
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"BINDIR=$(out)/bin"
|
|
|
|
"SHAREDIR=$(out)/share"
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
makeFlags = [
|
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Chess database with play and training functionality";
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = with lib.maintainers; [ agbrooks ];
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://scid.sourceforge.net/";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2023-07-15 17:15:38 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|