nixpkgs/pkgs/games/scid/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
948 B
Nix
Raw Normal View History

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