dev: Fix pre-commit check
Flake lock file updates:
• Updated input 'pre-commit-hooks-nix':
'github:cachix/pre-commit-hooks.nix/0db2e67ee49910adfa13010e7f012149660af7f0' (2024-02-07)
→ 'github:hercules-ci/pre-commit-hooks.nix/d43e4853f578739ac2264eadcd18faa5aeb41889' (2024-03-19)
(cherry picked from commit 32a59f0f81b70a95ec7fda598b5823e96d3f8270)
This commit is contained in:
parent
4f12dc0127
commit
08781aeef7
2 changed files with 11 additions and 9 deletions
11
flake.lock
generated
11
flake.lock
generated
|
|
@ -293,15 +293,16 @@
|
||||||
"nixpkgs-stable": "nixpkgs-stable"
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1707297608,
|
"lastModified": 1710862133,
|
||||||
"narHash": "sha256-ADjo/5VySGlvtCW3qR+vdFF4xM9kJFlRDqcC9ZGI8EA=",
|
"narHash": "sha256-+e62qOvW6svSU59SOVniBodNe0WkIYgfwXPazUyEBNE=",
|
||||||
"owner": "cachix",
|
"owner": "hercules-ci",
|
||||||
"repo": "pre-commit-hooks.nix",
|
"repo": "pre-commit-hooks.nix",
|
||||||
"rev": "0db2e67ee49910adfa13010e7f012149660af7f0",
|
"rev": "d43e4853f578739ac2264eadcd18faa5aeb41889",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "cachix",
|
"owner": "hercules-ci",
|
||||||
|
"ref": "rustfmt-all",
|
||||||
"repo": "pre-commit-hooks.nix",
|
"repo": "pre-commit-hooks.nix",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@
|
||||||
nix-cargo-integration.url = "github:yusdacra/nix-cargo-integration";
|
nix-cargo-integration.url = "github:yusdacra/nix-cargo-integration";
|
||||||
nix-cargo-integration.inputs.nixpkgs.follows = "nixpkgs";
|
nix-cargo-integration.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
pre-commit-hooks-nix.url = "github:cachix/pre-commit-hooks.nix";
|
# https://github.com/cachix/pre-commit-hooks.nix/pull/410
|
||||||
|
pre-commit-hooks-nix.url = "github:hercules-ci/pre-commit-hooks.nix/rustfmt-all";
|
||||||
pre-commit-hooks-nix.inputs.nixpkgs.follows = "nixpkgs";
|
pre-commit-hooks-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -32,8 +33,8 @@
|
||||||
pre-commit.settings.hooks.nixpkgs-fmt.enable = true;
|
pre-commit.settings.hooks.nixpkgs-fmt.enable = true;
|
||||||
# Temporarily disable rustfmt due to configuration issues
|
# Temporarily disable rustfmt due to configuration issues
|
||||||
# pre-commit.settings.hooks.rustfmt.enable = true;
|
# pre-commit.settings.hooks.rustfmt.enable = true;
|
||||||
# Override to pass `--all`
|
# New configuration for rustfmt
|
||||||
# pre-commit.settings.hooks.rustfmt.entry = lib.mkForce "${pkgs.rustfmt}/bin/cargo-fmt fmt --all --manifest-path ./rust/Cargo.toml -- --color always";
|
pre-commit.settings.settings.rust.cargoManifestPath = "./rust/Cargo.toml";
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
name = "nix-bindings-devshell";
|
name = "nix-bindings-devshell";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue