diff options
author | William A. Kennington III <william@wkennington.com> | 2015-04-26 20:55:07 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2015-04-26 20:55:42 -0700 |
commit | 55a64a5ddb099cf3af4115ee80bfd26553022533 (patch) | |
tree | 330fe9ec69233614b05ae24a266d42f18aa64588 /pkgs/development/libraries/tk | |
parent | 30f31c9afcc34336d1d47c62ad4ed39d2dee402a (diff) |
tcl/tk: Tie versioning together and propagate
Diffstat (limited to 'pkgs/development/libraries/tk')
-rw-r--r-- | pkgs/development/libraries/tk/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/development/libraries/tk/default.nix b/pkgs/development/libraries/tk/default.nix index e44514d5abf1b..5f07befcfa540 100644 --- a/pkgs/development/libraries/tk/default.nix +++ b/pkgs/development/libraries/tk/default.nix @@ -1,10 +1,10 @@ { stdenv, fetchurl, pkgconfig, tcl, libXft, fontconfig }: stdenv.mkDerivation { - name = "tk-8.6.4"; + name = "tk-${tcl.version}"; src = fetchurl { - url = "mirror://sourceforge/tcl/tk8.6.4-src.tar.gz"; + url = "mirror://sourceforge/tcl/tk${tcl.version}-src.tar.gz"; sha256 = "1h96vp15zl5xz0d4qp6wjyrchqmrmdm3q5k22wkw9jaxbvw9vy88"; }; @@ -25,8 +25,10 @@ stdenv.mkDerivation { inherit tcl; - passthru = { - libPrefix = "tk8.6"; + passthru = rec { + inherit (tcl) release version; + libPrefix = "tk${tcl.release}"; + libdir = "lib/${libPrefix}"; }; meta = { |