mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
42070c9b0d
64-bit support is only enabled on 64-bit systems
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ stdenv
|
|
|
|
# Version specific stuff
|
|
, release, version, src
|
|
, ...
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "tcl-${version}";
|
|
|
|
inherit src;
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
setOutputFlags = false;
|
|
|
|
preConfigure = ''
|
|
cd unix
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--enable-threads"
|
|
# 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";
|
|
|
|
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; [ wkennington vrthra ];
|
|
};
|
|
|
|
passthru = rec {
|
|
inherit release version;
|
|
libPrefix = "tcl${release}";
|
|
libdir = "lib/${libPrefix}";
|
|
};
|
|
}
|