From aaf0fb166331dd5f469bd7e63bd993bbb6f4d524 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Tue, 17 Dec 2024 14:58:51 -0300 Subject: [PATCH] dev/list-plugins: conditionally create devshell only if devshell input is present --- flake-modules/dev/list-plugins/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake-modules/dev/list-plugins/default.nix b/flake-modules/dev/list-plugins/default.nix index 9d466e1d..05d5c5ce 100644 --- a/flake-modules/dev/list-plugins/default.nix +++ b/flake-modules/dev/list-plugins/default.nix @@ -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";