chore: Use nixfmt reformat all nix source code

This commit is contained in:
ulic-youthlic 2026-07-04 23:11:21 +08:00
parent 1cdf00cefe
commit 11337b8f9e
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
184 changed files with 2349 additions and 1943 deletions

View file

@ -4,12 +4,14 @@
callPackage,
buildEnv,
lib,
}: let
}:
let
inherit (stdenv.hostPlatform) system;
inherit (inputs.helix.packages."${system}") helix;
runtime = callPackage ./runtime.nix {};
runtime = callPackage ./runtime.nix { };
helix' = helix.overrideAttrs (
_final: prev: let
_final: prev:
let
helix-runtime = buildEnv {
name = "helix-runtime";
paths = [
@ -17,25 +19,22 @@
prev.env.HELIX_DEFAULT_RUNTIME
];
};
in {
in
{
env.HELIX_DEFAULT_RUNTIME = toString helix-runtime;
cargoBuildFeatures =
(prev.cargoBuildFeatures or [])
++ [
"git"
"steel"
];
cargoBuildFeatures = (prev.cargoBuildFeatures or [ ]) ++ [
"git"
"steel"
];
}
);
in
helix'
// {
passthru =
(helix'.passthru or {})
// {
languages = lib.pipe "${helix.src}/languages.toml" [
builtins.readFile
fromTOML
];
};
}
helix'
// {
passthru = (helix'.passthru or { }) // {
languages = lib.pipe "${helix.src}/languages.toml" [
builtins.readFile
fromTOML
];
};
}