gnu patch: Fix for cross
This commit is contained in:
parent
7bdacad8b3
commit
ef0b07e94a
@ -1,4 +1,7 @@
|
|||||||
{ stdenv, fetchurl, ed }:
|
{ stdenv, fetchurl
|
||||||
|
, ed
|
||||||
|
, buildPlatform, hostPlatform
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "patch-2.7.5";
|
name = "patch-2.7.5";
|
||||||
@ -10,11 +13,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = stdenv.lib.optional doCheck ed;
|
buildInputs = stdenv.lib.optional doCheck ed;
|
||||||
|
|
||||||
crossAttrs = {
|
configureFlags = if hostPlatform == buildPlatform then null else [
|
||||||
configureFlags = [ "ac_cv_func_strnlen_working=yes" ];
|
"ac_cv_func_strnlen_working=yes"
|
||||||
};
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = hostPlatform == buildPlatform;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "GNU Patch, a program to apply differences to files";
|
description = "GNU Patch, a program to apply differences to files";
|
||||||
|
Loading…
Reference in New Issue
Block a user