-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
bzip2, zstd: Add enableStatic option #243161
Conversation
enableStatic
option
nixpkgs upstreaming PR: NixOS#243161
nixpkgs upstreaming PR: NixOS#243161
enableStatic
optionenableStatic
option
enableStatic
option, enableStatic ? with stdenv.hostPlatform; isStatic || isCygwin | ||
, disableShared ? false |
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.
Do we need to assert that not both are disabled?
I think we should name them both either enable or disable to be less confusing
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 think we should name them both either enable or disable to be less confusing
Done.
Do we need to assert that not both are disabled?
Probably not; currently that would result in no special flags being passed to ./configure
, which is probably OK and maybe handy for somebody sometime.
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.
Also the see nixpkgs#XXXXX should probably be moved into the commit message from the headline
0a6d0d6
to
fc0db2b
Compare
Not sure about it; given how short it is, I find it easier to be able to click relevant issues directly from the Github history or git log --oneline without having to expand anything. |
nixpkgs upstreaming PR: NixOS#243161
nixpkgs upstreaming PR: NixOS#243161
545c7d9
to
ef4c88d
Compare
nixpkgs upstreaming PR: NixOS#243161
nixpkgs upstreaming PR: NixOS#243161
I’m very keen on this being merged (both for simplicity and eventually for caching) — is there anything else outstanding? I’m very happy to help in any way I can! |
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.
LGTM, thank you!
Re-open of #237563 for
staging
instead ofmaster
.Description of changes
Supports #61575.
The fact that these libs currently force-disable shared libraries when static ones are enabled was found during working on nh2/static-haskell-nix#116.
FYI @jonathanlking @aherrmann
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)CC from #237563: @l0b0 @SuperSandro2000 @wegank