From b5e7817de2a2c2a3735d8620d0fe67b327a5e95d Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 14 Nov 2020 10:37:35 +0100 Subject: [PATCH] zsh-prezto: remove package dependency in test --- tests/modules/programs/zsh/prezto.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/modules/programs/zsh/prezto.nix b/tests/modules/programs/zsh/prezto.nix index 118c2e726..cc173bab8 100644 --- a/tests/modules/programs/zsh/prezto.nix +++ b/tests/modules/programs/zsh/prezto.nix @@ -6,6 +6,18 @@ with lib; config = { programs.zsh.prezto.enable = true; + nixpkgs.overlays = [ + (self: super: { + zsh-prezto = super.runCommandLocal "dummy-zsh-prezto" { } '' + mkdir -p $out/runcoms + echo '# zprofile' > $out/runcoms/zprofile + echo '# zlogin' > $out/runcoms/zlogin + echo '# zlogout' > $out/runcoms/zlogout + echo '# zshenv' > $out/runcoms/zshenv + ''; + }) + ]; + nmt.script = '' assertFileExists home-files/.zpreztorc '';