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.
This commit is contained in:
ulic-youthlic 2025-10-28 23:22:41 +08:00
parent 0db7c6ec72
commit 1319168f0b
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
10 changed files with 186 additions and 269 deletions

View file

@ -2,7 +2,7 @@
lib,
srcs,
stdenv,
runCommandNoCCLocal,
runCommandLocal,
}:
let
buildGrammar =
@ -80,18 +80,18 @@ let
}
)
|> lib.mapAttrsToList (_: value: "ln -s ${value.value}/${value.name}.so $out/${value.name}.so");
grammarDir = runCommandNoCCLocal "helix-grammars" { } ''
grammarDir = runCommandLocal "helix-grammars" { } ''
mkdir -p $out
${builtins.concatStringsSep "\n" grammarLinks}
'';
queryDir = runCommandNoCCLocal "helix-query" { } ''
queryDir = runCommandLocal "helix-query" { } ''
mkdir -p $out
${builtins.concatStringsSep "\n" queries}
'';
in
runCommandNoCCLocal "helix-runtime" { } ''
runCommandLocal "helix-runtime" { } ''
mkdir -p $out
ln -s ${grammarDir} $out/grammars