From 53db69631c3e42081982586f34916fec1012403c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 22 Dec 2024 01:37:44 +0000 Subject: [PATCH] neovim-unwrapped: 0.10.2 -> 0.10.3 --- pkgs/by-name/ne/neovim-unwrapped/package.nix | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ne/neovim-unwrapped/package.nix b/pkgs/by-name/ne/neovim-unwrapped/package.nix index fb185d85f6462f..59b3e92fd660de 100644 --- a/pkgs/by-name/ne/neovim-unwrapped/package.nix +++ b/pkgs/by-name/ne/neovim-unwrapped/package.nix @@ -18,6 +18,8 @@ fixDarwinDylibNames, glibcLocales ? null, procps ? null, + versionCheckHook, + nix-update-script, # now defaults to false because some tests can be flaky (clipboard etc), see # also: https://github.com/neovim/neovim/issues/16233 @@ -95,15 +97,15 @@ stdenv.mkDerivation ( in { pname = "neovim-unwrapped"; - version = "0.10.2"; + version = "0.10.3"; __structuredAttrs = true; src = fetchFromGitHub { owner = "neovim"; repo = "neovim"; - rev = "refs/tags/v${finalAttrs.version}"; - hash = "sha256-+qjjelYMB3MyjaESfCaGoeBURUzSVh/50uxUqStxIfY="; + tag = "v${finalAttrs.version}"; + hash = "sha256-nmnEyHE/HcrwK+CyJHNoLG0BqjnWleiBy0UYcJL7Ecc="; }; patches = [ @@ -246,6 +248,17 @@ stdenv.mkDerivation ( separateDebugInfo = true; + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgram = "${placeholder "out"}/bin/nvim"; + versionCheckProgramArg = [ "--version" ]; + doInstallCheck = true; + + passthru = { + updateScript = nix-update-script { }; + }; + meta = { description = "Vim text editor fork focused on extensibility and agility"; longDescription = '' @@ -257,6 +270,7 @@ stdenv.mkDerivation ( - Improve extensibility with a new plugin architecture ''; homepage = "https://www.neovim.io"; + changelog = "https://github.com/neovim/neovim/releases/tag/${finalAttrs.src.tag}"; mainProgram = "nvim"; # "Contributions committed before b17d96 by authors who did not sign the # Contributor License Agreement (CLA) remain under the Vim license.