Skip to content

Let’s compile the Mac OS X SecurityTool ourselves - #4326

Merged
shlevy merged 1 commit into
NixOS:masterfrom
copumpkin:mac-purity
Oct 1, 2014
Merged

shlevy merged 1 commit into
NixOS:masterfrom
copumpkin:mac-purity

Conversation

@copumpkin

Copy link
Copy Markdown
Member

This allows us to compile SecurityTool ourselves. There are several more Apple opensource projects that can be compiled this way that I'll slowly add.

Remaining sources of impurity:

  • Reference to absolute path to Xcode. This should be integrated with the xcode derivation (and the iOS wrapper chain that exists under mobile development) but it's not obvious how to do that yet.
  • Absolute reference to xcodebuild.

Adding this should make it possible for #3629 to work reasonably cleanly.

@Fuuzetsu Fuuzetsu added 0.kind: enhancement Add something new or improve an existing system. 6.topic: darwin Running or building packages on Darwin and removed 6.topic: darwin Running or building packages on Darwin labels Sep 30, 2014

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably best to just use the absolute path to the sdk folder on the system; otherwise, anything depending on osx_sdk will try to pull down a substitute from Hydra, which is probably not good for legal and practical reasons.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe if I just mark it as unfree? I wanted to bundle the SDK up so we could construct it in other ways.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should be sufficient, I think.

@copumpkin

Copy link
Copy Markdown
Member Author

Pushed an amended commit with unfree licenses on the two SDKs (don't want hydra caching them, and I think that'll stop that). SecurityTool itself is under the APSL 2.0.

@copumpkin

Copy link
Copy Markdown
Member Author

Now that I have a fetchadc in #4327, we should be able to refer to the Mac OS SDK and xcodebuild in the store, but I don't have time tonight to set those up.

@copumpkin

Copy link
Copy Markdown
Member Author

@shlevy your wish is my command

@shlevy
shlevy merged commit 58ea86b into NixOS:master Oct 1, 2014

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The environment variable SDKROOT already contains the path to the SDK, so no reason to hard-code it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough. I'm going to be changing this to (at least optionally) build on top of my fetchadc function soon, so I'll make sure this is sensible when I get back to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.kind: enhancement Add something new or improve an existing system. 6.topic: darwin Running or building packages on Darwin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants