14 lines
425 B
Nix
14 lines
425 B
Nix
{ pkgs, lib ? pkgs.lib }:
|
|
let
|
|
callPackage = lib.callPackageWith (pkgs // self);
|
|
callPackageWithMerged = attrName: f: extraArgs:
|
|
let
|
|
mergedSubset = pkgs.${attrName} // self.${attrName};
|
|
subsetArgs = builtins.listToAttrs [{ name = attrName; value = mergedSubset; }];
|
|
in
|
|
callPackage f (subsetArgs // extraArgs);
|
|
self = rec {
|
|
acme-dns = callPackage ./servers/acme-dns.nix {};
|
|
};
|
|
in
|
|
self
|