incrtcl: export ITCL_LIBRARY for downstream users

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2020-02-28 21:03:06 -06:00
parent 8913745573
commit 84878c923c
No known key found for this signature in database
GPG Key ID: 25D2038DEB08021D

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, tcl }:
{ stdenv, fetchurl, writeText, tcl }:
stdenv.mkDerivation rec {
pname = "incrtcl";
@ -27,6 +27,10 @@ stdenv.mkDerivation rec {
rmdir $out/lib/itcl${version}
'';
setupHook = writeText "setup-hook.sh" ''
export ITCL_LIBRARY=@out@/lib
'';
outputs = [ "out" "dev" "man" ];
meta = with stdenv.lib; {