1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-12 21:09:49 +01:00
home-manager/tests/modules/programs/firefox/deprecated-native-messenger.nix
Robert Helgesson 7efd99ef87
firefox: fix test case
(cherry picked from commit a19f40d39d)
2021-11-26 10:11:34 +01:00

33 lines
857 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.firefox = {
enable = true;
enableGnomeExtensions = true;
};
nixpkgs.overlays = [
(self: super: {
firefox-unwrapped = pkgs.runCommand "firefox-0" {
meta.description = "I pretend to be Firefox";
preferLocalBuild = true;
allowSubstitutes = false;
} ''
mkdir -p "$out"/{bin,lib}
touch "$out/bin/firefox"
chmod 755 "$out/bin/firefox"
'';
})
];
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.
''];
};
}