expect: fix Tcl tools
This commit is contained in:
parent
ebf4d5c62b
commit
acc9af591c
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, tcl }:
|
{ stdenv, fetchurl, tcl, makeWrapper }:
|
||||||
|
|
||||||
let version = "5.45";
|
let version = "5.45";
|
||||||
in
|
in
|
||||||
@ -11,6 +11,7 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ tcl ];
|
buildInputs = [ tcl ];
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
#NIX_CFLAGS_COMPILE = "-DHAVE_UNISTD_H";
|
#NIX_CFLAGS_COMPILE = "-DHAVE_UNISTD_H";
|
||||||
|
|
||||||
@ -30,11 +31,16 @@ stdenv.mkDerivation {
|
|||||||
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 = let libSuff = if stdenv.isDarwin then "dylib" else "so";
|
postInstall = ''
|
||||||
in "cp expect $out/bin; mkdir -p $out/lib; cp *.${libSuff} $out/lib";
|
for i in $out/bin/*; do
|
||||||
|
wrapProgram $i \
|
||||||
|
--prefix PATH : "${tcl}/bin" \
|
||||||
|
--prefix TCLLIBPATH ' ' $out/lib/*
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A tool for automating interactive applications";
|
description = "A tool for automating interactive applications";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user