From d88309158fbf0bf2d13bec68e9e54f7d5b7fedbd Mon Sep 17 00:00:00 2001 From: Acid Bong Date: Wed, 21 May 2025 14:09:16 +0300 Subject: [PATCH] neovim-gtk: use `finalAttrs`, remove `with lib` --- pkgs/by-name/ne/neovim-gtk/package.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ne/neovim-gtk/package.nix b/pkgs/by-name/ne/neovim-gtk/package.nix index 44ec67d0fb25..d1483fc8e71a 100644 --- a/pkgs/by-name/ne/neovim-gtk/package.nix +++ b/pkgs/by-name/ne/neovim-gtk/package.nix @@ -10,14 +10,14 @@ vte-gtk4, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "neovim-gtk"; version = "1.0.4"; src = fetchFromGitHub { owner = "Lyude"; - repo = pname; - rev = "v${version}"; + repo = "neovim-gtk"; + tag = "v${finalAttrs.version}"; hash = "sha256-inva7pYwOw3bXvFeKZ4aKSQ65iCat5HxM+NME8jN4/I="; }; @@ -42,11 +42,13 @@ rustPlatform.buildRustPackage rec { make PREFIX=$out install-resources ''; - meta = with lib; { + meta = { description = "Gtk ui for neovim"; homepage = "https://github.com/Lyude/neovim-gtk"; - license = licenses.gpl3Only; - maintainers = with maintainers; [ aleksana ]; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ + aleksana + ]; mainProgram = "nvim-gtk"; }; -} +})