summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/tcl
diff options
context:
space:
mode:
authorJason Felice <jason.m.felice@gmail.com>2019-12-19 09:41:45 -0500
committerJason Felice <jason.m.felice@gmail.com>2019-12-19 09:46:36 -0500
commit41a48b589512c4527bd6a033c777831bfdff4cc5 (patch)
treebe1443e0ce388594c53319dedda0749a7a2dcc5b /pkgs/development/interpreters/tcl
parent3e046ee556190a833cb9583166b25193e8ee1f0c (diff)
tcl: fix dangling symlink
Diffstat (limited to 'pkgs/development/interpreters/tcl')
-rw-r--r--pkgs/development/interpreters/tcl/generic.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/tcl/generic.nix b/pkgs/development/interpreters/tcl/generic.nix
index 3c585c3f07fa..fd84d93ba756 100644
--- a/pkgs/development/interpreters/tcl/generic.nix
+++ b/pkgs/development/interpreters/tcl/generic.nix
@@ -31,10 +31,12 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
- postInstall = ''
+ postInstall = let
+ dllExtension = stdenv.hostPlatform.extensions.sharedLibrary;
+ in ''
make install-private-headers
ln -s $out/bin/tclsh${release} $out/bin/tclsh
- ln -s $out/lib/libtcl${release}.so $out/lib/libtcl.so
+ ln -s $out/lib/libtcl${release}${dllExtension} $out/lib/libtcl${dllExtension}
'';
meta = with stdenv.lib; {