From 63e46d78d03edbafc8dcea1bcf41c71f1b6347ea Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Sun, 10 Feb 2008 17:36:23 +0000 Subject: [PATCH] Fixed stable socat (applied patch by Nicolas Pierron); updated Tk installation step for XMaxima compatibility svn path=/nixpkgs/branches/stdenv-updates/; revision=10576 --- pkgs/development/libraries/tk/8.4.16.nix | 18 ++++++++++++++++++ pkgs/development/libraries/tk/builder.sh | 10 ---------- pkgs/development/libraries/tk/default.nix | 12 ------------ pkgs/top-level/all-packages.nix | 5 ++++- 4 files changed, 22 insertions(+), 23 deletions(-) create mode 100644 pkgs/development/libraries/tk/8.4.16.nix delete mode 100644 pkgs/development/libraries/tk/builder.sh delete mode 100644 pkgs/development/libraries/tk/default.nix diff --git a/pkgs/development/libraries/tk/8.4.16.nix b/pkgs/development/libraries/tk/8.4.16.nix new file mode 100644 index 00000000000..c43e53cc827 --- /dev/null +++ b/pkgs/development/libraries/tk/8.4.16.nix @@ -0,0 +1,18 @@ +args: with args; + +stdenv.mkDerivation { + name = "tk-${version}"; + src = fetchurl { + url = "mirror://sourceforge/tcl/tk${version}-src.tar.gz"; + sha256 = "0cciavzd05bpm5yfppid0s0vsf8kabwia9620vgvi26sv1gjgwhb"; + }; + postInstall = '' + echo -e '#! /bin/sh \n $( readlink -f $( which wish${__substring 0 3 version}) ) "$@"' >$out/bin/wish + chmod a+x $out/bin/wish + ''; + configureFlags="--with-tcl=${tcl}/lib"; + preConfigure = "cd unix"; + + buildInputs = [tcl x11]; + inherit tcl; +} diff --git a/pkgs/development/libraries/tk/builder.sh b/pkgs/development/libraries/tk/builder.sh deleted file mode 100644 index 999488a3531..00000000000 --- a/pkgs/development/libraries/tk/builder.sh +++ /dev/null @@ -1,10 +0,0 @@ -source $stdenv/setup - -configureFlags="--with-tcl=$tcl/lib" -preConfigure() { - cd unix -} - -preConfigure=preConfigure - -genericBuild diff --git a/pkgs/development/libraries/tk/default.nix b/pkgs/development/libraries/tk/default.nix deleted file mode 100644 index 9e0a6b8c0da..00000000000 --- a/pkgs/development/libraries/tk/default.nix +++ /dev/null @@ -1,12 +0,0 @@ -{stdenv, fetchurl, tcl, x11}: - -stdenv.mkDerivation { - name = "tk-8.4.16"; - builder = ./builder.sh; - src = fetchurl { - url = mirror://sourceforge/tcl/tk8.4.16-src.tar.gz; - sha256 = "0cciavzd05bpm5yfppid0s0vsf8kabwia9620vgvi26sv1gjgwhb"; - }; - buildInputs = [tcl x11]; - inherit tcl; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c95a8264f8a..c3a7ed9c89d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2649,10 +2649,13 @@ rec { qt = qt4; }; - tk = import ../development/libraries/tk { + tkFun = lib.sumArgs (selectVersion ../development/libraries/tk) { inherit fetchurl stdenv tcl x11; + version = "8.4.16"; }; + tk = tkFun null; + unixODBC = import ../development/libraries/unixODBC { inherit fetchurl stdenv; };