mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
ne: use dummy package in tests
This is to avoid unnecessary downloads and builds when running the tests suite.
This commit is contained in:
parent
54b69d2ef8
commit
5a15f3833d
2 changed files with 10 additions and 1 deletions
|
@ -1,13 +1,16 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
defpref = ''
|
||||
defined through defaultPreferences
|
||||
'';
|
||||
|
||||
autopref = ''
|
||||
defined through automaticPreferences
|
||||
'';
|
||||
|
||||
in {
|
||||
config = {
|
||||
programs.ne = {
|
||||
|
@ -15,6 +18,10 @@ in {
|
|||
defaultPreferences = defpref;
|
||||
automaticPreferences.".default" = autopref;
|
||||
};
|
||||
|
||||
nixpkgs.overlays =
|
||||
[ (self: super: { ne = pkgs.writeScriptBin "dummy-ne" ""; }) ];
|
||||
|
||||
nmt = {
|
||||
description =
|
||||
"Check that it gracefully handles the case of both defaultPreferences and automaticPreferences.'.default' being set, defaulting to the former.";
|
||||
|
@ -24,7 +31,6 @@ in {
|
|||
builtins.toFile "defpref" defpref
|
||||
}
|
||||
'';
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -53,6 +53,9 @@ in {
|
|||
inherit automaticPreferences;
|
||||
};
|
||||
|
||||
nixpkgs.overlays =
|
||||
[ (self: super: { ne = pkgs.writeScriptBin "dummy-ne" ""; }) ];
|
||||
|
||||
nmt = {
|
||||
description = "Check that configuration files are correctly written";
|
||||
script = concatStringsSep "\n" [
|
||||
|
|
Loading…
Reference in a new issue