scid: Simplify package with tcl.mkTclDerivation
This commit is contained in:
parent
1f74a70740
commit
9979565b0c
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue