2012-01-18 21:51:52 +01:00
|
|
|
{stdenv, fetchurl, tcl, tk, xproto, libX11}:
|
2008-02-27 16:48:53 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-05-10 13:31:17 +02:00
|
|
|
name = "expect-5.44.1";
|
2012-01-18 21:51:52 +01:00
|
|
|
|
2008-02-27 16:48:53 +01:00
|
|
|
src = fetchurl {
|
2009-05-10 13:31:17 +02:00
|
|
|
url = http://expect.nist.gov/old/expect-5.44.1.tar.gz;
|
|
|
|
sha256 = "13zxqiclzk1paxc0mr2vwp9nhfyr2mkwk9gs73fg0l3iss16n6p4";
|
2008-02-27 16:48:53 +01:00
|
|
|
};
|
|
|
|
|
2012-01-18 21:51:52 +01:00
|
|
|
buildInputs = [tcl tk xproto libX11];
|
2008-02-27 16:48:53 +01:00
|
|
|
|
|
|
|
#NIX_CFLAGS_COMPILE = "-DHAVE_UNISTD_H";
|
|
|
|
|
|
|
|
# http://wiki.linuxfromscratch.org/lfs/ticket/2126
|
|
|
|
#preBuild = ''
|
|
|
|
# substituteInPlace exp_inter.c --replace tcl.h tclInt.h
|
|
|
|
#'';
|
|
|
|
|
2008-04-04 20:24:41 +02:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace configure --replace /bin/stty "$(type -tP stty)"
|
2009-05-10 13:31:17 +02:00
|
|
|
sed -e '1i\#include <tclInt.h>' -i exp_inter.c
|
2009-12-21 09:55:31 +01:00
|
|
|
export NIX_LDFLAGS="-rpath $out/lib $NIX_LDFLAGS"
|
2008-04-04 20:24:41 +02:00
|
|
|
'';
|
2012-01-18 21:51:52 +01:00
|
|
|
|
|
|
|
configureFlags = ["--with-tcl=${tcl}/lib"
|
|
|
|
"--with-tclinclude=${tcl}/include"
|
2009-05-10 13:31:17 +02:00
|
|
|
"--with-tk=${tk}/lib"
|
|
|
|
"--exec-prefix=$out"];
|
2008-02-27 16:48:53 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A tool for automating interactive applications";
|
|
|
|
homepage = http://expect.nist.gov/;
|
|
|
|
};
|
2012-01-18 21:16:00 +01:00
|
|
|
postInstall="cp expect{,k} $out/bin; mkdir -p $out/lib; cp *.so $out/lib";
|
2008-02-27 16:48:53 +01:00
|
|
|
}
|