1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

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 = { config = {
programs.abook.enable = true; programs.abook.enable = true;
nixpkgs.overlays =
[ (self: super: { abook = pkgs.writeScriptBin "dummy-abook" ""; }) ];
nmt.script = '' nmt.script = ''
assertPathNotExists home-files/.config/abook/abookrc 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 = '' nmt.script = ''
assertFileExists home-files/.config/abook/abookrc assertFileExists home-files/.config/abook/abookrc
assertFileContent home-files/.config/abook/abookrc ${./with-settings.cfg} assertFileContent home-files/.config/abook/abookrc ${./with-settings.cfg}

View file

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