Commit Graph

304 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Thomas Gerbet
a3b2a3a4b3 curl: apply patch for CVE-2024-8096
https://curl.se/docs/CVE-2024-8096.html
2024-09-15 11:31:53 +02:00
github-actions[bot]
d8c78f272c
Merge staging-next into staging 2024-08-30 18:04:32 +00:00
github-actions[bot]
b857d97eec
Merge master into staging-next 2024-08-30 18:04:02 +00:00
Martin Weinelt
cda8a98a72
curl: fix rustls ca-certificates detection (#331754) 2024-08-30 19:03:30 +02:00
Pol Dellaiera
caef6dd355
curl: enable configure flag --enable-versioned-symbols
This flag enable versioned symbols in CURL shared library.
2024-08-23 09:05:09 +02:00
K900
5c68540f8b Merge remote-tracking branch 'origin/staging-next' into staging 2024-08-22 13:20:38 +03:00
Philip Taron
6c28c49df2
curl: remove with statements 2024-08-18 06:32:23 -07:00
Winter
00e4f26329 curl: fix SIGPIPE regression in 8.9.1
(lib)curl 8.9.1 introduces a bug which causes various programs to crash [0] [1].
curl's developers have no plans to make a new patch release at this time [2].

[0]: https://github.com/curl/curl/issues/14344
[1]: https://github.com/transmission/transmission/issues/7035
[2]: https://github.com/curl/curl/issues/14344#issuecomment-2269497552
2024-08-09 15:10:57 -04:00
Winter
208069013e curl: rm unused patch file
Was missed in 89b8ad6898.
2024-08-09 15:10:57 -04:00
Martin Weinelt
bd04690676 curl: 8.9.0 -> 8.9.1
https://curl.se/ch/8.9.1.html
https://curl.se/docs/CVE-2024-7264.html

Fixes: CVE-2024-7264
2024-08-09 15:10:57 -04:00
kpcyrd
aedaa16a24 curl: fix rustls ca-certificates detection 2024-08-02 14:01:15 +02:00
github-actions[bot]
203fa1d4a2
Merge staging-next into staging 2024-08-02 00:02:35 +00:00
Sandro
83d2194d0e
Merge pull request #305391 from LeSuisse/rustls-ffi-0.13.0
rustls-ffi: 0.10.0 -> 0.13.0
2024-08-01 22:08:38 +02:00
Martin Weinelt
90e8307562
Merge pull request #329636 from mweinelt/curl-8.9.0
curl: 8.8.0 -> 8.9.0
2024-07-31 13:09:10 +02:00
Martin Weinelt
89b8ad6898
curl: 8.8.0 -> 8.9.0
https://curl.se/ch/8.9.0.html
https://curl.se/docs/CVE-2024-6197.html
https://curl.se/docs/CVE-2024-6874.html

Fixes: CVE-2024-6197, CVE-2024-6874
2024-07-24 13:31:42 +02:00
Thomas Gerbet
248ffcefe6 rustls-ffi: 0.10.0 -> 0.13.0
Switched to the recently introduced cargo-c build in order
to get pkg-config/.so config.

Changelog:
https://github.com/rustls/rustls-ffi/blob/v0.13.0/CHANGELOG.md
2024-07-08 18:56:24 +02:00
qubitnano
56e85096ef curl: fix ca certificates with gnutls 2024-06-16 11:25:32 -04:00
Alyssa Ross
3df6bb2c85
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/applications/blockchains/polkadot/default.nix
2024-06-09 22:47:12 +01:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Vladimír Čunát
8859736c9f
Merge #313698: curl: 8.7.1 -> 8.8.0
...into staging
2024-05-30 10:56:54 +02:00
Audrey Dutcher
846de80d1c various: Enable updateAutotoolsGnuConfigScriptsHook
Prior to August 2023, any config.guess generated by autoconf will
include a hardcoded /usr/bin/uname invocation for FreeBSD on any
architecture other than arm. This clearly doesn't work under nix.
We must then update or otherwise patch each old config.guess.
2024-05-27 11:09:28 -04:00
Alyssa Ross
437506429a
curl: 8.7.1 -> 8.8.0 2024-05-22 16:49:31 +02:00
Daniel McCarney
1ffbe2530e curl: backport unreleased curl 8.7 bugfix
Fixes errors observed with compression using curl 8.7.1 by backporting
the upstream fix. See linked issues for more information.
2024-04-24 16:47:23 -04:00
Thomas Gerbet
6ea5b5f2c5 rustls-ffi: temporarily drop passthru.tests.curl
It currently does not build but the situation is being handled upstream.
2024-04-07 18:08:45 +02:00
Thomas Gerbet
2e4e6618cb curl: 8.6.0 -> 8.7.1
Fixes CVE-2024-2466, CVE-2024-2398, CVE-2024-2379 and CVE-2024-2004.

Changes:
https://curl.se/changes.html#8_7_1
2024-04-02 11:51:57 +02:00
Alyssa Ross
817d20170d
curl.tests.static: init
We need static curl for nixStatic, so we should test that it builds
when changing curl.

This would have caught a regression introduced by
996b4ebc08 ("curl: build with public suffix list support").
2024-02-09 17:14:01 +01:00
Alyssa Ross
4ae0827699
pkgsStatic.curl: fix build
Link: https://github.com/NixOS/nixpkgs/pull/285295#issuecomment-1935911944
Fixes: 996b4ebc08 ("curl: build with public suffix list support")
2024-02-09 17:05:19 +01:00
Martin Weinelt
e6b37d5a61
curl: disable fetchpatch passthru test on darwin
`tests` seem to be something else on darwin, leading to an eval failure
on the instantiation of this test.

```
 … while evaluating the attribute 'tests.fetchpatch'

   at ./pkgs/tools/networking/curl/default.nix:182:7:

    181|       withCheck = finalAttrs.finalPackage.overrideAttrs (_: { doCheck = true; });
    182|       fetchpatch = tests.fetchpatch.simple.override { fetchpatch = (fetchpatch.override { fetchurl = useThisCurl fetchurl; }) // { version = 1; }; };
       |       ^
    183|       curlpp = useThisCurl curlpp;

 … while calling a functor (an attribute set with a '__functor' attribute)

   at ./pkgs/tools/networking/curl/default.nix:182:20:

    181|       withCheck = finalAttrs.finalPackage.overrideAttrs (_: { doCheck = true; });
    182|       fetchpatch = tests.fetchpatch.simple.override { fetchpatch = (fetchpatch.override { fetchurl = useThisCurl fetchurl; }) // { version = 1; }; };
       |                    ^
    183|       curlpp = useThisCurl curlpp;

 (stack trace truncated; use '--show-trace' to show the full trace)

 error: value is a function while a set was expected
```
2024-02-01 12:20:46 +01:00
Martin Weinelt
d4f4956702
curl: 8.5.0 -> 8.6.0
https://curl.se/changes.html#8_6_0
https://curl.se/docs/CVE-2024-0853.html

Fixes: CVE-2024-0853
2024-01-31 16:14:02 +01:00
Martin Weinelt
996b4ebc08
curl: build with public suffix list support
And make sure we pass `--without-libpsl` when it is disabled.

https://daniel.haxx.se/blog/2024/01/10/psl-in-curl/
2024-01-29 18:12:56 +01:00
Martin Weinelt
ead84fdd2b
Merge pull request #277429 from ajs124/feat/curl-ws
curl: add websocket support
2024-01-07 04:58:59 +01:00
Martin Weinelt
22922464c7
Merge pull request #272886 from r-ryantm/auto-update/curl
curl: 8.4.0 -> 8.5.0
2024-01-07 04:58:54 +01:00
annalee
84563fcd99
curl: fix ipv6 detection compile error in configure script 2023-12-30 09:44:28 +00:00
ajs124
6d432900e2 curl: add websocket support
disabled by default, enabled in curlFull
https://curl.se/docs/websocket.html
2023-12-28 23:24:45 +01:00
R. Ryantm
7be9f0f526 curl: 8.4.0 -> 8.5.0 2023-12-08 11:47:50 +00:00
Peder Bergebakken Sundt
f41aba3739 treewide: remove unreferenced patch files
Found with `fd \\.patch$ pkgs/ -x bash -c 'rg -F "{/}" pkgs/ -q || echo {}'`
2023-12-01 06:11:20 +01:00
Randy Eckenrode
028534b7d4
curl: propagate Darwin frameworks
`libcurl.la` and `curl-config --static-libs` both include the frameworks
curl needs to link, so propgate them in case dependents don’t include
those frameworks in their build inputs. This fixes building Nix and
probably other things (like netcdf).
2023-10-26 13:26:39 -04:00
Randy Eckenrode
84cf8e007f
curl: build with system frameworks
Unblocks staging-next and restores NAT64 support on Darwin.

Closes #260599
2023-10-13 18:51:06 -04:00
Weijia Wang
108f00eaae curl: fix patch 2023-10-13 17:02:14 +02:00
Weijia Wang
66681011bd Revert "curl: fixup build on darwin after update"
This reverts commit c2cce178fa.
2023-10-13 17:01:39 +02:00
Tobias Mayer
c2cce178fa
curl: fixup build on darwin after update
> checking for connect in libraries... cannot find connect
> configure: error: cannot find connect function in libraries.
2023-10-13 10:37:45 +02:00
Sophie Tauchert
9dd00ef189
curl: 8.3.0 -> 8.4.0 2023-10-11 08:43:02 +02:00
Yaya
a68ceade95 curl: 8.2.1 -> 8.3.0
- https://curl.se/changes.html#8_3_0
- https://curl.se/docs/CVE-2023-38039.html

Fixes CVE-2023-38039
2023-09-13 13:48:27 +00:00
Yaya
0d2fb00624 curl: Fix github src url 2023-09-13 13:48:27 +00:00
Vladimír Čunát
3a5c176f95
Merge branch 'master' into staging-next 2023-08-05 07:40:22 +02:00
n3oney
02d604cd68
treewide: add meta.mainProgram 2023-08-05 00:11:04 +02:00
Vladimír Čunát
b79effa1bd
curl: 8.2.0 -> 8.2.1
https://curl.se/changes.html#8_2_1
Also switch the source to .xz
2023-07-26 18:57:34 +02:00
Yaya
eb9357ac4b curl: 8.1.2 -> 8.2.0
https://curl.se/changes.html#8_2_0

Fixes CVE-2023-32001
2023-07-19 13:29:28 +00:00
Martin Weinelt
c57c018132
curl: 8.1.1 -> 8.1.2
https://curl.se/changes.html#8_1_2
2023-06-28 03:09:19 +02:00