dev/list-plugins: conditionally create devshell only if devshell input is present

This commit is contained in:
Heitor Augusto 2024-12-17 14:58:51 -03:00
parent f4b7fd46f6
commit aaf0fb1663
No known key found for this signature in database

View file

@ -1,4 +1,4 @@
{ self, ... }:
{ inputs, self, ... }:
{
perSystem =
{
@ -33,6 +33,8 @@
list-plugins --root-path ${self} > $out
'';
}
// lib.optionalAttrs (inputs.devshell ? flakeModule) {
devshells.default.commands = [
{
name = "list-plugins";