diff --git a/pkgs/tools/compression/xz/default.nix b/pkgs/tools/compression/xz/default.nix index 658e8d8216a8..74d8e9b85423 100644 --- a/pkgs/tools/compression/xz/default.nix +++ b/pkgs/tools/compression/xz/default.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + autoreconfHook, enableStatic ? stdenv.hostPlatform.isStatic, writeScript, testers, @@ -37,6 +38,10 @@ stdenv.mkDerivation (finalAttrs: { enableParallelBuilding = true; doCheck = true; + nativeBuildInputs = lib.optionals stdenv.hostPlatform.isOpenBSD [ + autoreconfHook + ]; + # this could be accomplished by updateAutotoolsGnuConfigScriptsHook, but that causes infinite recursion # necessary for FreeBSD code path in configure postPatch = ''