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
commit 1c46a14ffc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View File

@ -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=";
};
@ -49,4 +49,4 @@ rustPlatform.buildRustPackage rec {
mainProgram = "hx";
maintainers = with lib.maintainers; [ thiagokokada ];
};
}
})

View File

@ -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;
};
@ -55,7 +55,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; [
@ -64,4 +64,4 @@ rustPlatform.buildRustPackage rec {
zowoq
];
};
}
})