From cadfaabc853d20f2bc20bad794fcbe520ea48f13 Mon Sep 17 00:00:00 2001 From: Austreelis <austreelis@noreply.git.auxolotl.org> 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 <dev@austreelis.net> Reviewed-on: https://git.auxolotl.org/auxolotl/labs/pulls/7 Reviewed-by: isabel roses <isabel@isabelroses.com> Reviewed-by: Jake Hamilton <jake.hamilton@hey.com> Co-authored-by: Austreelis <austreelis@noreply.git.auxolotl.org> Co-committed-by: Austreelis <austreelis@noreply.git.auxolotl.org> --- 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; }; };