From 6c9c7342a8394d120fad1b43a55899a23d2d0a85 Mon Sep 17 00:00:00 2001 From: Acid Bong Date: Wed, 4 Jun 2025 13:27:37 +0300 Subject: [PATCH 1/2] evil-helix: use lambda instead of rec attrs --- pkgs/by-name/ev/evil-helix/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ev/evil-helix/package.nix b/pkgs/by-name/ev/evil-helix/package.nix index 4bef9ecc3d47..074219d0c704 100644 --- a/pkgs/by-name/ev/evil-helix/package.nix +++ b/pkgs/by-name/ev/evil-helix/package.nix @@ -7,14 +7,14 @@ rustPlatform, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (final: { pname = "evil-helix"; version = "20250601"; src = fetchFromGitHub { owner = "usagi-flow"; repo = "evil-helix"; - rev = "release-${version}"; + tag = "release-${final.version}"; hash = "sha256-bsl9ltPXEhkcnnHFAXQMyBCh1qd+UBV0XK2EcJOe+eg="; }; @@ -50,4 +50,4 @@ rustPlatform.buildRustPackage rec { mainProgram = "hx"; maintainers = with lib.maintainers; [ thiagokokada ]; }; -} +}) From 122adcf55abee4de61f60d6b0c1674775e26bc79 Mon Sep 17 00:00:00 2001 From: Acid Bong Date: Wed, 4 Jun 2025 13:27:52 +0300 Subject: [PATCH 2/2] helix: use lambda instead of rec attrs --- pkgs/by-name/he/helix/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/he/helix/package.nix b/pkgs/by-name/he/helix/package.nix index b26a4d913e47..c041b78f6622 100644 --- a/pkgs/by-name/he/helix/package.nix +++ b/pkgs/by-name/he/helix/package.nix @@ -8,14 +8,14 @@ nix-update-script, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (final: { pname = "helix"; version = "25.07.1"; # This release tarball includes source code for the tree-sitter grammars, # which is not ordinarily part of the repository. src = fetchzip { - url = "https://github.com/helix-editor/helix/releases/download/${version}/helix-${version}-source.tar.xz"; + url = "https://github.com/helix-editor/helix/releases/download/${final.version}/helix-${final.version}-source.tar.xz"; hash = "sha256-Pj/lfcQXRWqBOTTWt6+Gk61F9F1UmeCYr+26hGdG974="; stripRoot = false; }; @@ -56,7 +56,7 @@ rustPlatform.buildRustPackage rec { meta = { description = "Post-modern modal text editor"; homepage = "https://helix-editor.com"; - changelog = "https://github.com/helix-editor/helix/blob/${version}/CHANGELOG.md"; + changelog = "https://github.com/helix-editor/helix/blob/${final.version}/CHANGELOG.md"; license = lib.licenses.mpl20; mainProgram = "hx"; maintainers = with lib.maintainers; [ @@ -65,4 +65,4 @@ rustPlatform.buildRustPackage rec { zowoq ]; }; -} +})