From 1a5cae1376b341235de0d1a995cf8a8e731fd3c7 Mon Sep 17 00:00:00 2001 From: binarycat Date: Sun, 17 Mar 2024 13:34:41 -0400 Subject: [PATCH] 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. --- default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index db3b6e336..876cd6e63 100644 --- a/default.nix +++ b/default.nix @@ -1,7 +1,14 @@ { nurpkgs ? import { }, # 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 { + overrides = [ + (final: prev: if prev ? nur then prev else { nur = ./. { pkgs = final; }; }) + ]; + } + ), repoOverrides ? { }, }: