Files
home-manager/tests/modules/programs/firefox/final-package.nix
Austin Horstman 4b14cf08ff firefox: use default paths in package identity test
The Nixpkgs wrapper now applies appDataDir, so a custom configPath
changes the Firefox and Floorp derivations. Test package identity with
each browser default and leave custom paths to the config-path tests.
2026-09-11 22:23:22 -05:00

30 lines
491 B
Nix

modulePath:
{
config,
lib,
realPkgs,
...
}:
let
cfg = lib.getAttrFromPath modulePath config;
in
lib.mkIf config.test.enableBig (
lib.setAttrByPath modulePath {
enable = true;
}
// {
_module.args.pkgs = lib.mkForce realPkgs;
nmt.script = ''
package=${cfg.package}
finalPackage=${cfg.finalPackage}
if [[ $package != $finalPackage ]]; then
fail "Expected finalPackage ($finalPackage) to equal package ($package)"
fi
'';
}
)