From 6fa8de41fadc6c439c19ca3133da90d16dcd7d0e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 4 Apr 2008 18:24:41 +0000 Subject: [PATCH] * Referring to stdenv.coreutils breaks on FreeBSD. svn path=/nixpkgs/trunk/; revision=11463 --- pkgs/tools/misc/expect/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/expect/default.nix b/pkgs/tools/misc/expect/default.nix index 9e286ba3b70..f17395b9ece 100644 --- a/pkgs/tools/misc/expect/default.nix +++ b/pkgs/tools/misc/expect/default.nix @@ -17,8 +17,9 @@ stdenv.mkDerivation { # substituteInPlace exp_inter.c --replace tcl.h tclInt.h #''; - coreutils = stdenv.coreutils; - patchPhase = '' sed -i "s@/bin/stty@$coreutils/bin/stty@" configure ''; + patchPhase = '' + substituteInPlace configure --replace /bin/stty "$(type -tP stty)" + ''; configureFlags = "--with-tcl=${tcl}/lib --with-tclinclude=${tcl}/include";