Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
962 B
Nix
57 lines
962 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.gpl2Only;
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|