fish: use dummy fish package in tests
This commit is contained in:
parent
d490797179
commit
29ea37374d
3 changed files with 22 additions and 1 deletions
|
@ -30,6 +30,13 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Needed to avoid error with dummy fish package.
|
||||||
|
xdg.dataFile."fish/home-manager_generated_completions".source =
|
||||||
|
lib.mkForce (builtins.toFile "empty" "");
|
||||||
|
|
||||||
|
nixpkgs.overlays =
|
||||||
|
[ (self: super: { fish = pkgs.writeScriptBin "dummy" ""; }) ];
|
||||||
|
|
||||||
nmt = {
|
nmt = {
|
||||||
description =
|
description =
|
||||||
"if fish.function is set, check file exists and contents match";
|
"if fish.function is set, check file exists and contents match";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
|
@ -10,6 +10,13 @@ with lib;
|
||||||
functions = { };
|
functions = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Needed to avoid error with dummy fish package.
|
||||||
|
xdg.dataFile."fish/home-manager_generated_completions".source =
|
||||||
|
lib.mkForce (builtins.toFile "empty" "");
|
||||||
|
|
||||||
|
nixpkgs.overlays =
|
||||||
|
[ (self: super: { fish = pkgs.writeScriptBin "dummy" ""; }) ];
|
||||||
|
|
||||||
nmt = {
|
nmt = {
|
||||||
description =
|
description =
|
||||||
"if fish.functions is blank, the functions folder should not exist.";
|
"if fish.functions is blank, the functions folder should not exist.";
|
||||||
|
|
|
@ -46,6 +46,13 @@ in {
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Needed to avoid error with dummy fish package.
|
||||||
|
xdg.dataFile."fish/home-manager_generated_completions".source =
|
||||||
|
lib.mkForce (builtins.toFile "empty" "");
|
||||||
|
|
||||||
|
nixpkgs.overlays =
|
||||||
|
[ (self: super: { fish = pkgs.writeScriptBin "dummy" ""; }) ];
|
||||||
|
|
||||||
nmt = {
|
nmt = {
|
||||||
description =
|
description =
|
||||||
"if fish.plugins set, check conf.d file exists and contents match";
|
"if fish.plugins set, check conf.d file exists and contents match";
|
||||||
|
|
Loading…
Reference in a new issue