Skip to content

Commit

Permalink
gnome-terminal: update package name
Browse files Browse the repository at this point in the history
The `pkgs.gnome.gnome-terminal` package was moved to
`pkgs.gnome-terminal`. The former is now a deprecated alias that
throws a warning whenever a configuration enabling the module is used:

```
The ‘gnome.gnome-terminal’ was moved to top-level. Please use
‘pkgs.gnome-terminal’ directly.
```

Related: NixOS/nixpkgs#319659
Related: #5611
  • Loading branch information
tomodachi94 authored and rycee committed Jul 27, 2024
1 parent 975b83c commit d0240a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion modules/programs/gnome-terminal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ in {
})
];

home.packages = [ pkgs.gnome.gnome-terminal ];
home.packages = [ pkgs.gnome-terminal ];

dconf.settings = let dconfPath = "org/gnome/terminal/legacy";
in {
Expand Down
5 changes: 2 additions & 3 deletions tests/modules/programs/gnome-terminal/bad-profile-name.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
};
};

nixpkgs.overlays = [
(self: super: { gnome.gnome-terminal = config.lib.test.mkStubPackage { }; })
];
nixpkgs.overlays =
[ (self: super: { gnome-terminal = config.lib.test.mkStubPackage { }; }) ];

test.stubs.dconf = { };

Expand Down
4 changes: 1 addition & 3 deletions tests/modules/programs/gnome-terminal/gnome-terminal-1.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ with lib;
};

nixpkgs.overlays = [
(self: super: {
gnome.gnome-terminal = config.lib.test.mkStubPackage { };
})
(self: super: { gnome-terminal = config.lib.test.mkStubPackage { }; })
];

test.stubs.dconf = { };
Expand Down

0 comments on commit d0240a0

Please sign in to comment.