From 4d24188185ea32b915235189ef0ac724739a597d Mon Sep 17 00:00:00 2001 From: LeixB Date: Tue, 11 Apr 2023 20:07:57 +0200 Subject: [PATCH 1/2] vimPlugins.sniprun: 1.2.13 -> 1.3.0 --- pkgs/applications/editors/vim/plugins/overrides.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index c7a4b2fc96ec..969481780e96 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -852,18 +852,18 @@ self: super: { sniprun = let - version = "1.2.13"; + version = "1.3.0"; src = fetchFromGitHub { owner = "michaelb"; repo = "sniprun"; rev = "v${version}"; - hash = "sha256-VDLBktZChRgorJt/V/wuFQn/SL4yOZIElmntEQEi8Tc="; + hash = "sha256-6UDjrrEtOuB+lrCZVBO4BcZm78qwq8YbQcXAdjNbicY="; }; sniprun-bin = rustPlatform.buildRustPackage { pname = "sniprun-bin"; inherit version src; - cargoSha256 = "sha256-cJwmuwsC81fSH36TRU7xGzlR4pVdjsw73uRaH1uWY+0="; + cargoSha256 = "sha256-ghXYUgXqXvK9RySG/hQR5zpLsyk6L9Htb/UYgMPyWUk="; nativeBuildInputs = [ makeWrapper ]; From 3c59da4b6dea9db1b6da0202970ad8ff76291a60 Mon Sep 17 00:00:00 2001 From: LeixB Date: Tue, 11 Apr 2023 20:08:24 +0200 Subject: [PATCH 2/2] vimPlugins.sniprun: fix missing documentation --- pkgs/applications/editors/vim/plugins/overrides.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index 969481780e96..d480b97b0146 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -884,6 +884,11 @@ self: super: { substituteInPlace lua/sniprun.lua --replace '@sniprun_bin@' ${sniprun-bin} ''; + postInstall = '' + mkdir $out/doc + ln -s $out/docs/sniprun.txt $out/doc/sniprun.txt + ''; + propagatedBuildInputs = [ sniprun-bin ]; };