cvehound: allow overriding 'runtimeDeps'

This commit is contained in:
Bruno BELANYI
2026-01-19 11:54:23 +00:00
parent f1bfb40ed2
commit 5511a9d4f9
+17 -10
View File
@@ -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";