Merge pull request #302623 from kas2020-commits/patch-1

helix: remove wrapper
This commit is contained in:
Aleksana 2024-04-09 22:25:00 +08:00 committed by GitHub
commit d316b8227f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,4 @@
{ fetchzip, lib, rustPlatform, git, installShellFiles, makeWrapper }:
{ fetchzip, lib, rustPlatform, git, installShellFiles }:
rustPlatform.buildRustPackage rec {
pname = "helix";
@ -14,7 +14,9 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-THzPUVcmboVJHu3rJ6rev3GrkNilZRMlitCx7M1+HBE=";
nativeBuildInputs = [ git installShellFiles makeWrapper ];
nativeBuildInputs = [ git installShellFiles ];
env.HELIX_DEFAULT_RUNTIME = "${placeholder "out"}/lib/runtime";
postInstall = ''
# not needed at runtime
@ -27,9 +29,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";