From e6c375f30517af8df9b7868f3950069771250e54 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 16 Sep 2024 19:52:44 +0200 Subject: [PATCH] vimPlugins.sniprun: 1.3.15 -> 1.3.16 Diff: https://github.com/michaelb/sniprun/compare/refs/tags/v1.3.15...v1.3.16 Changelog: https://github.com/michaelb/sniprun/releases/tag/v1.3.16 --- pkgs/applications/editors/vim/plugins/overrides.nix | 8 ++++---- .../vim/plugins/patches/sniprun/fix-paths.patch | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index d7b81e8880eb..9edd19b6b971 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -1575,12 +1575,12 @@ sniprun = let - version = "1.3.15"; + version = "1.3.16"; src = fetchFromGitHub { owner = "michaelb"; repo = "sniprun"; rev = "refs/tags/v${version}"; - hash = "sha256-8N+KUawQ6RI6sG8m9wpvJTMQyJ5j/43PRkrTPrWAREQ="; + hash = "sha256-2rVeBUkdLXUiHkd8slyiLTYQBKwgMQvIi/uyCToVBYA="; }; sniprun-bin = rustPlatform.buildRustPackage { pname = "sniprun-bin"; @@ -1590,7 +1590,7 @@ darwin.apple_sdk.frameworks.Security ]; - cargoHash = "sha256-bLki+6uMKJtk/bu+LNf2E1m/HpEG8zmnM3JI89IjmNs="; + cargoHash = "sha256-eZcWS+DWec0V9G6hBnZRUNcb3uZeSiBhn4Ed9KodFV8="; nativeBuildInputs = [ makeWrapper ]; @@ -1615,7 +1615,7 @@ meta = { homepage = "https://github.com/michaelb/sniprun/"; - changelog = "https://github.com/michaelb/sniprun/releases/tag/v${version}"; + changelog = "https://github.com/michaelb/sniprun/blob/v${version}/CHANGELOG.md"; maintainers = with lib.maintainers; [ GaetanLepage ]; }; }; diff --git a/pkgs/applications/editors/vim/plugins/patches/sniprun/fix-paths.patch b/pkgs/applications/editors/vim/plugins/patches/sniprun/fix-paths.patch index 97f1824ea623..f444a80437bc 100644 --- a/pkgs/applications/editors/vim/plugins/patches/sniprun/fix-paths.patch +++ b/pkgs/applications/editors/vim/plugins/patches/sniprun/fix-paths.patch @@ -1,15 +1,15 @@ diff --git a/lua/sniprun.lua b/lua/sniprun.lua -index fe29d1e..92d4729 100644 +index 49be442..1834566 100644 --- a/lua/sniprun.lua +++ b/lua/sniprun.lua -@@ -4,9 +4,7 @@ M.custom_highlight=false +@@ -3,9 +3,7 @@ M.ping_anwsered = 0 M.info_floatwin = {} -- See https://github.com/tjdevries/rofl.nvim/blob/632c10f2ec7c56882a3f7eda8849904bcac6e8af/lua/rofl.lua -local binary_path = vim.fn.fnamemodify( -- vim.api.nvim_get_runtime_file("lua/sniprun.lua", false)[1], ":h:h") -- .. "/target/release/sniprun" +- vim.api.nvim_get_runtime_file("lua/sniprun.lua", false)[1], ":h:h") +- .. "/target/release/sniprun" +local binary_path = "@sniprun_bin@/bin/sniprun" - local sniprun_path = vim.fn.fnamemodify( vim.api.nvim_get_runtime_file("lua/sniprun.lua", false)[1], ":p:h") .. "/.." + local sniprun_path = vim.fn.fnamemodify(vim.api.nvim_get_runtime_file("lua/sniprun.lua", false)[1], ":p:h") .. "/.."