Skip to content

Commit

Permalink
Merge pull request #295148 from trofi/curl-impersonate-to-gcc-13
Browse files Browse the repository at this point in the history
curl-impersonate: switch to `gcc-13`, disable blanket `-Werror`
  • Loading branch information
wegank authored Mar 21, 2024
2 parents 01743eb + d15ca5b commit e90d6c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
11 changes: 9 additions & 2 deletions pkgs/tools/networking/curl-impersonate/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
, python3
, ninja
, perl
, autoconf
# autoconf-2.71 fails on problematic configure:
# checking curl version... 7.84.0
# ./configure: line 6713: syntax error near unexpected token `;;'
, autoconf269
, automake
, libtool
, darwin
Expand Down Expand Up @@ -40,6 +43,10 @@ let
./curl-impersonate-0.5.2-fix-shebangs.patch
];

# Disable blanket -Werror to fix build on `gcc-13` related to minor
# warnings on `boringssl`.
env.NIX_CFLAGS_COMPILE = "-Wno-error";

strictDeps = true;

nativeBuildInputs = lib.optionals stdenv.isDarwin [
Expand All @@ -52,7 +59,7 @@ let
python3.pkgs.gyp
ninja
perl
autoconf
autoconf269
automake
libtool
unzip
Expand Down
8 changes: 3 additions & 5 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7273,11 +7273,9 @@ with pkgs;

curlWithGnuTls = curl.override { gnutlsSupport = true; opensslSupport = false; };

curl-impersonate =
builtins.mapAttrs (_: pin-to-gcc12-if-gcc13)
(darwin.apple_sdk_11_0.callPackage ../tools/networking/curl-impersonate { });
curl-impersonate-ff = pin-to-gcc12-if-gcc13 curl-impersonate.curl-impersonate-ff;
curl-impersonate-chrome = pin-to-gcc12-if-gcc13 curl-impersonate.curl-impersonate-chrome;
curl-impersonate = darwin.apple_sdk_11_0.callPackage ../tools/networking/curl-impersonate { };
curl-impersonate-ff = curl-impersonate.curl-impersonate-ff;
curl-impersonate-chrome = curl-impersonate.curl-impersonate-chrome;

curlie = callPackage ../tools/networking/curlie { };

Expand Down

0 comments on commit e90d6c5

Please sign in to comment.