mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
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 afterf5e2ff1ed8in #103421. This change makes make sure the directory exists before adding to it. (cherry picked from commitd686ded08c)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user