expect: Refactor and add maintainer
This commit is contained in:
parent
5835d577e7
commit
c46e1049aa
@ -13,25 +13,14 @@ stdenv.mkDerivation {
|
||||
buildInputs = [ tcl ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
#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"
|
||||
'' + stdenv.lib.optionalString stdenv.isFreeBSD ''
|
||||
ln -s libexpect.so.1 libexpect545.so
|
||||
sed -i "s,/bin/stty,$(type -p stty),g" configure
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-tcl=${tcl}/lib"
|
||||
"--with-tclinclude=${tcl}/include"
|
||||
"--exec-prefix=$(out)"
|
||||
"--exec-prefix=\${out}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
@ -42,8 +31,11 @@ stdenv.mkDerivation {
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "A tool for automating interactive applications";
|
||||
homepage = http://expect.nist.gov/;
|
||||
license = "Expect";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ wkennington ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user