@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchurl, m4, zlib, bzip2, bison, flex, gettext, xz }:
1+{ lib, stdenv, fetchurl, m4, zlib, bzip2, bison, flex, gettext, xz, setupDebugInfoDirs }:
22
33# TODO: Look at the hardcoded paths to kernel, modules etc.
44stdenv.mkDerivation rec {
@@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
1010 sha256 = "1hiv1yqig3292dwqhrwsxwk3qjalxp5fpl8yphwbfwh8ng3zl4ll";
1111 };
1212
13+ patches = ./debug-info-from-env.patch;
14+
1315 hardeningDisable = [ "format" ];
1416
1517 # We need bzip2 in NativeInputs because otherwise we can't unpack the src,
@@ -17,6 +19,8 @@ stdenv.mkDerivation rec {
1719 nativeBuildInputs = [ m4 bison flex gettext bzip2 ];
1820 buildInputs = [ zlib bzip2 xz ];
1921
22+ propagatedNativeBuildInputs = [ setupDebugInfoDirs ];
23+
2024 configureFlags =
2125 [ "--program-prefix=eu-" # prevent collisions with binutils
2226 "--enable-deterministic-archives"