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
|
|
@ -34,8 +34,7 @@ in {
|
|||
xdg.dataFile."fish/home-manager_generated_completions".source =
|
||||
lib.mkForce (builtins.toFile "empty" "");
|
||||
|
||||
nixpkgs.overlays =
|
||||
[ (self: super: { fish = pkgs.writeScriptBin "dummy" ""; }) ];
|
||||
test.stubs.fish = { };
|
||||
|
||||
nmt = {
|
||||
description =
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@ with lib;
|
|||
xdg.dataFile."fish/home-manager_generated_completions".source =
|
||||
lib.mkForce (builtins.toFile "empty" "");
|
||||
|
||||
nixpkgs.overlays =
|
||||
[ (self: super: { fish = pkgs.writeScriptBin "dummy" ""; }) ];
|
||||
test.stubs.fish = { };
|
||||
|
||||
nmt = {
|
||||
description =
|
||||
|
|
|
|||
|
|
@ -50,8 +50,7 @@ in {
|
|||
xdg.dataFile."fish/home-manager_generated_completions".source =
|
||||
lib.mkForce (builtins.toFile "empty" "");
|
||||
|
||||
nixpkgs.overlays =
|
||||
[ (self: super: { fish = pkgs.writeScriptBin "dummy" ""; }) ];
|
||||
test.stubs.fish = { };
|
||||
|
||||
nmt = {
|
||||
description =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue