From 8b8dac89396fa19567f4ef9f7bca168bd44205ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Thu, 1 Dec 2022 11:56:51 +0100 Subject: [PATCH] uninstall pre-commit-hooks correctly --- .pre-commit-config.yaml | 2 +- flake.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 09f1a85..ce67dce 120000 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1 +1 @@ -/nix/store/0c3460gjwiqhy7j000ckyrk4ypcnsmlw-pre-commit-config.json \ No newline at end of file +/nix/store/kz586m4ykwc1s25dkkmkhj57l2bil858-pre-commit-config.json \ No newline at end of file diff --git a/flake.nix b/flake.nix index a62db71..2a73695 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,7 @@ mkPython = version: "python3${toString version}"; pythonVersions = map mkPython (pkgs.lib.lists.range minVersion maxVersion); mkDevShell = version: pkgs.mkShell { + inherit (pre-commit-hooks.lib."${system}".run { src = ./.; }) shellHook; buildInputs = [ pkgs.${version} pkgs.poetry ]; }; addPreCommit = shell: shell.overrideAttrs (old: {