fixup: use lib.optional instead of lib.mkIf

This commit is contained in:
Dmitriy Pleshevskiy 2022-11-02 04:04:35 +03:00
parent 23fce1be6c
commit 3463a6c419
Signed by: pleshevskiy
GPG Key ID: 1B59187B161C0215
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@
buildPlugin = name: vimUtils.buildVimPluginFrom2Nix {
name = name;
src = getAttr name inputs;
patches = lib.mkIf
patches = lib.optional
(pathExists ./patches/${name})
(map
(fn: ./patches/${name}/${fn})