xcodeenv: make the login keychain the default, before the generated keychain gets discarded. Otherwise, the keychain becomes corrupt

This commit is contained in:
Sander van der Burg 2014-10-27 17:24:35 +01:00
parent 4a58f4da53
commit 8436f4d871

View File

@ -46,7 +46,10 @@ let
else sdk;
# The following is to prevent repetition
deleteKeychain = "security delete-keychain $keychainName";
deleteKeychain = ''
security default-keychain -s login.keychain
security delete-keychain $keychainName
'';
in
stdenv.mkDerivation {
name = stdenv.lib.replaceChars [" "] [""] name;