From ef5d482ea6ae2bc5bb4bc274864d83640d83f453 Mon Sep 17 00:00:00 2001 From: Archit Gupta Date: Sun, 16 Apr 2023 19:59:02 -0700 Subject: [PATCH] Add coreutils to pre-commit-hook to specify mktemp --- packages/pre-commit-hook.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/pre-commit-hook.nix b/packages/pre-commit-hook.nix index 7250e39..de05ced 100644 --- a/packages/pre-commit-hook.nix +++ b/packages/pre-commit-hook.nix @@ -1,11 +1,12 @@ { writeShellApplication +, coreutils , nix , git , gnutar }: writeShellApplication { name = "pre-commit"; - runtimeInputs = [ nix git gnutar ]; + runtimeInputs = [ coreutils nix git gnutar ]; text = '' TREE=$(mktemp -d) git archive "$(git write-tree)" | tar -xC "$TREE"