diff options
author | John Ericson <Ericson2314@Yahoo.com> | 2017-06-03 11:27:33 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2017-06-22 17:53:53 -0400 |
commit | ef0b07e94a2fa745d731b0308dbc175be58d0184 (patch) | |
tree | 1c8a8a492a13958054393dbecf3356628666ff3b /pkgs/tools/text | |
parent | 7bdacad8b39568611e84da5aa3b37e4e70641012 (diff) | |
download | nixlib-ef0b07e94a2fa745d731b0308dbc175be58d0184.tar nixlib-ef0b07e94a2fa745d731b0308dbc175be58d0184.tar.gz nixlib-ef0b07e94a2fa745d731b0308dbc175be58d0184.tar.bz2 nixlib-ef0b07e94a2fa745d731b0308dbc175be58d0184.tar.lz nixlib-ef0b07e94a2fa745d731b0308dbc175be58d0184.tar.xz nixlib-ef0b07e94a2fa745d731b0308dbc175be58d0184.tar.zst nixlib-ef0b07e94a2fa745d731b0308dbc175be58d0184.zip |
gnu patch: Fix for cross
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r-- | pkgs/tools/text/gnupatch/default.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/tools/text/gnupatch/default.nix b/pkgs/tools/text/gnupatch/default.nix index adbd69154ecc..57543eb303b0 100644 --- a/pkgs/tools/text/gnupatch/default.nix +++ b/pkgs/tools/text/gnupatch/default.nix @@ -1,4 +1,7 @@ -{ stdenv, fetchurl, ed }: +{ stdenv, fetchurl +, ed +, buildPlatform, hostPlatform +}: stdenv.mkDerivation rec { name = "patch-2.7.5"; @@ -10,11 +13,11 @@ stdenv.mkDerivation rec { buildInputs = stdenv.lib.optional doCheck ed; - crossAttrs = { - configureFlags = [ "ac_cv_func_strnlen_working=yes" ]; - }; + configureFlags = if hostPlatform == buildPlatform then null else [ + "ac_cv_func_strnlen_working=yes" + ]; - doCheck = true; + doCheck = hostPlatform == buildPlatform; meta = { description = "GNU Patch, a program to apply differences to files"; |