New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pcre: fetch from HTTPS instead of FTP #44828
Conversation
It's not uncommon for enterprise environments to block FTP traffic to external sites. Since `pcre` gives an official HTTPS download URL [1] alongside the official FTP endpoint, let's use that instead. [1] https://www.pcre.org/
@@ -18,7 +18,7 @@ in stdenv.mkDerivation rec { | |||
name = "${pname}-${version}"; | |||
|
|||
src = fetchurl { | |||
url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-${version}.tar.bz2"; | |||
url = "https://ftp.pcre.org/pub/pcre/pcre-${version}.tar.bz2"; | |||
sha256 = "00ckpzlgyr16bnqx8fawa3afjgqxw5yxgs2l081vw23qi1y4pl1c"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ nix-prefetch-url https://ftp.pcre.org/pub/pcre/pcre-8.42.tar.bz2
00ckpzlgyr16bnqx8fawa3afjgqxw5yxgs2l081vw23qi1y4pl1c
Looks like we should be able to just swap this without doing any rebuilds.
@GrahamcOfBorg build pcre |
Success on aarch64-linux (full log) Attempted: pcre Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: pcre Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: pcre Partial log (click to expand)
|
zero rebuilds, LGTM. |
Success on aarch64-linux (full log) Attempted: pcre Partial log (click to expand)
|
Same change as in NixOS#44828, for the same reasons.
It's not uncommon for enterprise environments to block FTP traffic to external
sites. Since
pcre
gives an official HTTPS download URL [1] alongside theofficial FTP endpoint, let's use that instead.
[1] https://www.pcre.org/
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)