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
darwin.stdenv: remove openssl #21101
Conversation
@LnL7, thanks for your PR! By analyzing the history of the files in this pull request, we identified @aneeshusa, @vcunat and @chaoflow to be potential reviewers. |
Can you elaborate on what your goal is here? Is it to reduce closure size? If so, how much does it improve that situation? |
The main thing I would like is to make diff with the linux stdenv smaller, the main things that I would like to get rid of are |
Ah okay!
…On Mon, Dec 12, 2016 at 14:52 Daiderd Jordan ***@***.***> wrote:
The main thing I would like is to make diff with the linux stdenv smaller,
the main things that I would like to get rid of are curl and openssl.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#21101 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAKP4tZDBBq954xLqStGhy-AoVeR5Ufks5rHaYCgaJpZM4LKpZr>
.
|
I think the main thing that brings in a lot of stuff is cmake, I'm not sure why it uses |
Probably because it's nice for us to not have a bunch of different versions
of things floating around. If we need to apply a patch or fix to OpenSSL,
people might be surprised that CMake isn't using them because it bundles
its own
…On Mon, Dec 12, 2016 at 14:58 Daiderd Jordan ***@***.***> wrote:
I think the main thing that brings in a lot of stuff is cmake, I'm not
sure why it uses --system-libs.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#21101 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAKP-k2NZU__n9BhCoPFyN3BqHanwAAks5rHadSgaJpZM4LKpZr>
.
|
It doesn't pull in openssl directly, it's stuff like curl and libarchive. |
-e 's|-llzo2|-L${lzo}/lib -llzo2|' | ||
'' + optionalString withOpenssl '' | ||
sed -i $lib/lib/libarchive.la \ | ||
-e 's|-lcrypto|-L${openssl.out}/lib -lcrypto| |
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.
I missed a quote here.
Closing in favor of #21596 |
Motivation for this change
Together with #21078 this will get rid of
openssl
andlzo
in the darwin stdenv.I'm testing a branch WIP with #21078, #21099 and #21101.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)