mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
tests/broot: stub broot
This commit is contained in:
parent
39037b08f1
commit
4bc9b08c33
1 changed files with 16 additions and 3 deletions
|
|
@ -1,13 +1,26 @@
|
|||
{ realPkgs, ... }:
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
programs.broot = {
|
||||
enable = true;
|
||||
package = (
|
||||
config.lib.test.mkStubPackage {
|
||||
name = "broot";
|
||||
extraAttrs = {
|
||||
src = config.lib.test.mkStubPackage {
|
||||
name = "broot-src";
|
||||
buildScript = ''
|
||||
mkdir -p $out/resources/default-conf/
|
||||
echo test > $out/resources/default-conf/conf.hjson
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
settings.modal = true;
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [ (self: super: { inherit (realPkgs) broot hjson-go; }) ];
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/broot/conf.hjson
|
||||
assertFileContains home-files/.config/broot/conf.hjson '"modal": true'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue