From 4da456ccc93d706c3f90d96a81de8c1ad6d3cc2f Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Thu, 7 Jul 2022 13:13:54 -0700 Subject: [PATCH] nix: pass makeWrapperArgs to wrapProgram Even though in the default package this list is empty, it is still useful to apply extra wrapper args downstream. For example, one may wish to wrap Helix with the `PATH` set to include various language servers by default if not installed with the `--suffix` arg. Full list of possible args: https://github.com/NixOS/nixpkgs/blob/1c70b694fe0fece5ae74beb747a40f1b7237d251/pkgs/build-support/setup-hooks/make-wrapper.sh#L14-L35 --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index c8bd02aa7828..1f3de892c9af 100644 --- a/flake.nix +++ b/flake.nix @@ -63,7 +63,7 @@ postFixup = '' if [ -f "$out/bin/hx" ]; then - wrapProgram "$out/bin/hx" --set HELIX_RUNTIME "${runtimeDir}" + wrapProgram "$out/bin/hx" ''${makeWrapperArgs[@]} --set HELIX_RUNTIME "${runtimeDir}" fi ''; };