tclx: simplify postInstall phase

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Andrew Brooks 2021-05-11 10:17:54 -05:00 committed by Andrew Brooks
parent f9595e4ffc
commit 49db5c9de6

View File

@ -11,10 +11,9 @@ tcl.mkTclDerivation rec {
};
# required in order for tclx to properly detect tclx.tcl at runtime
postInstall =
let tclXPkg = "tclx${version}";
tclXLib = "$prefix/lib/${tclXPkg}";
in "ln -s ${tclXLib} ${tclXLib}/${tclXPkg}";
postInstall = ''
ln -s $prefix/lib/${tclXPkg} $prefix/lib/tclx${version}/tclx${version}
'';
meta = {
homepage = "http://tclx.sourceforge.net/";