search-vulns: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-28 15:21:27 +01:00
parent 6953d214d4
commit 8b9cd160f3
+4 -4
View File
@@ -4,7 +4,7 @@
fetchFromGitHub,
}:
python3.pkgs.buildPythonApplication rec {
python3.pkgs.buildPythonApplication (finalAttrs: {
pname = "search-vulns";
version = "1.0.2";
pyproject = true;
@@ -12,7 +12,7 @@ python3.pkgs.buildPythonApplication rec {
src = fetchFromGitHub {
owner = "ra1nb0rn";
repo = "search_vulns";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-xdZq4Er+0CT59Iv0mEcmkZcUM+xbBi/x+TtBNCiyhbY=";
fetchSubmodules = true;
};
@@ -67,9 +67,9 @@ python3.pkgs.buildPythonApplication rec {
meta = {
description = "Search for known vulnerabilities in software using software titles or a CPE 2.3 string";
homepage = "https://github.com/ra1nb0rn/search_vulns";
changelog = "https://github.com/ra1nb0rn/search_vulns/blob/${src.tag}/CHANGELOG.md";
changelog = "https://github.com/ra1nb0rn/search_vulns/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "search_vulns";
};
}
})