Skip to content
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

This resolves crypto++ build problems on OSX #7756

Merged
merged 1 commit into from
May 11, 2015
Merged

This resolves crypto++ build problems on OSX #7756

merged 1 commit into from
May 11, 2015

Conversation

ericbmerritt
Copy link
Contributor

This should also resolve #6150 and #6157 in a way that doesn't break other platforms. It essentially changes the makefile from using libtool to ar directly. As a note: I have only tested this in OSX 10.9.5 with some of the ocaml packages that depend on crypto++.

@@ -8,7 +8,9 @@ stdenv.mkDerivation rec {
sha256 = "0x1mqpz1v071cfrw4grbw7z734cxnpry1qh2b6rsmcx6nkyd5gsw";
};

patches = stdenv.lib.optional (stdenv.system != "i686-cygwin") ./dll.patch;
patches = [ (stdenv.lib.optional (stdenv.system != "i686-cygwin") ./dll.patch)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is going to cause a mass-rebuild on linux because patches will evaluate to [ ./dll.patch [] ] instead of [ ./dll.patch ]. Can you try

 (stdenv.lib.optional (stdenv.system != "i686-cygwin") ./dll.patch) ++ (stdenv.lib.optional stdenv.isDarwin ./GNUmakefile.patch)

instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gridaphobe done, and thanks.

@domenkozar domenkozar added the 6.topic: darwin Running or building packages on Darwin label May 10, 2015
gridaphobe added a commit that referenced this pull request May 11, 2015
This resolves crypto++ build problems on OSX
@gridaphobe gridaphobe merged commit 84e1c27 into NixOS:master May 11, 2015
@ericbmerritt ericbmerritt deleted the fix-osx-crypto++ branch May 25, 2015 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

crypto++ does not build on OS X
3 participants