mirror of
https://github.com/nix-community/flakelight.git
synced 2024-11-22 15:33:10 +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
|
{ writeShellApplication
|
||||||
|
, coreutils
|
||||||
, nix
|
, nix
|
||||||
, git
|
, git
|
||||||
, gnutar
|
, gnutar
|
||||||
}:
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "pre-commit";
|
name = "pre-commit";
|
||||||
runtimeInputs = [ nix git gnutar ];
|
runtimeInputs = [ coreutils nix git gnutar ];
|
||||||
text = ''
|
text = ''
|
||||||
TREE=$(mktemp -d)
|
TREE=$(mktemp -d)
|
||||||
git archive "$(git write-tree)" | tar -xC "$TREE"
|
git archive "$(git write-tree)" | tar -xC "$TREE"
|
||||||
|
Loading…
Reference in New Issue
Block a user