2021-05-14 21:06:54 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2022-01-02 10:22:50 +01:00
|
|
|
lib.mkIf config.test.enableBig {
|
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
|
|
|
enableGnomeExtensions = true;
|
|
|
|
};
|
2021-05-14 21:06:54 +02:00
|
|
|
|
2022-01-02 10:22:50 +01:00
|
|
|
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"
|
|
|
|
'';
|
2021-06-23 00:19:41 +02:00
|
|
|
|
2022-01-02 10:22:50 +01:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
})
|
|
|
|
];
|
2021-05-14 21:06:54 +02:00
|
|
|
|
2022-01-02 10:22:50 +01:00
|
|
|
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.
|
|
|
|
''];
|
2021-05-14 21:06:54 +02:00
|
|
|
}
|