about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/vim/plugins/patches/image-nvim/magick.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/vim/plugins/patches/image-nvim/magick.patch')
-rw-r--r--nixpkgs/pkgs/applications/editors/vim/plugins/patches/image-nvim/magick.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/editors/vim/plugins/patches/image-nvim/magick.patch b/nixpkgs/pkgs/applications/editors/vim/plugins/patches/image-nvim/magick.patch
new file mode 100644
index 000000000000..43d93ddbd77e
--- /dev/null
+++ b/nixpkgs/pkgs/applications/editors/vim/plugins/patches/image-nvim/magick.patch
@@ -0,0 +1,11 @@
+diff --git a/lua/image/magick.lua b/lua/image/magick.lua
+index a0c5a64..e3b57d4 100644
+--- a/lua/image/magick.lua
++++ b/lua/image/magick.lua
+@@ -1,3 +1,6 @@
++package.path = package.path .. ";@nix_magick@/share/lua/5.1/?/init.lua;"
++package.path = package.path .. ";@nix_magick@/share/lua/5.1/?.lua;"
++
+ local has_magick, magick = pcall(require, "magick")
+ 
+ ---@return MagickImage