1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 08:28:30 +02:00

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
'';
};
}