-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
pkgsStatic: make OpenSSL 1.1 compile #77542
Conversation
pkgs/top-level/static.nix
Outdated
openssl = (super.openssl_1_1.override { static = true; }).overrideAttrs (o: { | ||
configureFlags = (removeUnknownConfigureFlags o.configureFlags) ++ [ | ||
"no-shared" | ||
]; |
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.
Please explain the rationale of the above with comments, otherwise others will just find unexplained magic incantations :)
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.
makes sense, done in a new commit!
pkgs/top-level/static.nix
Outdated
# See https://wiki.openssl.org/index.php/Compilation_and_Installation#Configure_Options | ||
# for a comprehensive list. | ||
configureFlags = (removeUnknownConfigureFlags o.configureFlags) ++ [ | ||
"no-shared" |
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.
could we move this into the openssl expression and add it in case static == true
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.
Hey @FRidh, thanks for your review. That does make sense, as with all the other derivations.
I (obviously) missed that when porting over from my own overlay. Just pushed a new commit that moves the static configuration to the openssl derivation.
@FRidh friendly ping |
Motivation for this change
I've been using this in my own overlays and it's working well for me. Opening a PR to get feedback and to have it built by CI in case I'm overlooking something.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)