Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nixos/tests/haproxy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
client =
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.curlHTTP3 ];
environment.systemPackages = [ pkgs.curl ];
};
};
testScript = ''
Expand Down
2 changes: 1 addition & 1 deletion nixos/tests/nginx-http3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ builtins.listToAttrs (
client =
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.curlHTTP3 ];
environment.systemPackages = [ pkgs.curl ];
networking = {
interfaces.eth1 = {
ipv4.addresses = [
Expand Down
2 changes: 1 addition & 1 deletion nixos/tests/rustls-libssl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ in
client =
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.curlHTTP3 ];
environment.systemPackages = [ pkgs.curl ];
networking = {
interfaces.eth1 = {
ipv4.addresses = [
Expand Down
6 changes: 3 additions & 3 deletions nixos/tests/sing-box.nix
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ in
];

environment.systemPackages = [
pkgs.curlHTTP3
pkgs.curl
pkgs.iproute2
];

Expand Down Expand Up @@ -308,7 +308,7 @@ in
];

environment.systemPackages = [
pkgs.curlHTTP3
pkgs.curl
pkgs.iproute2
];

Expand Down Expand Up @@ -369,7 +369,7 @@ in
(builtins.readFile ./common/acme/server/ca.cert.pem)
];

environment.systemPackages = [ pkgs.curlHTTP3 ];
environment.systemPackages = [ pkgs.curl ];

systemd.services.sing-box.serviceConfig.ExecStartPost = [
"+${tproxyPost}/bin/exe"
Expand Down
2 changes: 1 addition & 1 deletion nixos/tests/web-servers/h2o/basic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ in
{ pkgs, ... }:
{
environment.systemPackages = [
pkgs.curlHTTP3
pkgs.curl
];

services.h2o = {
Expand Down
14 changes: 4 additions & 10 deletions pkgs/by-name/cu/curlMinimal/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
http3Support ? false,
nghttp3,
ngtcp2,
quictls,
websocketSupport ? false,
idnSupport ? false,
libidn2,
Expand Down Expand Up @@ -85,10 +84,6 @@ assert
]) > 1
);

let
openssl' = if http3Support then quictls else openssl;
in

stdenv.mkDerivation (finalAttrs: {
pname = "curl";
version = "8.14.1";
Expand Down Expand Up @@ -137,7 +132,7 @@ stdenv.mkDerivation (finalAttrs: {

nativeCheckInputs = [
# See https://github.com/curl/curl/pull/16928
openssl'
openssl
];

# Zlib and OpenSSL must be propagated because `libcurl.la' contains
Expand All @@ -156,7 +151,7 @@ stdenv.mkDerivation (finalAttrs: {
]
++ lib.optional idnSupport libidn2
++ lib.optional ldapSupport openldap
++ lib.optional opensslSupport openssl'
++ lib.optional opensslSupport openssl
++ lib.optional pslSupport libpsl
++ lib.optional rtmpSupport rtmpdump
++ lib.optional scpSupport libssh2
Expand Down Expand Up @@ -190,7 +185,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.withFeatureAs brotliSupport "brotli" (lib.getDev brotli))
(lib.withFeatureAs gnutlsSupport "gnutls" (lib.getDev gnutls))
(lib.withFeatureAs idnSupport "libidn2" (lib.getDev libidn2))
(lib.withFeatureAs opensslSupport "openssl" (lib.getDev openssl'))
(lib.withFeatureAs opensslSupport "openssl" (lib.getDev openssl))
(lib.withFeatureAs scpSupport "libssh2" (lib.getDev libssh2))
(lib.withFeatureAs wolfsslSupport "wolfssl" (lib.getDev wolfssl))
]
Expand Down Expand Up @@ -255,8 +250,7 @@ stdenv.mkDerivation (finalAttrs: {
useThisCurl = attr: attr.override { curl = finalAttrs.finalPackage; };
in
{
inherit opensslSupport;
openssl = openssl';
inherit opensslSupport openssl;
tests = {
withCheck = finalAttrs.finalPackage.overrideAttrs (_: {
doCheck = true;
Expand Down
7 changes: 2 additions & 5 deletions pkgs/by-name/ht/https-dns-proxy/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@
cmake,
gtest,
c-ares,
curlHTTP3,
curl,
libev,
}:

let
curl' = curlHTTP3;
in
stdenv.mkDerivation rec {
pname = "https-dns-proxy";
# there are no stable releases (yet?)
Expand All @@ -38,7 +35,7 @@ stdenv.mkDerivation rec {

buildInputs = [
c-ares
curl'
curl
libev
];

Expand Down
8 changes: 3 additions & 5 deletions pkgs/by-name/ng/nghttp2/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
enableHttp3 ? false,
ngtcp2,
nghttp3,
quictls,
enableJemalloc ? false,
jemalloc,
enablePython ? false,
Expand Down Expand Up @@ -46,11 +45,11 @@ assert enableJemalloc -> enableApp;

stdenv.mkDerivation rec {
pname = "nghttp2";
version = "1.66.0";
version = "1.67.1";

src = fetchurl {
url = "https://github.com/nghttp2/nghttp2/releases/download/v${version}/nghttp2-${version}.tar.bz2";
hash = "sha256-HUhK03NU35/KuXCBTpOl3KkaUyVug/T1jdcxGcYyEBc=";
hash = "sha256-37cg1CQ6eVBYn6JjI3i+te6a1ELpS3lLO44soowdfio=";
};

outputs = [
Expand All @@ -68,15 +67,14 @@ stdenv.mkDerivation rec {
c-aresMinimal
libev
zlib
openssl
]
++ lib.optionals (enableApp && !enableHttp3) [ openssl ]
++ lib.optionals (enableGetAssets) [ libxml2 ]
++ lib.optionals (enableHpack) [ jansson ]
++ lib.optionals (enableJemalloc) [ jemalloc ]
++ lib.optionals (enableHttp3) [
ngtcp2
nghttp3
quictls
]
++ lib.optionals (enablePython) [ python3 ];

Expand Down
17 changes: 7 additions & 10 deletions pkgs/by-name/ng/nghttp3/package.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchurl,
cmake,
curlHTTP3,
curl,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "nghttp3";
version = "1.11.0";

src = fetchFromGitHub {
owner = "ngtcp2";
repo = "nghttp3";
tag = "v${finalAttrs.version}";
hash = "sha256-8WQfXzzF3K0IJNectrE1amQ6Njq4pZslrcVun6Uhi6E=";
fetchSubmodules = true;
src = fetchurl {
url = "https://github.com/ngtcp2/nghttp3/releases/download/v${finalAttrs.version}/nghttp3-${finalAttrs.version}.tar.bz2";
hash = "sha256-AAKlyoVtsFmqbcac9zL7sA2aHnPteISPXUjyYh8gyoo=";
};

outputs = [
Expand All @@ -33,12 +30,12 @@ stdenv.mkDerivation (finalAttrs: {
doCheck = true;

passthru.tests = {
inherit curlHTTP3;
inherit curl;
};

meta = {
homepage = "https://github.com/ngtcp2/nghttp3";
changelog = "https://github.com/ngtcp2/nghttp3/releases/tag/${finalAttrs.src.tag}";
changelog = "https://github.com/ngtcp2/nghttp3/releases/tag/v${finalAttrs.version}";
description = "Implementation of HTTP/3 mapping over QUIC and QPACK in C";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
Expand Down
24 changes: 10 additions & 14 deletions pkgs/development/libraries/ngtcp2/default.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchurl,
cmake,
brotli,
libev,
nghttp3,
quictls,
openssl,
withJemalloc ? false,
jemalloc,
curlHTTP3,
curl,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "ngtcp2";
version = "1.14.0";

src = fetchFromGitHub {
owner = "ngtcp2";
repo = "ngtcp2";
# must match version usage in meta.changelog
tag = "v${finalAttrs.version}";
hash = "sha256-5Pmk752i/lgO/os2SegevGN+MKaVuQii2HrVWaR15Gg=";
fetchSubmodules = true;
version = "1.15.1";

src = fetchurl {
url = "https://github.com/ngtcp2/ngtcp2/releases/download/v${finalAttrs.version}/ngtcp2-${finalAttrs.version}.tar.bz2";
hash = "sha256-Bbf6cvldAd3fvDVuHL89VPx1h1wvY2CGW5gIsDNM75c=";
};

outputs = [
Expand All @@ -36,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: {
brotli
libev
nghttp3
quictls
openssl
]
++ lib.optional withJemalloc jemalloc;

Expand All @@ -47,7 +43,7 @@ stdenv.mkDerivation (finalAttrs: {
doCheck = true;

passthru.tests = {
inherit curlHTTP3;
inherit curl;
};

meta = {
Expand Down
1 change: 1 addition & 0 deletions pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ mapAliases {
cudaPackages_12_4 = throw "CUDA 12.4 has been removed from Nixpkgs, as it is unmaintained upstream and depends on unsupported compilers"; # Added 2025-08-08
cudaPackages_12_5 = throw "CUDA 12.5 has been removed from Nixpkgs, as it is unmaintained upstream and depends on unsupported compilers"; # Added 2025-08-08
cups-kyodialog3 = cups-kyodialog; # Added 2022-11-12
curlHTTP3 = lib.warnOnInstantiate "'curlHTTP3' has been removed, as 'curl' now has HTTP/3 support enabled by default" curl; # Added 2025-08-22
cutemarked-ng = throw "'cutemarked-ng' has been removed due to lack of maintenance upstream. Consider using 'kdePackages.ghostwriter' instead"; # Added 2024-12-27
cvs_fast_export = throw "'cvs_fast_export' has been renamed to/replaced by 'cvs-fast-export'"; # Converted to throw 2024-10-17
cyber = throw "cyber has been removed, as it does not build with supported Zig versions"; # Added 2025-08-09
Expand Down
5 changes: 1 addition & 4 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2643,15 +2643,12 @@ with pkgs;
websocketSupport = true;
};

curlHTTP3 = curl.override {
http3Support = true;
};

curl = curlMinimal.override (
{
idnSupport = true;
pslSupport = true;
zstdSupport = true;
http3Support = true;
}
// lib.optionalAttrs (!stdenv.hostPlatform.isStatic) {
brotliSupport = true;
Expand Down
Loading