diff --git a/pkgs/by-name/wi/wipe/package.nix b/pkgs/by-name/wi/wipe/package.nix index 98d7226e6f7e..3befb5541350 100644 --- a/pkgs/by-name/wi/wipe/package.nix +++ b/pkgs/by-name/wi/wipe/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + autoreconfHook, }: stdenv.mkDerivation rec { @@ -13,6 +14,12 @@ stdenv.mkDerivation rec { sha256 = "180snqvh6k6il6prb19fncflf2jcvkihlb4w84sbndcv1wvicfa6"; }; + nativeBuildInputs = [ autoreconfHook ]; + + # fdatasync is undocumented on darwin with no header file which breaks the build. + # use fsync instead. + configureFlags = lib.optional stdenv.hostPlatform.isDarwin "ac_cv_func_fdatasync=no"; + patches = [ ./fix-install.patch ]; meta = with lib; {