590cee5d19
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)
41 lines
1,011 B
Nix
41 lines
1,011 B
Nix
{ stdenv, fetchurl, tcl }:
|
|
|
|
let version = "5.45";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "expect-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/expect/Expect/${version}/expect${version}.tar.gz";
|
|
sha256 = "0h60bifxj876afz4im35rmnbnxjx4lbdqp2ja3k30fwa8a8cm3dj";
|
|
};
|
|
|
|
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
|
|
#'';
|
|
|
|
patchPhase = ''
|
|
substituteInPlace configure --replace /bin/stty "$(type -tP stty)"
|
|
sed -e '1i\#include <tclInt.h>' -i exp_inter.c
|
|
export NIX_LDFLAGS="-rpath $out/lib $NIX_LDFLAGS"
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--with-tcl=${tcl}/lib"
|
|
"--with-tclinclude=${tcl}/include"
|
|
"--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/;
|
|
};
|
|
}
|