From 15a2953c814efd5280f121d802c510d26ca15726 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 9 May 2021 12:23:44 +0200 Subject: [PATCH] powerline-go: avoid dependency in tests --- tests/modules/programs/powerline-go/bash.nix | 3 +++ tests/modules/programs/powerline-go/zsh.nix | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/modules/programs/powerline-go/bash.nix b/tests/modules/programs/powerline-go/bash.nix index b01fcb1a7..945bde731 100644 --- a/tests/modules/programs/powerline-go/bash.nix +++ b/tests/modules/programs/powerline-go/bash.nix @@ -18,6 +18,9 @@ with lib; }; }; + nixpkgs.overlays = + [ (self: super: { powerline-go = pkgs.writeScriptBin "dummy-pkg" ""; }) ]; + nmt.script = '' assertFileExists home-files/.bashrc assertFileContains \ diff --git a/tests/modules/programs/powerline-go/zsh.nix b/tests/modules/programs/powerline-go/zsh.nix index 702149528..0ed88215d 100644 --- a/tests/modules/programs/powerline-go/zsh.nix +++ b/tests/modules/programs/powerline-go/zsh.nix @@ -18,8 +18,12 @@ with lib; }; }; - nixpkgs.overlays = - [ (self: super: { zsh = pkgs.writeScriptBin "dummy-zsh" ""; }) ]; + nixpkgs.overlays = [ + (self: super: { + powerline-go = pkgs.writeScriptBin "dummy-pkg" ""; + zsh = pkgs.writeScriptBin "dummy-pkg" ""; + }) + ]; nmt.script = '' assertFileExists home-files/.zshrc