mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
nix-index: use dummy fish package in tests
This commit is contained in:
parent
ab6517d34a
commit
d490797179
2 changed files with 29 additions and 6 deletions
|
@ -1,4 +1,6 @@
|
||||||
{ pkgs, ... }: {
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
config = {
|
config = {
|
||||||
programs.bash.enable = true;
|
programs.bash.enable = true;
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
|
@ -6,8 +8,18 @@
|
||||||
|
|
||||||
programs.command-not-found.enable = true;
|
programs.command-not-found.enable = true;
|
||||||
|
|
||||||
nixpkgs.overlays =
|
# Needed to avoid error with dummy fish package.
|
||||||
[ (self: super: { zsh = pkgs.writeScriptBin "dummy-zsh" ""; }) ];
|
xdg.dataFile."fish/home-manager_generated_completions".source =
|
||||||
|
lib.mkForce (builtins.toFile "empty" "");
|
||||||
|
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(self: super:
|
||||||
|
let dummy = pkgs.writeScriptBin "dummy" "";
|
||||||
|
in {
|
||||||
|
zsh = dummy;
|
||||||
|
fish = dummy;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
programs.nix-index.enable = true;
|
programs.nix-index.enable = true;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
fishRegex = ''
|
fishRegex = ''
|
||||||
function __fish_command_not_found_handler --on-event fish_command_not_found
|
function __fish_command_not_found_handler --on-event fish_command_not_found
|
||||||
|
@ -11,8 +12,18 @@ in {
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
nixpkgs.overlays =
|
# Needed to avoid error with dummy fish package.
|
||||||
[ (self: super: { zsh = pkgs.writeScriptBin "dummy-zsh" ""; }) ];
|
xdg.dataFile."fish/home-manager_generated_completions".source =
|
||||||
|
lib.mkForce (builtins.toFile "empty" "");
|
||||||
|
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(self: super:
|
||||||
|
let dummy = pkgs.writeScriptBin "dummy" "";
|
||||||
|
in {
|
||||||
|
zsh = dummy;
|
||||||
|
fish = dummy;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
programs.nix-index.enable = true;
|
programs.nix-index.enable = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue