lang: massive amounts of parser and ast pain

This commit is contained in:
Schrottkatze 2024-04-11 03:23:03 +02:00
commit 9da157ff4a
No known key found for this signature in database
16 changed files with 900 additions and 170 deletions

View file

@ -11,41 +11,59 @@
extra-substituters = "https://devenv.cachix.org";
};
outputs = { self, nixpkgs, devenv, systems, ... } @ inputs:
let
forEachSystem = nixpkgs.lib.genAttrs (import systems);
in
{
devShells = forEachSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
({pkgs, config, ...}: {
languages.rust = {
enable = true;
channel = "nightly";
};
outputs = {
self,
nixpkgs,
devenv,
systems,
...
} @ inputs: let
forEachSystem = nixpkgs.lib.genAttrs (import systems);
in {
devShells =
forEachSystem
(system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
({
pkgs,
config,
...
}: {
languages.rust = {
enable = true;
channel = "nightly";
components = [
"rustc"
"cargo"
"clippy"
"rustfmt"
"rust-src"
];
};
pre-commit.hooks = {
clippy.enable = true;
rustfmt.enable = true;
};
pre-commit.hooks = {
clippy.enable = true;
rustfmt.enable = true;
};
packages = with pkgs; [
just nushell
ripgrep
typst typst-lsp
mold
cargo-nextest cargo-watch
];
})
packages = with pkgs; [
just
nushell
ripgrep
typst
typst-lsp
mold
cargo-nextest
cargo-watch
rust-analyzer
];
};
});
};
})
];
};
});
};
}