mirror of
https://github.com/nix-community/flakelight.git
synced 2024-11-22 07:23:11 +01:00
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