diff options
| author | Yohann Boniface <edhyjox@gmail.com> | 2025-08-09 05:50:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-09 05:50:37 +0200 |
| commit | 1c46a14ffc14aa4be9c795bb174c34e82ad3ec9b (patch) | |
| tree | a6b9cd84d8d4859ebdf6aca71b51463a8e756fa0 | |
| parent | ipe: migrate to by-name (#431767) (diff) | |
| parent | helix: use lambda instead of rec attrs (diff) | |
| download | nixpkgs-1c46a14ffc14aa4be9c795bb174c34e82ad3ec9b.tar.gz | |
helix, evil-helix: use lambdas instead of `rec` attrs (#413862)
| -rw-r--r-- | pkgs/by-name/ev/evil-helix/package.nix | 6 | ||||
| -rw-r--r-- | pkgs/by-name/he/helix/package.nix | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/by-name/ev/evil-helix/package.nix b/pkgs/by-name/ev/evil-helix/package.nix index c5be73ed8193..cb029f85ffe2 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="; }; @@ -49,4 +49,4 @@ rustPlatform.buildRustPackage rec { mainProgram = "hx"; maintainers = with lib.maintainers; [ thiagokokada ]; }; -} +}) diff --git a/pkgs/by-name/he/helix/package.nix b/pkgs/by-name/he/helix/package.nix index 29adcbacb0f1..24807a948a21 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; }; @@ -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 ]; }; -} +}) |
