
The `.assume-wrapped` path is not available since the merge of https://github.com/NixOS/nixpkgs/pull/347816 Use assume directly instead. PR #5994
27 lines
582 B
Nix
27 lines
582 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
programs = {
|
|
granted.enable = true;
|
|
granted.enableZshIntegration = false;
|
|
zsh.enable = true;
|
|
};
|
|
|
|
test.stubs.granted = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.zshrc
|
|
assertFileNotRegex \
|
|
home-files/.zshrc \
|
|
'function assume()'
|
|
assertFileNotRegex \
|
|
home-files/.zshrc \
|
|
'export GRANTED_ALIAS_CONFIGURED="true"'
|
|
assertFileNotRegex \
|
|
home-files/.zshrc \
|
|
'source @granted@/bin/assume "$@"'
|
|
assertFileNotRegex \
|
|
home-files/.zshrc \
|
|
'unset GRANTED_ALIAS_CONFIGURED'
|
|
'';
|
|
}
|