made it possible to use NUR with without overrides

this means you can use it directly from a channel or via a nix repl in
a local clone.
This commit is contained in:
binarycat 2024-03-17 13:34:41 -04:00 committed by mergify[bot]
parent b046e0f172
commit 1a5cae1376

View file

@ -1,7 +1,14 @@
{
nurpkgs ? import <nixpkgs> { }, # For nixpkgs dependencies used by NUR itself
# Dependencies to call NUR repos with
pkgs ? null,
# The override handles the case where NUR is installed via standalone channel or channel + override
pkgs ? (
import <nixpkgs> {
overrides = [
(final: prev: if prev ? nur then prev else { nur = ./. { pkgs = final; }; })
];
}
),
repoOverrides ? { },
}: