Skip to content

Comments

[WIP] darwin/apple-sdk: add parse-sdk#111658

Draft
holymonson wants to merge 1 commit intoNixOS:stagingfrom
holymonson:parse-sdk
Draft

[WIP] darwin/apple-sdk: add parse-sdk#111658
holymonson wants to merge 1 commit intoNixOS:stagingfrom
holymonson:parse-sdk

Conversation

@holymonson
Copy link
Contributor

Motivation for this change

WIP. See below.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Feb 2, 2021
@thefloweringash
Copy link
Member

Don't know if this is helpful here, but i had (yet another) go at integrating stubs with a rewriting helper (https://github.com/thefloweringash/rewrite-tbd) in thefloweringash@a42a53c.

@holymonson
Copy link
Contributor Author

The purpose I work on this is the current frameworks.nix seems not right, and I can't find out why adding those depends. For example, it states

Accelerate          = [ CoreWLAN IOBluetooth ];

But Accelerate is a calculation framework, which should not be related to wlan nor bluetooth. So as many others I ckecked, the result generated by this PR doesn't matched the original frameworks.nix, I doubt we are using some wrong depends all the time. (Of course, not many packages are using them actually.)

@holymonson
Copy link
Contributor Author

Don't know if this is helpful here, but i had (yet another) go at integrating stubs with a rewriting helper (https://github.com/thefloweringash/rewrite-tbd) in thefloweringash@a42a53c.

@thefloweringash your rewrite-tbd seems trying to analyze and fix reexports during installPhase. I was thinking maybe we could parse sdk in advance, extracting the information on which .tbd to fix and what path to be replaced, then a simple substituteInPlace may do the job. But I don't know if this could work on 11.0 because I'm still running on 10.15, and I only find 2 reexports in 10.12 sdk.

@stale
Copy link

stale bot commented Aug 4, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants