nur/pkgs/default.nix
2021-07-24 18:52:55 +02:00

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