Skip to content

Commit

Permalink
flake: inputs: rename pre-commit-hooks repository to git-hooks.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
trueNAHO committed Aug 23, 2024
1 parent 038c95e commit f5be08b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 52 deletions.
70 changes: 35 additions & 35 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@
url = "github:numtide/flake-utils";
};

gitHooks = {
inputs = {
flake-compat.follows = "flakeCompat";
flake-utils.follows = "flakeUtils";
nixpkgs-stable.follows = "gitHooks/nixpkgs";
nixpkgs.follows = "nixpkgs";
};

url = "github:cachix/git-hooks.nix";
};

homeManager = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/home-manager";
Expand All @@ -38,7 +49,7 @@
inputs = {
flakeUtils.follows = "flakeUtils";
nixpkgs.follows = "nixpkgs";
preCommitHooks.follows = "preCommitHooks";
preCommitHooks.follows = "gitHooks";
};

url = "github:trueNAHO/logo-nixos";
Expand Down Expand Up @@ -74,7 +85,7 @@
# [1]: https://github.com/NixOS/nixpkgs/pull/332341
nixpkgsAntoraLunrExtension.url = "github:trueNAHO/nixpkgs/antora-lunr-extension-init-at-1-0-0-alpha-8";

# pkgs.buildEnv fails with the following error due to the preCommitHooks
# pkgs.buildEnv fails with the following error due to the gitHooks
# derivation containing an empty file:
#
# The store path <PATH> is a file and can't be merged into an
Expand All @@ -93,23 +104,12 @@
home-manager.follows = "homeManager";
nix-darwin.follows = "nixDarwin";
nixpkgs.follows = "nixpkgs";
pre-commit-hooks.follows = "preCommitHooks";
pre-commit-hooks.follows = "gitHooks";
};

url = "github:nix-community/nixvim";
};

preCommitHooks = {
inputs = {
flake-compat.follows = "flakeCompat";
flake-utils.follows = "flakeUtils";
nixpkgs-stable.follows = "preCommitHooks/nixpkgs";
nixpkgs.follows = "nixpkgs";
};

url = "github:cachix/pre-commit-hooks.nix";
};

stylix = {
inputs = {
flake-compat.follows = "flakeCompat";
Expand Down Expand Up @@ -349,7 +349,7 @@
inputs.self.homeConfigurations
)
// {
preCommitHooks = inputs.preCommitHooks.lib.${system}.run {
gitHooks = inputs.gitHooks.lib.${system}.run {
hooks = {
alejandra = {
enable = true;
Expand All @@ -371,12 +371,12 @@
};

devShells.default = pkgs.mkShell {
inherit (inputs.self.checks.${system}.preCommitHooks) shellHook;
inherit (inputs.self.checks.${system}.gitHooks) shellHook;

packages = [
inputs.agenix.packages.${system}.default
inputs.homeManager.packages.${system}.default
inputs.self.checks.${system}.preCommitHooks.enabledPackages
inputs.self.checks.${system}.gitHooks.enabledPackages
inputs.self.packages.${system}.docs.nativeBuildInputs
pkgs.asciidoctor-with-extensions
pkgs.http-server
Expand Down

0 comments on commit f5be08b

Please sign in to comment.