lib/helpers: call with auto-args

Define `call = callPackageWith { inherit pkgs lib helpers; }`, which can
be used to automatically pass the correct args into helpers files.

`helpers` is passed in recursively.
This commit is contained in:
Matt Sturgeon 2024-07-28 22:51:18 +01:00
parent 0e98d9cf1e
commit 040bab5f55
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
3 changed files with 15 additions and 12 deletions

View file

@ -1,4 +1,4 @@
{ lib, ... }:
{ lib }:
with lib;
rec {
# Get a (sub)option by walking the path,