From 626f52e72b7d917a5b7667fdb4b98eff8178e5dd Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Mon, 7 Jul 2025 18:47:27 +0200 Subject: [PATCH] lux-cli: use finalAttrs pattern --- pkgs/by-name/lu/lux-cli/package.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/lu/lux-cli/package.nix b/pkgs/by-name/lu/lux-cli/package.nix index 7103d7c452ea..cdfdd3caee6f 100644 --- a/pkgs/by-name/lu/lux-cli/package.nix +++ b/pkgs/by-name/lu/lux-cli/package.nix @@ -14,7 +14,7 @@ rustPlatform, versionCheckHook, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "lux-cli"; version = "0.7.4"; @@ -22,7 +22,7 @@ rustPlatform.buildRustPackage rec { src = fetchFromGitHub { owner = "nvim-neorocks"; repo = "lux"; - tag = "v0.7.4"; + tag = "v${finalAttrs.version}"; hash = "sha256-m8GSs2gBw+WzDOBciOQHi7n4923XCd7z1TbfTnfJzUA="; }; @@ -33,7 +33,7 @@ rustPlatform.buildRustPackage rec { nativeInstallCheckInputs = [ versionCheckHook ]; - versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}"; + versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}"; versionCheckProgramArg = "--version"; doInstallCheck = true; @@ -78,7 +78,7 @@ rustPlatform.buildRustPackage rec { with first-class support for Nix and Neovim. ''; homepage = "https://nvim-neorocks.github.io/"; - changelog = "https://github.com/nvim-neorocks/lux/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/nvim-neorocks/lux/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.lgpl3Plus; maintainers = with lib.maintainers; [ mrcjkb @@ -86,4 +86,4 @@ rustPlatform.buildRustPackage rec { platforms = lib.platforms.all; mainProgram = "lx"; }; -} +})