From 5c1e7349bbd9b51fe41ea96b67c380feef996b90 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 7 Mar 2020 15:31:07 +0100 Subject: [PATCH] lieer: remove package dependency in tests --- tests/modules/programs/lieer/lieer.nix | 4 ++++ tests/modules/services/lieer/lieer-service.nix | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/modules/programs/lieer/lieer.nix b/tests/modules/programs/lieer/lieer.nix index 3f1c8b688..1671f4f5e 100644 --- a/tests/modules/programs/lieer/lieer.nix +++ b/tests/modules/programs/lieer/lieer.nix @@ -13,6 +13,10 @@ with lib; accounts.email.accounts = { "hm@example.com".lieer.enable = true; }; + nixpkgs.overlays = [ + (self: super: { gmailieer = pkgs.writeScriptBin "dummy-gmailieer" ""; }) + ]; + nmt.script = '' assertFileExists home-files/Mail/hm@example.com/.gmailieer.json assertFileContent home-files/Mail/hm@example.com/.gmailieer.json \ diff --git a/tests/modules/services/lieer/lieer-service.nix b/tests/modules/services/lieer/lieer-service.nix index 3c9e66397..faef5053c 100644 --- a/tests/modules/services/lieer/lieer-service.nix +++ b/tests/modules/services/lieer/lieer-service.nix @@ -18,7 +18,9 @@ with lib; nixpkgs.overlays = [ (self: super: { - gmailieer = super.gmailieer // { outPath = "@lieer@"; }; + gmailieer = pkgs.writeScriptBin "dummy-gmailieer" "" // { + outPath = "@lieer@"; + }; }) ];