diff options
author | Karem Abdul-Samad <kas2020@protonmail.com> | 2024-04-08 13:22:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 13:22:35 -0400 |
commit | 96d53e4b65d7ce71d88addf7ebdac95746769543 (patch) | |
tree | f00cf8a6754cffd1b6728c46813b11d2f7720a95 /pkgs/applications/editors/helix | |
parent | 249a78b2e7fc321fdcb5a006ba6986a3bbf4a2d6 (diff) |
helix: remove wrapper
Wrapper is no longer needed since https://github.com/helix-editor/helix/pull/8610. Instead, export static default runtime location at build-time to bake it in.
Diffstat (limited to 'pkgs/applications/editors/helix')
-rw-r--r-- | pkgs/applications/editors/helix/default.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/applications/editors/helix/default.nix b/pkgs/applications/editors/helix/default.nix index 698b4f8a1b16d..731bf395ba1e7 100644 --- a/pkgs/applications/editors/helix/default.nix +++ b/pkgs/applications/editors/helix/default.nix @@ -1,4 +1,4 @@ -{ fetchzip, lib, rustPlatform, git, installShellFiles, makeWrapper }: +{ fetchzip, lib, rustPlatform, git, installShellFiles }: rustPlatform.buildRustPackage rec { pname = "helix"; @@ -14,7 +14,11 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-THzPUVcmboVJHu3rJ6rev3GrkNilZRMlitCx7M1+HBE="; - nativeBuildInputs = [ git installShellFiles makeWrapper ]; + nativeBuildInputs = [ git installShellFiles ]; + + preBuild = '' + export HELIX_DEFAULT_RUNTIME="$out/lib/runtime" + ''; postInstall = '' # not needed at runtime @@ -27,9 +31,6 @@ rustPlatform.buildRustPackage rec { cp contrib/Helix.desktop $out/share/applications cp contrib/helix.png $out/share/icons/hicolor/256x256/apps ''; - postFixup = '' - wrapProgram $out/bin/hx --set HELIX_RUNTIME $out/lib/runtime - ''; meta = with lib; { description = "A post-modern modal text editor"; |