1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

buildMozillaMach: change tests to an attrset

(cherry picked from commit f3a4421f27)
This commit is contained in:
jopejoe1 2024-10-19 14:12:19 +02:00
parent 6bbb777b43
commit b4137f3fbb
4 changed files with 9 additions and 7 deletions

View file

@ -18,7 +18,7 @@
, extraBuildInputs ? []
, extraMakeFlags ? []
, extraPassthru ? {}
, tests ? []
, tests ? {}
}:
let

View file

@ -25,7 +25,7 @@
license = lib.licenses.mpl20;
mainProgram = "firefox";
};
tests = [ nixosTests.firefox ];
tests = { inherit (nixosTests) firefox; };
updateScript = callPackage ./update.nix {
attrPath = "firefox-unwrapped";
};
@ -53,7 +53,7 @@
license = lib.licenses.mpl20;
mainProgram = "firefox";
};
tests = [ nixosTests.firefox-beta ];
tests = { inherit (nixosTests) firefox-beta; };
updateScript = callPackage ./update.nix {
attrPath = "firefox-beta-unwrapped";
versionSuffix = "b[0-9]*";
@ -84,7 +84,7 @@
license = lib.licenses.mpl20;
mainProgram = "firefox";
};
tests = [ nixosTests.firefox-devedition ];
tests = { inherit (nixosTests) firefox-devedition; };
updateScript = callPackage ./update.nix {
attrPath = "firefox-devedition-unwrapped";
versionSuffix = "b[0-9]*";
@ -113,7 +113,7 @@
license = lib.licenses.mpl20;
mainProgram = "firefox";
};
tests = [ nixosTests.firefox-esr-128 ];
tests = { inherit (nixosTests) firefox-esr-128; };
updateScript = callPackage ./update.nix {
attrPath = "firefox-esr-128-unwrapped";
versionPrefix = "128";

View file

@ -57,7 +57,9 @@
license = lib.licenses.mpl20;
mainProgram = "floorp";
};
tests = [ nixosTests.floorp ];
tests = {
inherit (nixosTests) floorp;
};
}).override {
# Upstream build configuration can be found at
# .github/workflows/src/linux/shared/mozconfig_linux_base

View file

@ -26,7 +26,7 @@ in
license = lib.licenses.mpl20;
mainProgram = "librewolf";
};
tests = [ nixosTests.librewolf ];
tests = { inherit (nixosTests) librewolf; };
updateScript = callPackage ./update.nix {
attrPath = "librewolf-unwrapped";
};