diff options
author | Robert Hensing <robert@roberthensing.nl> | 2021-12-22 13:05:55 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2021-12-22 13:13:50 +0100 |
commit | f2c5c706f47024fd477655fc34e883ce15172484 (patch) | |
tree | 167d3c3fa974291e9f24ead0d1ba473cdbfb316f /pkgs/top-level/default.nix | |
parent | cf73196411928e1dfc6784a8a1c67a467533af4c (diff) |
lib.throwIfNot: init
Diffstat (limited to 'pkgs/top-level/default.nix')
-rw-r--r-- | pkgs/top-level/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/top-level/default.nix b/pkgs/top-level/default.nix index 10d0c79b21296..e95a0db78c3cc 100644 --- a/pkgs/top-level/default.nix +++ b/pkgs/top-level/default.nix @@ -49,7 +49,7 @@ let # Rename the function arguments in let lib = import ../../lib; - throwIfNot = b: msg: if b then x: x else throw msg; + inherit (lib) throwIfNot; checked = throwIfNot (lib.isList overlays) "The overlays argument to nixpkgs must be a list." |