diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/expect/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/expect/default.nix | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/tools/misc/expect/default.nix b/nixpkgs/pkgs/tools/misc/expect/default.nix index 12e63686d51f..1315ac8540cb 100644 --- a/nixpkgs/pkgs/tools/misc/expect/default.nix +++ b/nixpkgs/pkgs/tools/misc/expect/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, tcl, makeWrapper, autoreconfHook }: +{ lib, stdenv, buildPackages, fetchurl, tcl, makeWrapper, autoreconfHook, fetchpatch }: stdenv.mkDerivation rec { pname = "expect"; @@ -9,19 +9,27 @@ stdenv.mkDerivation rec { sha256 = "0d1cp5hggjl93xwc8h1y6adbnrvpkk0ywkd00inz9ndxn21xm9s9"; }; - buildInputs = [ tcl ]; - nativeBuildInputs = [ makeWrapper autoreconfHook ]; - - hardeningDisable = [ "format" ]; + patches = [ + (fetchpatch { + url = "https://raw.githubusercontent.com/buildroot/buildroot/c05e6aa361a4049eabd8b21eb64a34899ef83fc7/package/expect/0001-enable-cross-compilation.patch"; + sha256 = "1jwx2l1slidvcpahxbyqs942l81jd62rzbxliyd9lwysk38c8b6b"; + }) + ]; postPatch = '' sed -i "s,/bin/stty,$(type -p stty),g" configure.in ''; + nativeBuildInputs = [ autoreconfHook makeWrapper tcl ]; + buildInputs = [ tcl ]; + + strictDeps = true; + hardeningDisable = [ "format" ]; + configureFlags = [ - "--with-tcl=${tcl}/lib" + "--with-tcl=${buildPackages.tcl}/lib" "--with-tclinclude=${tcl}/include" - "--exec-prefix=\${out}" + "--exec-prefix=${placeholder "out"}" ]; postInstall = '' @@ -33,6 +41,8 @@ stdenv.mkDerivation rec { done ''; + outputs = [ "out" "dev" ]; + meta = with lib; { description = "A tool for automating interactive applications"; homepage = "http://expect.sourceforge.net/"; |