firefox*: set up cpe identifiers, purl urls (#558399)

This commit is contained in:
Martin Weinelt
2026-09-03 13:28:08 +00:00
committed by GitHub
3 changed files with 38 additions and 0 deletions

View File

@@ -24,6 +24,19 @@ buildMozillaMach rec {
maxSilent = 14400; # 4h, double the default of 7200s (c.f. #129212, #129115)
license = lib.licenses.mpl20;
mainProgram = "firefox";
identifiers = {
cpeParts = {
product = "firefox";
sw_edition = "esr";
update = "*";
vendor = "mozilla";
version = lib.removeSuffix "esr" version;
};
purlParts = {
type = "generic";
spec = "firefox@${lib.removeSuffix "esr" version}";
};
};
};
tests = {
inherit (nixosTests) firefox-esr-140;

View File

@@ -25,6 +25,19 @@ buildMozillaMach rec {
maxSilent = 14400; # 4h, double the default of 7200s (c.f. #129212, #129115)
license = lib.licenses.mpl20;
mainProgram = "firefox";
identifiers = {
cpeParts = {
product = "firefox";
sw_edition = "esr";
update = "*";
vendor = "mozilla";
version = lib.removeSuffix "esr" version;
};
purlParts = {
type = "generic";
spec = "firefox@${lib.removeSuffix "esr" version}";
};
};
};
tests = {
inherit (nixosTests) firefox-esr-153;

View File

@@ -30,6 +30,18 @@ buildMozillaMach rec {
maxSilent = 14400; # 4h, double the default of 7200s (c.f. #129212, #129115)
license = lib.licenses.mpl20;
mainProgram = "firefox";
identifiers = {
cpeParts = {
inherit version;
product = "firefox";
update = "*";
vendor = "mozilla";
};
purlParts = {
type = "generic";
spec = "firefox@${version}";
};
};
};
tests = {
inherit (nixosTests) firefox;