helix, evil-helix: use lambdas instead of rec attrs (#413862)

This commit is contained in:
Yohann Boniface
2025-08-09 05:50:37 +02:00
committed by GitHub
2 changed files with 7 additions and 7 deletions

View File

@@ -7,14 +7,14 @@
rustPlatform, rustPlatform,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage (final: {
pname = "evil-helix"; pname = "evil-helix";
version = "20250601"; version = "20250601";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "usagi-flow"; owner = "usagi-flow";
repo = "evil-helix"; repo = "evil-helix";
rev = "release-${version}"; tag = "release-${final.version}";
hash = "sha256-bsl9ltPXEhkcnnHFAXQMyBCh1qd+UBV0XK2EcJOe+eg="; hash = "sha256-bsl9ltPXEhkcnnHFAXQMyBCh1qd+UBV0XK2EcJOe+eg=";
}; };
@@ -49,4 +49,4 @@ rustPlatform.buildRustPackage rec {
mainProgram = "hx"; mainProgram = "hx";
maintainers = with lib.maintainers; [ thiagokokada ]; maintainers = with lib.maintainers; [ thiagokokada ];
}; };
} })

View File

@@ -8,14 +8,14 @@
nix-update-script, nix-update-script,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage (final: {
pname = "helix"; pname = "helix";
version = "25.07.1"; version = "25.07.1";
# This release tarball includes source code for the tree-sitter grammars, # This release tarball includes source code for the tree-sitter grammars,
# which is not ordinarily part of the repository. # which is not ordinarily part of the repository.
src = fetchzip { 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="; hash = "sha256-Pj/lfcQXRWqBOTTWt6+Gk61F9F1UmeCYr+26hGdG974=";
stripRoot = false; stripRoot = false;
}; };
@@ -55,7 +55,7 @@ rustPlatform.buildRustPackage rec {
meta = { meta = {
description = "Post-modern modal text editor"; description = "Post-modern modal text editor";
homepage = "https://helix-editor.com"; 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; license = lib.licenses.mpl20;
mainProgram = "hx"; mainProgram = "hx";
maintainers = with lib.maintainers; [ maintainers = with lib.maintainers; [
@@ -64,4 +64,4 @@ rustPlatform.buildRustPackage rec {
zowoq zowoq
]; ];
}; };
} })