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.

authored by Karem Abdul-Samad and committed by GitHub 96d53e4b 249a78b2

+6 -5
+6 -5
pkgs/applications/editors/helix/default.nix
··· 1 - { fetchzip, lib, rustPlatform, git, installShellFiles, makeWrapper }: 2 3 rustPlatform.buildRustPackage rec { 4 pname = "helix"; ··· 14 15 cargoHash = "sha256-THzPUVcmboVJHu3rJ6rev3GrkNilZRMlitCx7M1+HBE="; 16 17 - nativeBuildInputs = [ git installShellFiles makeWrapper ]; 18 19 postInstall = '' 20 # not needed at runtime ··· 26 mkdir -p $out/share/{applications,icons/hicolor/256x256/apps} 27 cp contrib/Helix.desktop $out/share/applications 28 cp contrib/helix.png $out/share/icons/hicolor/256x256/apps 29 - ''; 30 - postFixup = '' 31 - wrapProgram $out/bin/hx --set HELIX_RUNTIME $out/lib/runtime 32 ''; 33 34 meta = with lib; {
··· 1 + { fetchzip, lib, rustPlatform, git, installShellFiles }: 2 3 rustPlatform.buildRustPackage rec { 4 pname = "helix"; ··· 14 15 cargoHash = "sha256-THzPUVcmboVJHu3rJ6rev3GrkNilZRMlitCx7M1+HBE="; 16 17 + nativeBuildInputs = [ git installShellFiles ]; 18 + 19 + preBuild = '' 20 + export HELIX_DEFAULT_RUNTIME="$out/lib/runtime" 21 + ''; 22 23 postInstall = '' 24 # not needed at runtime ··· 30 mkdir -p $out/share/{applications,icons/hicolor/256x256/apps} 31 cp contrib/Helix.desktop $out/share/applications 32 cp contrib/helix.png $out/share/icons/hicolor/256x256/apps 33 ''; 34 35 meta = with lib; {