mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-17 22:41:11 +01:00
tests: add option test.stubs
This option provides a more convenient way to overlay dummy packages. It also adds a function `config.lib.test.mkStubPackage` that can, e.g., be used for `package` options.
This commit is contained in:
parent
b0651cc217
commit
cb09a968e9
159 changed files with 753 additions and 981 deletions
|
|
@ -7,12 +7,10 @@
|
|||
services.mpd.enable = true;
|
||||
services.mpd.musicDirectory = "/home/user/music";
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
ncmpcpp = pkgs.writeScriptBin "dummy-ncmpcpp" "";
|
||||
mpd = pkgs.writeScriptBin "dummy-mpd" "";
|
||||
})
|
||||
];
|
||||
test.stubs = {
|
||||
ncmpcpp = { };
|
||||
mpd = { };
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue