tcl: Make generic and add 8.5
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
{ stdenv, fetchurl
|
||||
|
||||
# Version specific stuff
|
||||
, release, version, src
|
||||
, ...
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "tcl-${version}";
|
||||
|
||||
inherit src;
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
passthru = rec {
|
||||
inherit release version;
|
||||
libPrefix = "tcl${release}";
|
||||
libdir = "lib/${libPrefix}";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user