nixpkgs-suyu/pkgs/tools/misc/expect/default.nix
Sander van der Burg 9dccbcfc55 Resolved issue with hard-corded path to /sbin/stty
svn path=/nixpkgs/trunk/; revision=11389
2008-03-31 12:57:12 +00:00

29 lines
750 B
Nix

{stdenv, fetchurl, tcl}:
stdenv.mkDerivation {
name = "expect-5.43.0";
src = fetchurl {
url = http://expect.nist.gov/old/expect-5.43.0.tar.bz2;
sha256 = "1j6vyr8lx1fbl641hkkd6hhh9ifniklskfv00pbvy33h86a3mrvn";
};
buildInputs = [tcl];
#NIX_CFLAGS_COMPILE = "-DHAVE_UNISTD_H";
# http://wiki.linuxfromscratch.org/lfs/ticket/2126
#preBuild = ''
# substituteInPlace exp_inter.c --replace tcl.h tclInt.h
#'';
coreutils = stdenv.coreutils;
patchPhase = '' sed -i "s@/bin/stty@$coreutils/bin/stty@" configure '';
configureFlags = "--with-tcl=${tcl}/lib --with-tclinclude=${tcl}/include";
meta = {
description = "A tool for automating interactive applications";
homepage = http://expect.nist.gov/;
};
}