1 { lib, stdenv, buildPackages, fetchurl, tcl, makeWrapper, autoreconfHook, fetchpatch, substituteAll }:
3 tcl.mkTclDerivation rec {
8 url = "mirror://sourceforge/expect/Expect/${version}/expect${version}.tar.gz";
9 sha256 = "0d1cp5hggjl93xwc8h1y6adbnrvpkk0ywkd00inz9ndxn21xm9s9";
14 url = "https://raw.githubusercontent.com/buildroot/buildroot/c05e6aa361a4049eabd8b21eb64a34899ef83fc7/package/expect/0001-enable-cross-compilation.patch";
15 sha256 = "1jwx2l1slidvcpahxbyqs942l81jd62rzbxliyd9lwysk38c8b6b";
18 src = ./fix-cross-compilation.patch;
19 tcl = "${buildPackages.tcl}/bin/tclsh";
24 sed -i "s,/bin/stty,$(type -p stty),g" configure.in
27 nativeBuildInputs = [ autoreconfHook makeWrapper ];
30 hardeningDisable = [ "format" ];
33 tclWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ tcl ]})
34 ${lib.optionalString stdenv.isDarwin "tclWrapperArgs+=(--prefix DYLD_LIBRARY_PATH : $out/lib/expect${version})"}
37 outputs = [ "out" "dev" ];
40 description = "A tool for automating interactive applications";
41 homepage = "http://expect.sourceforge.net/";
42 license = licenses.publicDomain;
43 platforms = platforms.unix;
44 maintainers = with maintainers; [ SuperSandro2000 ];