Commit 47f19897 authored by David McFarland's avatar David McFarland
Browse files

gnum4: fix cygwin build

parent da22a87e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchurl,
  gnulib,
}:

# Note: this package is used for bootstrapping fetchurl, and thus
@@ -18,6 +19,8 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-rGmJ7l0q7YFzl4BjDMLOCX4qZUb+uWpKVNs31GoUUuQ=";
  };

  patches = lib.optional stdenv.hostPlatform.isCygwin gnulib.patches.memcpy-fix-backport-250512;

  # this could be accomplished by updateAutotoolsGnuConfigScriptsHook, but that causes infinite recursion
  # necessary for FreeBSD code path in configure
  postPatch = ''