summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/tcl
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-04-26 21:15:25 -0700
committerWilliam A. Kennington III <william@wkennington.com>2015-04-26 21:15:25 -0700
commitd7c0e3eaf8967b844db1c23f19087c7bb9fd9798 (patch)
treec76cf2b4843827f0454bd75db373fed0bc46aa76 /pkgs/development/interpreters/tcl
parent55a64a5ddb099cf3af4115ee80bfd26553022533 (diff)
tcl: Make generic and add 8.5
Diffstat (limited to 'pkgs/development/interpreters/tcl')
-rw-r--r--pkgs/development/interpreters/tcl/8.5.nix11
-rw-r--r--pkgs/development/interpreters/tcl/8.6.nix11
-rw-r--r--pkgs/development/interpreters/tcl/generic.nix (renamed from pkgs/development/interpreters/tcl/default.nix)17
3 files changed, 30 insertions, 9 deletions
diff --git a/pkgs/development/interpreters/tcl/8.5.nix b/pkgs/development/interpreters/tcl/8.5.nix
new file mode 100644
index 000000000000..193ff4f93769
--- /dev/null
+++ b/pkgs/development/interpreters/tcl/8.5.nix
@@ -0,0 +1,11 @@
+{ callPackage, fetchurl, ... } @ args:
+
+callPackage ./generic.nix (args // rec {
+ release = "8.5";
+ version = "${release}.18";
+
+ src = fetchurl {
+ url = "mirror://sourceforge/tcl/tcl${version}-src.tar.gz";
+ sha256 = "1jfkqp2fr0xh6xvaqx134hkfa5kh7agaqbxm6lhjbpvvc1xfaaq3";
+ };
+})
diff --git a/pkgs/development/interpreters/tcl/8.6.nix b/pkgs/development/interpreters/tcl/8.6.nix
new file mode 100644
index 000000000000..fd88c8e87166
--- /dev/null
+++ b/pkgs/development/interpreters/tcl/8.6.nix
@@ -0,0 +1,11 @@
+{ callPackage, fetchurl, ... } @ args:
+
+callPackage ./generic.nix (args // rec {
+ release = "8.6";
+ version = "${release}.4";
+
+ src = fetchurl {
+ url = "mirror://sourceforge/tcl/tcl${version}-src.tar.gz";
+ sha256 = "13cwa4bc85ylf5gfj9vk182lvgy60qni3f7gbxghq78wk16djvly";
+ };
+})
diff --git a/pkgs/development/interpreters/tcl/default.nix b/pkgs/development/interpreters/tcl/generic.nix
index aa3836399ba5..8b5722c79c8d 100644
--- a/pkgs/development/interpreters/tcl/default.nix
+++ b/pkgs/development/interpreters/tcl/generic.nix
@@ -1,15 +1,14 @@
-{ stdenv, fetchurl }:
-let
- release = "8.6";
-in
+{ stdenv, fetchurl
+
+# Version specific stuff
+, release, version, src
+, ...
+}:
+
stdenv.mkDerivation rec {
name = "tcl-${version}";
- version = "${release}.4";
- src = fetchurl {
- url = "mirror://sourceforge/tcl/tcl${version}-src.tar.gz";
- sha256 = "13cwa4bc85ylf5gfj9vk182lvgy60qni3f7gbxghq78wk16djvly";
- };
+ inherit src;
preConfigure = "cd unix";