1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-10 10:47:02 +00:00
home-manager/tests/modules/services/window-managers/i3/i3-stubs.nix
Austin Horstman e0a2df3193 i3-stubs: add more stubs
Reducing closure from 500MB to 357MB
2025-01-31 20:47:14 -06:00

27 lines
596 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 = {
dmenu = { };
i3 = {
buildScript = ''
mkdir -p $out/bin
echo '#!/bin/sh' > $out/bin/i3
chmod 755 $out/bin/i3
'';
};
i3-gaps = { };
i3status = { };
};
nixpkgs.overlays = [
(_final: _prev: {
dbus = config.lib.test.mkStubPackage { name = "dbus"; };
systemd =
lib.makeOverridable (_attrs: config.lib.test.mkStubPackage { }) { };
})
];
}