From 226ead02fc869557412b40217f95f9ccd4b7cbbc Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Mon, 23 Sep 2019 12:12:17 -0400 Subject: [PATCH] explain why we have pkgs in this pattern --- nixos/modules/tests/private-storage.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/tests/private-storage.nix b/nixos/modules/tests/private-storage.nix index ea71c854..09334175 100644 --- a/nixos/modules/tests/private-storage.nix +++ b/nixos/modules/tests/private-storage.nix @@ -35,6 +35,8 @@ let # mergeNodeAndNetwork :: Integer -> Name -> (Set -> AttrSet) -> {Name, (Set -> AttrSet)} mergeNodeAndNetwork = number: name: node: { inherit name; + # Sadly we have to name arguments in this definition to get them + # automatically passed in by the various autocall helpers in Nix. value = args@{ pkgs, ... }: ((node args) // (makeNetwork number)); }; at = builtins.elemAt; -- GitLab