1
Fork 0
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:
Kevin Amado 2022-01-30 18:17:29 -05:00
parent a065143815
commit 956593faf0
No known key found for this signature in database
GPG key ID: FFF341057F503148

View file

@ -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";
}
];
};
}
);