From cadfaabc853d20f2bc20bad794fcbe520ea48f13 Mon Sep 17 00:00:00 2001 From: Austreelis Date: Thu, 15 Aug 2024 16:06:20 +0000 Subject: [PATCH] "Fix lib.types.derivations.shell's check" (#7) "`lib.types.derivations.shell` uses `lib.packages.isDerivation` but didn't passed an argument, making code using it fail with `error: value is a function while a Boolean was expected`" Co-authored-by: Austreelis Reviewed-on: https://git.auxolotl.org/auxolotl/labs/pulls/7 Reviewed-by: isabel roses Reviewed-by: Jake Hamilton Co-authored-by: Austreelis Co-committed-by: Austreelis --- lib/src/types/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/types/default.nix b/lib/src/types/default.nix index 48b1551..94a223c 100644 --- a/lib/src/types/default.nix +++ b/lib/src/types/default.nix @@ -579,7 +579,7 @@ lib: { ## ## @type Attrs shell = lib.types.derivation // { - check = value: lib.packages.isDerivation && builtins.hasAttr "shellPath" value; + check = value: lib.packages.isDerivation value && builtins.hasAttr "shellPath" value; }; };