diff options
author | Robert Helgesson <robert@rycee.net> | 2019-10-08 22:46:27 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2019-10-26 13:07:04 +0200 |
commit | 797c77a00a50009239bc2b6576283e49fbd63b40 (patch) | |
tree | 65acc73e31053e429cc390ae4e356530857c80b4 /tests/modules/programs/zsh | |
parent | a177d0282fbb6af0668b63fba3dfb74cb25f3178 (diff) |
tests: reduce number of downloads
This replaces some derivation outputs by simple strings rather than
full Nix store paths. This removes the need to download the whole
derivation when all we need is a static string.
Diffstat (limited to 'tests/modules/programs/zsh')
-rw-r--r-- | tests/modules/programs/zsh/session-variables.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/modules/programs/zsh/session-variables.nix b/tests/modules/programs/zsh/session-variables.nix index a87d39820cf..ca903619d68 100644 --- a/tests/modules/programs/zsh/session-variables.nix +++ b/tests/modules/programs/zsh/session-variables.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: with lib; @@ -13,6 +13,12 @@ with lib; }; }; + nixpkgs.overlays = [ + (self: super: { + zsh = pkgs.writeScriptBin "dummy-zsh" ""; + }) + ]; + nmt.script = '' assertFileExists home-files/.zshrc assertFileRegex home-files/.zshrc 'export V1="v1"' |