diff --git a/pkgs/tools/security/chipsec/default.nix b/pkgs/tools/security/chipsec/default.nix index 8842cbab248c..689719237ed2 100644 --- a/pkgs/tools/security/chipsec/default.nix +++ b/pkgs/tools/security/chipsec/default.nix @@ -2,7 +2,7 @@ , stdenv , fetchFromGitHub , kernel ? null -, libelf +, elfutils , nasm , python3 , withDriver ? false @@ -26,8 +26,9 @@ python3.pkgs.buildPythonApplication rec { KSRC = lib.optionalString withDriver "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"; nativeBuildInputs = [ - libelf nasm + ] ++ lib.optionals (lib.meta.availableOn stdenv.buildPlatform elfutils) [ + elfutils ] ++ lib.optionals withDriver kernel.moduleBuildDependencies; nativeCheckInputs = with python3.pkgs; [