nixos/pkgs/helix/package.nix
ulic-youthlic 1319168f0b
Update flake inputs
1. Use `stdenv.hostPlatform.system` instead of `system`.
2. Use `runCommand` instead of `runCommandNoCC`.
3. Add new nixpkgs instance for neochat.
4. Set niri config to null when other GUI module.
2025-11-02 04:09:52 +08:00

36 lines
679 B
Nix

{
inputs,
stdenv,
callPackage,
buildEnv,
lib,
}:
let
inherit (stdenv.hostPlatform) system;
inherit (inputs.helix.packages."${system}") helix;
runtime = callPackage ./runtime.nix { };
helix' = helix.overrideAttrs (
_final: prev:
let
helix-runtime = buildEnv {
name = "helix-runtime";
paths = [
runtime
prev.env.HELIX_DEFAULT_RUNTIME
];
};
in
{
env.HELIX_DEFAULT_RUNTIME = toString helix-runtime;
}
);
in
helix'
// {
passthru = (helix'.passthru or { }) // {
languages = lib.pipe "${helix.src}/languages.toml" [
builtins.readFile
builtins.fromTOML
];
};
}