nixpkgs-suyu/pkgs/development/interpreters/tcl/generic.nix

48 lines
1,013 B
Nix
Raw Normal View History

{ stdenv
2015-04-27 06:15:25 +02:00
# Version specific stuff
, release, version, src
, ...
}:
stdenv.mkDerivation rec {
name = "tcl-${version}";
2015-04-27 06:15:25 +02:00
inherit src;
outputs = [ "out" "man" ];
setOutputFlags = false;
2015-04-30 20:42:43 +02:00
preConfigure = ''
# Note: using $out instead of $man to prevent a runtime dependency on $man.
configureFlagsArray+=(--mandir=$out/share/man --enable-man-symlinks)
# Don't install tzdata because NixOS already has a more up-to-date copy.
configureFlagsArray+=(--with-tzdata=no)
2015-04-30 20:42:43 +02:00
cd unix
'';
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;
2016-07-29 01:19:08 +02:00
maintainers = with maintainers; [ wkennington vrthra ];
};
passthru = rec {
inherit release version;
libPrefix = "tcl${release}";
libdir = "lib/${libPrefix}";
};
}