nur/pkgs/default.nix
2022-12-12 16:02:50 +01:00

15 lines
486 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 {};
lychee-gallery = callPackage ./web-apps/lychee-gallery.nix {};
};
in
self