@@ -12,7 +12,7 @@
1212}:
1313
1414{ stdenv, callPackage, callPackage_i686, fetchurl, fetchpatch
15−, kernel ? null, xorg, zlib, perl, nukeReferences
15+, kernel ? null, libelf, xorg, zlib, perl, nukeReferences
1616, # Whether to build the libraries only (i.e. not the kernel module or
1717 # nvidia-settings). Used to support 32-bit binaries on 64-bit
1818 # Linux.
@@ -64,6 +64,8 @@ let
6464
6565 nativeBuildInputs = [ perl nukeReferences ];
6666
67+ buildInputs = [ libelf ];
68+
6769 disallowedReferences = optional (!libsOnly) [ kernel.dev ];
6870
6971 passthru = {