nur/pkgs/default.nix

16 lines
486 B
Nix
Raw Normal View History

2021-07-24 18:33:56 +02:00
{ 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);
2022-12-12 16:02:50 +01:00
self = rec {
acme-dns = callPackage ./servers/acme-dns.nix {};
lychee-gallery = callPackage ./web-apps/lychee-gallery.nix {};
};
2021-07-24 18:33:56 +02:00
in
self