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

36 lines
653 B
Nix
Raw Normal View History

2015-04-27 06:15:25 +02:00
{ stdenv, fetchurl
# Version specific stuff
, release, version, src
, ...
}:
stdenv.mkDerivation rec {
name = "tcl-${version}";
2015-04-27 06:15:25 +02:00
inherit src;
2015-04-30 20:42:43 +02:00
preConfigure = ''
cd unix
'';
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;
2015-04-30 20:42:43 +02:00
maintainers = with maintainers; [ wkennington ];
};
passthru = rec {
inherit release version;
libPrefix = "tcl${release}";
libdir = "lib/${libPrefix}";
};
}