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