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 f5e2ff1ed8 in #103421. This
change makes make sure the directory exists before adding to it.

(cherry picked from commit d686ded08c)
This commit is contained in:
Andrew Childs
2020-11-15 02:32:52 +09:00
committed by freezeboy
parent 85e1b382fd
commit fcc4fce7d0

View File

@@ -255,6 +255,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