Commit 5511a9d4 authored by Bruno BELANYI's avatar Bruno BELANYI
Browse files

cvehound: allow overriding 'runtimeDeps'

parent f1bfb40e
Loading
Loading
Loading
Loading
+17 −10
Original line number Diff line number Diff line
@@ -5,7 +5,12 @@
  gnugrep,
  python3,
}:

let
  runtimeDeps = [
    coccinelle
    gnugrep
  ];
in
python3.pkgs.buildPythonApplication (finalAttrs: {
  pname = "cvehound";
  version = "1.2.1";
@@ -18,15 +23,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
    hash = "sha256-UvjmlAm/8B4KfE9grvvgn37Rui+ZRfs2oTLqYYgqcUQ=";
  };

  makeWrapperArgs = [
    "--prefix PATH : ${
      lib.makeBinPath [
        coccinelle
        gnugrep
      ]
    }"
  ];

  build-system = with python3.pkgs; [
    setuptools
  ];
@@ -45,6 +41,17 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
  # Tries to clone the kernel sources
  doCheck = false;

  makeWrapperArgs = [
    "--prefix"
    "PATH"
    ":"
    (lib.makeBinPath finalAttrs.passthru.runtimeDeps)
  ];

  passthru = {
    inherit runtimeDeps;
  };

  meta = {
    description = "Tool to check linux kernel source dump for known CVEs";
    homepage = "https://github.com/evdenis/cvehound";