mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
flake/devshell: make devshell
optional
as this isn't used by consumers, they should be able to remove this input via `inputs.nixvim.inputs.devshell.follows = ""`
This commit is contained in:
parent
22a6678279
commit
2f21379b8c
1 changed files with 4 additions and 3 deletions
|
@ -1,15 +1,16 @@
|
|||
{ inputs, ... }:
|
||||
{ lib, inputs, ... }:
|
||||
{
|
||||
imports = [ inputs.devshell.flakeModule ];
|
||||
imports = lib.optional (inputs.devshell ? flakeModule) inputs.devshell.flakeModule;
|
||||
|
||||
perSystem =
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
{
|
||||
lib.optionalAttrs (inputs.devshell ? flakeModule) {
|
||||
devshells.default = {
|
||||
devshell.startup.pre-commit.text = config.pre-commit.installationScript;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue