Skip to content

Commit

Permalink
curl: Remove forcing static build on Windows (NixOS#349540)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin authored Oct 19, 2024
2 parents bfad8c2 + c6fd18f commit fc09193
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkgs/tools/networking/curl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,7 @@ stdenv.mkDerivation (finalAttrs: {
# For the 'urandom', maybe it should be a cross-system option
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
"--with-random=/dev/urandom"
++ lib.optionals stdenv.hostPlatform.isWindows [
"--disable-shared"
"--enable-static"
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Disable default CA bundle, use NIX_SSL_CERT_FILE or fallback to nss-cacert from the default profile.
# Without this curl might detect /etc/ssl/cert.pem at build time on macOS, causing curl to ignore NIX_SSL_CERT_FILE.
"--without-ca-bundle"
Expand Down

0 comments on commit fc09193

Please sign in to comment.