2025-01-17 14:35:18 +08:00
|
|
|
{
|
|
|
|
|
inputs,
|
2025-10-28 23:22:41 +08:00
|
|
|
stdenv,
|
2025-03-11 23:49:16 +08:00
|
|
|
callPackage,
|
2025-10-18 21:24:33 +08:00
|
|
|
buildEnv,
|
2025-07-13 06:04:55 +08:00
|
|
|
lib,
|
2025-11-09 06:25:03 +08:00
|
|
|
}: let
|
2025-10-28 23:22:41 +08:00
|
|
|
inherit (stdenv.hostPlatform) system;
|
2025-06-02 10:46:36 +08:00
|
|
|
inherit (inputs.helix.packages."${system}") helix;
|
2025-11-09 06:25:03 +08:00
|
|
|
runtime = callPackage ./runtime.nix {};
|
2025-10-18 21:24:33 +08:00
|
|
|
helix' = helix.overrideAttrs (
|
2025-11-09 06:25:03 +08:00
|
|
|
_final: prev: let
|
2025-10-18 21:24:33 +08:00
|
|
|
helix-runtime = buildEnv {
|
|
|
|
|
name = "helix-runtime";
|
|
|
|
|
paths = [
|
|
|
|
|
runtime
|
|
|
|
|
prev.env.HELIX_DEFAULT_RUNTIME
|
|
|
|
|
];
|
|
|
|
|
};
|
2025-11-09 06:25:03 +08:00
|
|
|
in {
|
2025-10-18 21:24:33 +08:00
|
|
|
env.HELIX_DEFAULT_RUNTIME = toString helix-runtime;
|
|
|
|
|
}
|
|
|
|
|
);
|
2025-01-17 18:01:19 +08:00
|
|
|
in
|
2025-11-09 06:25:03 +08:00
|
|
|
helix'
|
|
|
|
|
// {
|
|
|
|
|
passthru =
|
|
|
|
|
(helix'.passthru or {})
|
|
|
|
|
// {
|
|
|
|
|
languages = lib.pipe "${helix.src}/languages.toml" [
|
|
|
|
|
builtins.readFile
|
|
|
|
|
builtins.fromTOML
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
}
|