diffutils: coreutils is a run-time dep; specify pr's location

This commit is contained in:
John Ericson 2017-08-16 11:27:44 -04:00
parent 220e3817b8
commit 63428ebab9

View file

@ -10,8 +10,14 @@ stdenv.mkDerivation rec {
outputs = [ "out" "info" ];
nativeBuildInputs = [ xz.bin ];
/* If no explicit coreutils is given, use the one from stdenv. */
nativeBuildInputs = [ xz.bin coreutils ];
buildInputs = [ coreutils ];
configureFlags =
# "pr" need not be on the PATH as a run-time dep, so we need to tell
# configure where it is. Covers the cross and native case alike.
stdenv.lib.optional (coreutils != null) "PR_PROGRAM=${coreutils}/bin/pr";
meta = {
homepage = http://www.gnu.org/software/diffutils/diffutils.html;