forked from extern/flakelight
Add coreutils to pre-commit-hook to specify mktemp
This commit is contained in:
parent
c9b8d986e1
commit
ef5d482ea6
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user