Merge pull request #216474 from sternenseemann/curl-pkg-config-meta

curl: add pkg-config metadata for libcurl.pc

authored by

John Ericson and committed by
GitHub
3f3282a9 824cf452

+9 -1
+1 -1
doc/languages-frameworks/pkg-config.section.md
··· 6 7 ## Writing packages providing pkg-config modules 8 9 - Packages should set `meta.pkgConfigProvides` with the list of package config modules they provide. 10 They should also use `testers.testMetaPkgConfig` to check that the final built package matches that list. 11 Additionally, the [`validatePkgConfig` setup hook](https://nixos.org/manual/nixpkgs/stable/#validatepkgconfig), will do extra checks on to-be-installed pkg-config modules. 12
··· 6 7 ## Writing packages providing pkg-config modules 8 9 + Packages should set `meta.pkgConfigModules` with the list of package config modules they provide. 10 They should also use `testers.testMetaPkgConfig` to check that the final built package matches that list. 11 Additionally, the [`validatePkgConfig` setup hook](https://nixos.org/manual/nixpkgs/stable/#validatepkgconfig), will do extra checks on to-be-installed pkg-config modules. 12
+3
pkgs/tools/networking/curl/default.nix
··· 33 , phpExtensions 34 , python3 35 , tests 36 , fetchpatch 37 }: 38 ··· 178 # Additional checking with support http3 protocol. 179 # nginx-http3 = useThisCurl nixosTests.nginx-http3; 180 nginx-http3 = nixosTests.nginx-http3; 181 }; 182 }; 183 ··· 189 platforms = platforms.all; 190 # Fails to link against static brotli or gss 191 broken = stdenv.hostPlatform.isStatic && (brotliSupport || gssSupport); 192 }; 193 })
··· 33 , phpExtensions 34 , python3 35 , tests 36 + , testers 37 , fetchpatch 38 }: 39 ··· 179 # Additional checking with support http3 protocol. 180 # nginx-http3 = useThisCurl nixosTests.nginx-http3; 181 nginx-http3 = nixosTests.nginx-http3; 182 + pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 183 }; 184 }; 185 ··· 191 platforms = platforms.all; 192 # Fails to link against static brotli or gss 193 broken = stdenv.hostPlatform.isStatic && (brotliSupport || gssSupport); 194 + pkgConfigModules = [ "libcurl" ]; 195 }; 196 })
+5
pkgs/top-level/pkg-config/pkg-config-data.json
··· 445 "openssl" 446 ] 447 }, 448 "libecpg": { 449 "attrPath": [ 450 "postgresql"
··· 445 "openssl" 446 ] 447 }, 448 + "libcurl": { 449 + "attrPath": [ 450 + "curl" 451 + ] 452 + }, 453 "libecpg": { 454 "attrPath": [ 455 "postgresql"