sbomnix: use finalAttrs pattern
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
python3,
|
||||
vulnix,
|
||||
}:
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
python3.pkgs.buildPythonApplication (finalAttrs: {
|
||||
pname = "sbomnix";
|
||||
version = "1.7.4";
|
||||
pyproject = true;
|
||||
@@ -16,7 +16,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "tiiuae";
|
||||
repo = "sbomnix";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-s7mmtbELRcl/7ab5A3fU7f8m4rIm+mBLmXMeYHa7/n4=";
|
||||
|
||||
# Remove documentation as it contains references to nix store
|
||||
@@ -78,4 +78,4 @@ python3.pkgs.buildPythonApplication rec {
|
||||
];
|
||||
mainProgram = "sbomnix";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user