@@ -3,15 +3,15 @@
33, tpmSupport ? false, trousers
44
55# Version dependent args
6−, version, src, patches ? []
6+, version, src, patches ? [], postPatch ? "", nativeBuildInputs ? []
77, ...}:
88
99assert guileBindings -> guile != null;
1010
11−stdenv.mkDerivation rec {
11+stdenv.mkDerivation {
1212 name = "gnutls-${version}";
1313
14− inherit src patches;
14+ inherit src patches postPatch;
1515
1616 outputs = [ "out" "man" ];
1717
@@ -34,7 +34,9 @@ stdenv.mkDerivation rec {
3434 ++ [ unbound ]
3535 ++ lib.optional guileBindings guile;
3636
37− nativeBuildInputs = [ perl pkgconfig ];
37+ # AutoreconfHook is temporary until the patch lands upstream to fix
38+ # header file generation with parallel building
39+ nativeBuildInputs = [ perl pkgconfig ] ++ nativeBuildInputs;
3840
3941 # XXX: Gnulib's `test-select' fails on FreeBSD:
4042 # http://hydra.nixos.org/build/2962084/nixlog/1/raw .