mirror of
https://github.com/nix-community/home-manager
synced 2024-12-21 10:33:25 +00:00
5f00024e75
This makes it possible to identify the test as big in the test file itself. It also seems like a more natural way to control the test running.
36 lines
1,016 B
Nix
36 lines
1,016 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
lib.mkIf config.test.enableBig {
|
|
programs.firefox = {
|
|
enable = true;
|
|
enableGnomeExtensions = true;
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: {
|
|
firefox-unwrapped = pkgs.runCommandLocal "firefox-0" {
|
|
meta.description = "I pretend to be Firefox";
|
|
passthru.gtk3 = null;
|
|
} ''
|
|
mkdir -p "$out"/{bin,lib}
|
|
touch "$out/bin/firefox"
|
|
chmod 755 "$out/bin/firefox"
|
|
'';
|
|
|
|
chrome-gnome-shell =
|
|
pkgs.runCommandLocal "dummy-chrome-gnome-shell" { } ''
|
|
mkdir -p $out/lib/mozilla/native-messaging-hosts
|
|
touch $out/lib/mozilla/native-messaging-hosts/dummy
|
|
'';
|
|
})
|
|
];
|
|
|
|
test.asserts.warnings.expected = [''
|
|
Using 'programs.firefox.enableGnomeExtensions' has been deprecated and
|
|
will be removed in the future. Please change to overriding the package
|
|
configuration using 'programs.firefox.package' instead. You can refer to
|
|
its example for how to do this.
|
|
''];
|
|
}
|