nixpkgs/nixos/tests/oh-my-zsh.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
432 B
Nix
Raw Normal View History

2020-11-04 20:37:50 -05:00
import ./make-test-python.nix (
{ pkgs, ... }:
{
name = "oh-my-zsh";
2022-03-21 00:15:30 +01:00
nodes.machine =
{ pkgs, ... }:
2020-11-04 20:37:50 -05:00
{
programs.zsh = {
enable = true;
ohMyZsh.enable = true;
};
2020-11-04 20:37:50 -05:00
};
testScript = ''
start_all()
machine.succeed("touch ~/.zshrc")
machine.succeed("zsh -c 'source /etc/zshrc && echo $ZSH | grep oh-my-zsh-${pkgs.oh-my-zsh.version}'")
'';
}
)