-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A simple ADC downloader for upcoming darwin goodness #4327
Conversation
I think you could also set |
Now that I think about it, unless someone goes out of their way to give Hydra credentials to access ADC, nothing bad can happen. |
Ideally, someday we'd have Hydra run with someone's credentials to test the packages, but not cache the outputs. Not sure if that's possible today. |
I don't think this is a good idea. Packages in Nixpkgs must be installable automatically, and functions like |
What's a solution to get this behavior? It's an integral part of the pure stdenv we're building for Darwin.
|
The way I see it, this is necessary for this sort of unfree thing and it doesn't seem all that different from the unfree check that refuses to build anything unless you add config. Right?
|
An alternative approach would be to expect that the user has the downloadable file already in the store via However, I do like that Regardless, the user need not specify the ADC user/password if they manually put the file in their store, in which case nothing is really lost by having something like |
Apologies for the bad email, was in a rush on my cellphone, but my point is just that the "installable automatically" principle is already broken for anything unfree (which refuses to install by default unless you change config), which all things going through |
People already need ADC credentials to use nix at all considering that ADC is where you get Xcode. |
ADC = Apple Developer Connection, where they host all their SDKs and other passworded downloads.
It assumes
adc_user
andadc_pass
inconfig
. Not sure of the best way to do this sort of thing, but this seems like a decent starting point. We can now use this to stuff xcode and friends into the nix store and package them nicely.Reviewers: please make sure that I'm doing the right things to prevent hydra from caching things downloaded from ADC. I'm setting unfree license on the output, but I'm not sure that's sufficient.