mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-03 20:19:19 +00:00
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.
30 lines
491 B
Nix
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
|
|
'';
|
|
}
|
|
)
|