From 3463a6c4196626c2f61eca95025dba399dafb8d9 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 2 Nov 2022 04:04:35 +0300 Subject: [PATCH] fixup: use lib.optional instead of lib.mkIf --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index d53cb6d..0ccaab1 100644 --- a/flake.nix +++ b/flake.nix @@ -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})