mirror of
https://github.com/RGBCube/alejandra
synced 2025-08-01 04:57:44 +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.url = "github:numtide/treefmt";
|
||||||
treefmt.inputs.flake-utils.follows = "flakeUtils";
|
treefmt.inputs.flake-utils.follows = "flakeUtils";
|
||||||
treefmt.inputs.nixpkgs.follows = "nixpkgs";
|
treefmt.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
devshell.url = "github:numtide/devshell";
|
|
||||||
};
|
};
|
||||||
outputs =
|
outputs =
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -62,14 +61,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
devShell =
|
devShell =
|
||||||
devshell.mkShell
|
nixpkgs.mkShell
|
||||||
{
|
{
|
||||||
imports = [ "${ devshell.extraModulesDir }/git/hooks.nix" ];
|
name = "Alejandra";
|
||||||
git.hooks = {
|
|
||||||
enable = true;
|
|
||||||
pre-commit.text = builtins.readFile ./pre-commit.sh;
|
|
||||||
};
|
|
||||||
name = "alejandra";
|
|
||||||
packages = [
|
packages = [
|
||||||
fenix.rust-analyzer
|
fenix.rust-analyzer
|
||||||
fenix.latest.clippy
|
fenix.latest.clippy
|
||||||
|
@ -83,21 +77,6 @@
|
||||||
nixpkgs.nodePackages.prettier-plugin-toml
|
nixpkgs.nodePackages.prettier-plugin-toml
|
||||||
nixpkgs.shfmt
|
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