git: fix darwin build (#103774)
The install step for the darwin specific $out/etc/gitconfig file assumed that $out/etc already existed. This assumption is no longer true after f5e2ff1ed80dac74bfb0afa92f34641cce098a49 in #103421. This change makes make sure the directory exists before adding to it.
This commit is contained in:
parent
7b70e8d236
commit
d686ded08c
1 changed files with 1 additions and 0 deletions
|
@ -249,6 +249,7 @@ stdenv.mkDerivation {
|
|||
'')
|
||||
+ stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
# enable git-credential-osxkeychain by default if darwin
|
||||
mkdir -p $out/etc
|
||||
cat > $out/etc/gitconfig << EOF
|
||||
[credential]
|
||||
helper = osxkeychain
|
||||
|
|
Loading…
Reference in a new issue