"Fix lib.types.derivations.shell's check" (#7)
Some checks failed
buildbot/nix-eval Build done.
Some checks failed
buildbot/nix-eval Build done.
"`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: #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>
This commit is contained in:
parent
7d94b7f665
commit
cadfaabc85
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue