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
@ -249,6 +249,7 @@ stdenv.mkDerivation {
|
|||||||
'')
|
'')
|
||||||
+ stdenv.lib.optionalString stdenv.isDarwin ''
|
+ stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
# enable git-credential-osxkeychain by default if darwin
|
# enable git-credential-osxkeychain by default if darwin
|
||||||
|
mkdir -p $out/etc
|
||||||
cat > $out/etc/gitconfig << EOF
|
cat > $out/etc/gitconfig << EOF
|
||||||
[credential]
|
[credential]
|
||||||
helper = osxkeychain
|
helper = osxkeychain
|
||||||
|
Loading…
x
Reference in New Issue
Block a user