nixos/pkgs/helix/default.nix

23 lines
408 B
Nix
Raw Normal View History

{
inputs,
2025-06-02 10:46:36 +08:00
system,
callPackage,
2025-06-02 10:46:36 +08:00
symlinkJoin,
makeWrapper,
}: let
2025-06-02 10:46:36 +08:00
inherit (inputs.helix.packages."${system}") helix;
runtime = callPackage ./runtime.nix {};
2025-01-17 18:01:19 +08:00
in
2025-06-02 10:46:36 +08:00
symlinkJoin {
name = "helix-wrapped";
paths = [helix];
inherit (helix) meta;
buildInputs = [
2025-06-02 10:46:36 +08:00
makeWrapper
];
postBuild = ''
wrapProgram $out/bin/hx \
--set HELIX_RUNTIME ${runtime}
'';
}