From 590cee5d19b8e084f373ec420d86ec8b6e34d07b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 3 Sep 2013 23:57:51 +0200 Subject: [PATCH] expect: "minor" update, no longer depends on X/Tk ANN: https://groups.google.com/forum/#!topic/comp.lang.tcl/lwZjtKOfaLE I hope this solves a darwin -lXss linkage problem. (broke most X stuff through dejagnu -> libffi -> llvm or mesa) --- pkgs/tools/misc/expect/default.nix | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pkgs/tools/misc/expect/default.nix b/pkgs/tools/misc/expect/default.nix index d9f9b09271b5..ad348f1ed0f2 100644 --- a/pkgs/tools/misc/expect/default.nix +++ b/pkgs/tools/misc/expect/default.nix @@ -1,14 +1,16 @@ -{stdenv, fetchurl, tcl, tk, xproto, libX11}: +{ stdenv, fetchurl, tcl }: +let version = "5.45"; +in stdenv.mkDerivation { - name = "expect-5.44.1"; + name = "expect-${version}"; src = fetchurl { - url = http://expect.nist.gov/old/expect-5.44.1.tar.gz; - sha256 = "13zxqiclzk1paxc0mr2vwp9nhfyr2mkwk9gs73fg0l3iss16n6p4"; + url = "mirror://sourceforge/expect/Expect/${version}/expect${version}.tar.gz"; + sha256 = "0h60bifxj876afz4im35rmnbnxjx4lbdqp2ja3k30fwa8a8cm3dj"; }; - buildInputs = [tcl tk xproto libX11]; + buildInputs = [ tcl ]; #NIX_CFLAGS_COMPILE = "-DHAVE_UNISTD_H"; @@ -23,14 +25,16 @@ stdenv.mkDerivation { export NIX_LDFLAGS="-rpath $out/lib $NIX_LDFLAGS" ''; - configureFlags = ["--with-tcl=${tcl}/lib" + configureFlags = [ + "--with-tcl=${tcl}/lib" "--with-tclinclude=${tcl}/include" - "--with-tk=${tk}/lib" - "--exec-prefix=$out"]; + "--exec-prefix=$out" + ]; + + postInstall="cp expect $out/bin; mkdir -p $out/lib; cp *.so $out/lib"; meta = { description = "A tool for automating interactive applications"; homepage = http://expect.nist.gov/; }; - postInstall="cp expect{,k} $out/bin; mkdir -p $out/lib; cp *.so $out/lib"; }