1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-10 18:57:22 +00:00
home-manager/tests/modules/services/window-managers/hyprland/hyprland-stubs.nix
Austin Horstman 801ddd8693 hyprland: use package stubs
Reducing closure size for tests.
2025-01-31 20:47:14 -06:00

21 lines
707 B
Nix

{ config, lib, ... }: {
# Avoid unnecessary downloads in CI jobs and/or make out paths constant, i.e.,
# not containing hashes, version numbers etc.
test.stubs = {
xdg-desktop-portal = { };
xwayland = { };
};
nixpkgs.overlays = [
(_final: _prev: {
dbus = config.lib.test.mkStubPackage { name = "dbus"; };
hyprland = lib.makeOverridable
(attrs: config.lib.test.mkStubPackage { name = "hyprland"; }) { };
xdg-desktop-portal-hyprland = lib.makeOverridable (_:
config.lib.test.mkStubPackage { name = "xdg-desktop-portal-hyprland"; })
{ };
systemd =
lib.makeOverridable (_attrs: config.lib.test.mkStubPackage { }) { };
})
];
}