mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-31 04:27:45 +00:00
fix: back to nixpkgs mkshell
- The setup hooks are not being correctly evaluated by the dev shell, and without this many important environment variables are not set
This commit is contained in:
parent
a065143815
commit
956593faf0
1 changed files with 2 additions and 23 deletions
25
flake.nix
25
flake.nix
|
@ -20,7 +20,6 @@
|
|||
treefmt.url = "github:numtide/treefmt";
|
||||
treefmt.inputs.flake-utils.follows = "flakeUtils";
|
||||
treefmt.inputs.nixpkgs.follows = "nixpkgs";
|
||||
devshell.url = "github:numtide/devshell";
|
||||
};
|
||||
outputs =
|
||||
inputs:
|
||||
|
@ -62,14 +61,9 @@
|
|||
};
|
||||
};
|
||||
devShell =
|
||||
devshell.mkShell
|
||||
nixpkgs.mkShell
|
||||
{
|
||||
imports = [ "${ devshell.extraModulesDir }/git/hooks.nix" ];
|
||||
git.hooks = {
|
||||
enable = true;
|
||||
pre-commit.text = builtins.readFile ./pre-commit.sh;
|
||||
};
|
||||
name = "alejandra";
|
||||
name = "Alejandra";
|
||||
packages = [
|
||||
fenix.rust-analyzer
|
||||
fenix.latest.clippy
|
||||
|
@ -83,21 +77,6 @@
|
|||
nixpkgs.nodePackages.prettier-plugin-toml
|
||||
nixpkgs.shfmt
|
||||
];
|
||||
commands = [
|
||||
{
|
||||
package = fenix.latest.cargo;
|
||||
name = "cargo";
|
||||
help = "the cargo tool";
|
||||
}
|
||||
{
|
||||
package = treefmt;
|
||||
category = "formatters";
|
||||
}
|
||||
{
|
||||
package = nixpkgs.editorconfig-checker;
|
||||
category = "formatters";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue