1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00
nixpkgs/pkgs/development/interpreters/tcl/generic.nix

52 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv
2015-04-27 05:15:25 +01:00
# Version specific stuff
, release, version, src
, ...
}:
stdenv.mkDerivation rec {
name = "tcl-${version}";
2015-04-27 05:15:25 +01:00
inherit src;
outputs = [ "out" "man" ];
setOutputFlags = false;
2015-04-30 19:42:43 +01:00
preConfigure = ''
cd unix
'';
2018-12-11 22:45:07 +00:00
configureFlags = [
"--enable-threads"
2018-12-11 22:45:07 +00:00
# Note: using $out instead of $man to prevent a runtime dependency on $man.
"--mandir=${placeholder "out"}/share/man"
"--enable-man-symlinks"
# Don't install tzdata because NixOS already has a more up-to-date copy.
"--with-tzdata=no"
"tcl_cv_strtod_unbroken=ok"
] ++ stdenv.lib.optional stdenv.is64bit "--enable-64bit";
2018-12-11 22:45:07 +00:00
enableParallelBuilding = true;
postInstall = ''
make install-private-headers
ln -s $out/bin/tclsh${release} $out/bin/tclsh
'';
meta = with stdenv.lib; {
description = "The Tcl scription language";
homepage = http://www.tcl.tk/;
license = licenses.tcltk;
platforms = platforms.all;
maintainers = with maintainers; [ vrthra ];
};
passthru = rec {
inherit release version;
libPrefix = "tcl${release}";
libdir = "lib/${libPrefix}";
};
}