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
apple_sdk: broken link update #73984
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't work for me:
# cat test.nix
with import <nixpkgs> { };
fetchurl {
url =
"http://swcdn.apple.com/content/downloads/33/36/041-90419-A_7JJ4H9ZHO2/xs88ob5wjz6riz7g6764twblnvksusg4ps/DevSDK_OSX1012.pkg";
sha256 = "1sggc70rypqwcjwr7ciavw8sczwll16cwqxdxrbw7r2qvy3b0nhx";
}
# nix-build test.nix --option substituters ""
these derivations will be built:
/nix/store/x76mzld15zspnyf312g52hmxhqz5hqkg-DevSDK_OSX1012.pkg.drv
building '/nix/store/x76mzld15zspnyf312g52hmxhqz5hqkg-DevSDK_OSX1012.pkg.drv'...
trying http://swcdn.apple.com/content/downloads/33/36/041-90419-A_7JJ4H9ZHO2/xs88ob5wjz6riz7g6764twblnvksusg4ps/DevSDK_OSX1012.pkg
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 20.4M 100 20.4M 0 0 11.3M 0 0:00:01 0:00:01 --:--:-- 11.3M
hash mismatch in fixed-output derivation '/nix/store/hxgqrabm865wl8nglyp6cw2g858nf0b2-DevSDK_OSX1012.pkg':
wanted: sha256:1sggc70rypqwcjwr7ciavw8sczwll16cwqxdxrbw7r2qvy3b0nhx
got: sha256:13xq34sb7383b37hwy076gnhf96prpk1b4087p87xnwswxbrisih
error: build of '/nix/store/x76mzld15zspnyf312g52hmxhqz5hqkg-DevSDK_OSX1012.pkg.drv' failed
Hmm that's odd it does for me.
|
Once I extract, the contents appear to be identical:
|
Should we run xar in postFetch? |
Running nix-prefetch-url on machines in the other parts of the world I still get
|
Are you sure you reproduced it correctly? This is exactly what happens in the stdenv.
|
This agrees with what I observe:
|
Oh I see. Perhaps I didn't test correctly yesterday, we can change the hash and target staging instead. |
Weird, it worked for me. I was able to build On the side note, if I run
which I haven't ever seen before. |
@dredozubov Could you please rebase to staging? |
6f0e8a5
to
1eb1891
Compare
@GrahamcOfBorg eval @dredozubov You did exactly what we asked, thank you. The issue with reviewers is a known one. One possible workaround is to first force push a common commit of both master and staging into your PR branch, then change the target branch of your PR on github (at this time your PR will have no changes), then you push current staging + your changes back to your PR branch. This time made me realise that we should really document this procedure. |
Found an issue on PR retargeting procedure #48491 |
(cherry picked from commit 7233afc)
Motivation for this change
Apple DevSDK for OS X Sierra(10.12) became unavailable recently, so trying to build apple_sdk leads to this:
Things done
DevSDK link updated to the one still available. I'm leaving #73744 as a discussion for a possible DevSDK update.
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @NixOS/darwin-maintainers
This change is