about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Brooks <andrewgrantbrooks@gmail.com>2021-05-11 10:17:54 -0500
committerAndrew Brooks <andrew.brooks@flightaware.com>2021-05-21 15:18:29 -0500
commit49db5c9de6c6f8a79c30b5364edda6040a39521d (patch)
tree78630db0f3af7118952327471abf6eb284c6dbe8
parentf9595e4ffc28a30ec7d223f23d67176adaf2c4d8 (diff)
tclx: simplify postInstall phase
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
-rw-r--r--pkgs/development/libraries/tclx/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/development/libraries/tclx/default.nix b/pkgs/development/libraries/tclx/default.nix
index 9582aabf654a6..27602684c171a 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/";