diff options
author | William A. Kennington III <william@wkennington.com> | 2015-04-26 21:15:25 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2015-04-26 21:15:25 -0700 |
commit | d7c0e3eaf8967b844db1c23f19087c7bb9fd9798 (patch) | |
tree | c76cf2b4843827f0454bd75db373fed0bc46aa76 /pkgs/development/interpreters | |
parent | 55a64a5ddb099cf3af4115ee80bfd26553022533 (diff) |
tcl: Make generic and add 8.5
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/tcl/8.5.nix | 11 | ||||
-rw-r--r-- | pkgs/development/interpreters/tcl/8.6.nix | 11 | ||||
-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"; |