scid: Simplify package with tcl.mkTclDerivation

This commit is contained in:
Andrew Brooks 2021-04-30 18:48:46 -05:00
parent 1f74a70740
commit 9979565b0c

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, tcl, tk, libX11, zlib, makeWrapper }:
{ lib, fetchurl, tcl, tk, libX11, zlib, makeWrapper }:
stdenv.mkDerivation {
tcl.mkTclDerivation {
pname = "scid";
version = "4.3";
@ -10,7 +10,7 @@ stdenv.mkDerivation {
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ tcl tk libX11 zlib ];
buildInputs = [ tk libX11 zlib ];
prePatch = ''
sed -i -e '/^ *set headerPath *{/a ${tcl}/include ${tk}/include' \
@ -45,13 +45,13 @@ stdenv.mkDerivation {
for cmd in $out/bin/*
do
wrapProgram "$cmd" \
--set TCLLIBPATH "${tcl}/${tcl.libdir}" \
--set TK_LIBRARY "${tk}/lib/${tk.libPrefix}"
done
'';
meta = {
description = "Chess database with play and training functionality";
maintainers = with maintainers; [ agbrooks ];
homepage = "http://scid.sourceforge.net/";
license = lib.licenses.gpl2;
};