1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-05 16:26:58 +00:00

wayfire-stubs: add stubs for wayfire tests

Reducing closure from 500MB to 357MB
This commit is contained in:
Austin Horstman 2025-01-30 18:59:05 -06:00
parent c4f28f282f
commit 9afd022013
3 changed files with 17 additions and 0 deletions

View file

@ -1,4 +1,6 @@
{ ... }: {
imports = [ ./wayfire-stubs.nix ];
wayland.windowManager.wayfire = {
enable = true;
package = null;

View file

@ -0,0 +1,13 @@
{ config, lib, ... }: {
# Avoid unnecessary downloads in CI jobs and/or make out paths constant, i.e.,
# not containing hashes, version numbers etc.
test.stubs = { wayfire = { }; };
nixpkgs.overlays = [
(_final: _prev: {
dbus = config.lib.test.mkStubPackage { name = "dbus"; };
systemd =
lib.makeOverridable (_attrs: config.lib.test.mkStubPackage { }) { };
})
];
}

View file

@ -1,4 +1,6 @@
{ pkgs, ... }: {
imports = [ ./wayfire-stubs.nix ];
wayland.windowManager.wayfire = {
enable = true;
package = null;