nur: better docs for my entrypoint

This commit is contained in:
Colin 2023-05-03 00:56:23 +00:00
parent 2450bb6f06
commit 9f21fbceda

View File

@ -7,14 +7,20 @@
#
# rather, this is the entrypoint through which NUR finds my packages, modules, overlays.
# it's reachable only from those using this repo via NUR.
#
# to manually query available packages, modules, etc, true:
# - nix eval --impure --expr 'builtins.attrNames (import ./. {})'
{ pkgs }:
{ pkgs ? import <nixpkgs> {} }:
let
sanePkgs = import ../../pkgs/additional pkgs;
in
({
# contains both packages not in nixpkgs, and patched versions of those in nixpkgs
overlays.pkgs = import ../../overlays/pkgs.nix;
# contains only my packages which aren't in nixpkgs
pkgs = sanePkgs;
modules = import ../../modules { inherit (pkgs) lib; };
lib = import ../../modules/lib { inherit (pkgs) lib; };
} // sanePkgs)