Skip to content

filetransfer: set Accept-Encoding to all values supported by libcurl for transparent compression - #6694

Closed
NickCao wants to merge 4 commits into
NixOS:masterfrom
NickCao:accept-encoding
Closed

NickCao wants to merge 4 commits into
NixOS:masterfrom
NickCao:accept-encoding

Conversation

@NickCao

@NickCao NickCao commented Jun 20, 2022 •

Copy link
Copy Markdown
Member

ref: https://discourse.nixos.org/t/announcing-harmonia-a-nix-binary-cache-written-in-rust/19855
This is especially helpful when fetching large nars from binary caches that does not support compression, or having difficulties implementing it.

@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/announcing-harmonia-a-nix-binary-cache-written-in-rust/19855/3

Comment thread src/libstore/filetransfer.cc Resolved
Comment thread configure.ac
Comment on lines +193 to +202
# Check whether libcurl supports required features
PKG_CHECK_VAR([LIBCURL_SUPPORTED_FEATURES], [libcurl], [supported_features], [
m4_foreach([LIBCURL_FEATURE], [brotli, zstd], [
AC_MSG_CHECKING([whether libcurl supports feature LIBCURL_FEATURE])
AS_CASE($LIBCURL_SUPPORTED_FEATURES, [*LIBCURL_FEATURE*], [AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)
AC_MSG_ERROR([Nix requires libcurl to support feature LIBCURL_FEATURE])])
])
], [AC_MSG_ERROR([Nix requires libcurl to provide a list of supported features])])

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.

I'm not an autoconf expert, feel free to point out better ways to do this.

agbrooks pushed a commit to agbrooks/nix that referenced this pull request Sep 12, 2022
@stale stale Bot added the stale label Jan 7, 2023
Minion3665 pushed a commit to Minion3665/nix that referenced this pull request Feb 23, 2023
@NickCao NickCao closed this Feb 27, 2023
@NickCao
NickCao deleted the accept-encoding branch February 27, 2023 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants