diff options
author | Ben Gamari <ben@smart-cactus.org> | 2017-12-09 14:48:13 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2017-12-29 17:18:59 -0500 |
commit | 946c1b26fa76503110c866f5469ec71b19a509bb (patch) | |
tree | 794e82bc5f9e18c07d2b5accfecfd2aec172b3a1 /pkgs/tools/text/diffutils | |
parent | 6f4cfe0570e1a72f4731a82ff0d98018150db962 (diff) |
diffutils: Enable cross-compilation
Diffstat (limited to 'pkgs/tools/text/diffutils')
-rw-r--r-- | pkgs/tools/text/diffutils/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/tools/text/diffutils/default.nix b/pkgs/tools/text/diffutils/default.nix index cd64bd1566b5..60628e2139ce 100644 --- a/pkgs/tools/text/diffutils/default.nix +++ b/pkgs/tools/text/diffutils/default.nix @@ -17,7 +17,8 @@ stdenv.mkDerivation rec { 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"; + stdenv.lib.optional (coreutils != null) "PR_PROGRAM=${coreutils}/bin/pr" + ++ stdenv.lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "gl_cv_func_getopt_gnu=yes"; meta = { homepage = http://www.gnu.org/software/diffutils/diffutils.html; |