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

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})