From 49db5c9de6c6f8a79c30b5364edda6040a39521d Mon Sep 17 00:00:00 2001 From: Andrew Brooks Date: Tue, 11 May 2021 10:17:54 -0500 Subject: [PATCH] tclx: simplify postInstall phase Co-authored-by: Sandro --- pkgs/development/libraries/tclx/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/tclx/default.nix b/pkgs/development/libraries/tclx/default.nix index 9582aabf654a..27602684c171 100644 --- a/pkgs/development/libraries/tclx/default.nix +++ b/pkgs/development/libraries/tclx/default.nix @@ -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/";