Skip to content

Commit

Permalink
Throw when NUR wasn't given a pkgs argument but required it for the eval
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Jul 18, 2018
1 parent fd17db5 commit 71e8b18
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
let
defaultPkgs = import <nixpkgs> {};
in

{ nurpkgs ? defaultPkgs # For nixpkgs dependencies used by NUR itself
, pkgs ? defaultPkgs # Dependencies to call NUR repos with
{ nurpkgs ? import <nixpkgs> {} # For nixpkgs dependencies used by NUR itself
# Dependencies to call NUR repos with
, pkgs ? throw "NUR call didn't receive a pkgs argument, but the evaluation requires it."
}:

let
Expand Down

0 comments on commit 71e8b18

Please sign in to comment.