tests: remove package dependencies on rofi and abook

This commit is contained in:
Robert Helgesson 2020-03-06 00:26:36 +01:00
parent 1a4c10e950
commit faa2945606
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
3 changed files with 10 additions and 1 deletions

View File

@ -6,6 +6,9 @@ with lib;
config = {
programs.abook.enable = true;
nixpkgs.overlays =
[ (self: super: { abook = pkgs.writeScriptBin "dummy-abook" ""; }) ];
nmt.script = ''
assertPathNotExists home-files/.config/abook/abookrc
'';

View File

@ -28,6 +28,9 @@ with lib;
'';
};
nixpkgs.overlays =
[ (self: super: { abook = pkgs.writeScriptBin "dummy-abook" ""; }) ];
nmt.script = ''
assertFileExists home-files/.config/abook/abookrc
assertFileContent home-files/.config/abook/abookrc ${./with-settings.cfg}

View File

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
with lib;
@ -20,6 +20,9 @@ with lib;
home.file.result.text = builtins.toJSON
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
nixpkgs.overlays =
[ (self: super: { rofi = pkgs.writeScriptBin "dummy-rofi" ""; }) ];
nmt.script = ''
assertFileContent \
home-files/result \