kakoune: fix tests

Following https://github.com/NixOS/nixpkgs/pull/91792
This commit is contained in:
Nicolas Berbiche 2020-11-05 21:00:22 -05:00
parent 9e9d8ffc7c
commit 4cc1b77c3f
No known key found for this signature in database
GPG key ID: F3308ADE984B83CB
2 changed files with 3 additions and 5 deletions

View file

@ -7,7 +7,7 @@ with lib;
programs.kakoune = { enable = true; };
nmt.script = ''
assertFileNotRegex home-path/share/kak/plugins.kak . # file is empty
assertPathNotExists home-path/share/kak/autoload/plugins
'';
};
}

View file

@ -9,10 +9,8 @@ with lib;
plugins = [ pkgs.kakounePlugins.kak-powerline ];
};
nmt.script = let plugins_kak = "home-path/share/kak/plugins.kak";
in ''
assertFileRegex ${plugins_kak} \
'^source "/nix/store/.*-kak-powerline/share/kak/autoload/plugins/powerline/.*.kak"$'
nmt.script = ''
assertDirectoryNotEmpty home-path/share/kak/autoload/plugins
'';
};
}