@@ -11,6 +11,8 @@
1111
1212# Additional dependencies for GNU/Hurd.
1313, mig ? null, hurd ? null
14+
15+, setupDebugInfoDirs
1416}:
1517
1618let
@@ -34,7 +36,7 @@ stdenv.mkDerivation rec {
3436
3537 patches = [ ./debug-info-from-env.patch ];
3638
37− nativeBuildInputs = [ pkgconfig texinfo perl ]
39+ nativeBuildInputs = [ pkgconfig texinfo perl setupDebugInfoDirs ]
3840 # TODO(@Ericson2314) not sure if should be host or target
3941 ++ stdenv.lib.optional targetPlatform.isHurd mig;
4042
@@ -43,6 +45,8 @@ stdenv.mkDerivation rec {
4345 ++ stdenv.lib.optional targetPlatform.isHurd hurd
4446 ++ stdenv.lib.optional doCheck dejagnu;
4547
48+ propagatedNativeBuildInputs = [ setupDebugInfoDirs ];
49+
4650 enableParallelBuilding = true;
4751
4852 # darwin build fails with format hardening since v7.12