From 1188eddc121836b7d8c724a1d373474db8b7d517 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Wed, 30 Oct 2024 21:19:13 +0100 Subject: [PATCH] Update git-hooks --- flake.lock | 64 +++++++++++++++++++++++++-------------------------- flake.nix | 2 +- formatter.nix | 4 ++-- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/flake.lock b/flake.lock index cce6cf3..685ac50 100644 --- a/flake.lock +++ b/flake.lock @@ -112,11 +112,11 @@ "flake-compat": { "flake": false, "locked": { - "lastModified": 1673956053, - "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", "owner": "edolstra", "repo": "flake-compat", - "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", "type": "github" }, "original": { @@ -128,11 +128,11 @@ "flake-compat_2": { "flake": false, "locked": { - "lastModified": 1696426674, - "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", + "lastModified": 1673956053, + "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", "owner": "edolstra", "repo": "flake-compat", - "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", "type": "github" }, "original": { @@ -312,10 +312,33 @@ "type": "github" } }, + "git-hooks": { + "inputs": { + "flake-compat": "flake-compat", + "gitignore": "gitignore", + "nixpkgs": [ + "nixpkgs" + ], + "nixpkgs-stable": "nixpkgs-stable" + }, + "locked": { + "lastModified": 1730302582, + "narHash": "sha256-W1MIJpADXQCgosJZT8qBYLRuZls2KSiKdpnTVdKBuvU=", + "owner": "cachix", + "repo": "git-hooks.nix", + "rev": "af8a16fe5c264f5e9e18bcee2859b40a656876cf", + "type": "github" + }, + "original": { + "owner": "cachix", + "repo": "git-hooks.nix", + "type": "github" + } + }, "gitignore": { "inputs": { "nixpkgs": [ - "pre-commit-hooks", + "git-hooks", "nixpkgs" ] }, @@ -357,7 +380,7 @@ }, "kubenix": { "inputs": { - "flake-compat": "flake-compat", + "flake-compat": "flake-compat_2", "nixpkgs": [ "nixpkgs" ], @@ -698,39 +721,16 @@ "type": "github" } }, - "pre-commit-hooks": { - "inputs": { - "flake-compat": "flake-compat_2", - "gitignore": "gitignore", - "nixpkgs": [ - "nixpkgs" - ], - "nixpkgs-stable": "nixpkgs-stable" - }, - "locked": { - "lastModified": 1729104314, - "narHash": "sha256-pZRZsq5oCdJt3upZIU4aslS9XwFJ+/nVtALHIciX/BI=", - "owner": "cachix", - "repo": "git-hooks.nix", - "rev": "3c3e88f0f544d6bb54329832616af7eb971b6be6", - "type": "github" - }, - "original": { - "owner": "cachix", - "repo": "git-hooks.nix", - "type": "github" - } - }, "root": { "inputs": { "blog-pim": "blog-pim", "dns": "dns", "flake-utils": "flake-utils_2", + "git-hooks": "git-hooks", "kubenix": "kubenix", "nixhelm": "nixhelm", "nixng": "nixng", "nixpkgs": "nixpkgs_2", - "pre-commit-hooks": "pre-commit-hooks", "servers": "servers", "treefmt-nix": "treefmt-nix_3" } diff --git a/flake.nix b/flake.nix index 119d849..763a03a 100644 --- a/flake.nix +++ b/flake.nix @@ -6,7 +6,7 @@ flake-utils.url = "github:numtide/flake-utils"; treefmt-nix.url = "github:numtide/treefmt-nix"; - pre-commit-hooks = { + git-hooks = { url = "github:cachix/git-hooks.nix"; inputs.nixpkgs.follows = "nixpkgs"; }; diff --git a/formatter.nix b/formatter.nix index 3cef74a..dc0826b 100644 --- a/formatter.nix +++ b/formatter.nix @@ -3,7 +3,7 @@ nixpkgs, treefmt-nix, flake-utils, - pre-commit-hooks, + git-hooks, ... }: flake-utils.lib.eachDefaultSystem ( @@ -14,7 +14,7 @@ flake-utils.lib.eachDefaultSystem ( in { packages.formatter = treefmtWrapper; formatter = self.packages.${system}.formatter; - checks.pre-commit-check = pre-commit-hooks.lib.${system}.run { + checks.pre-commit-check = git-hooks.lib.${system}.run { src = ./.; hooks = { treefmt = {