about summary refs log tree commit diff
path: root/pkgs/applications/editors/helix
diff options
context:
space:
mode:
authorKarem Abdul-Samad <kas2020@protonmail.com>2024-04-08 13:22:35 -0400
committerGitHub <noreply@github.com>2024-04-08 13:22:35 -0400
commit96d53e4b65d7ce71d88addf7ebdac95746769543 (patch)
treef00cf8a6754cffd1b6728c46813b11d2f7720a95 /pkgs/applications/editors/helix
parent249a78b2e7fc321fdcb5a006ba6986a3bbf4a2d6 (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.nix11
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";