From 07e1566b7d9860f96995d2022a79c9aa1a36b743 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Sat, 3 Jan 2015 18:36:25 +0100 Subject: [PATCH] fetchurl: add mirrors for OpenBSD (close #5551) This changes source URLs for openssh and libressl accordingly. --- pkgs/build-support/fetchurl/mirrors.nix | 9 +++++++++ pkgs/development/libraries/libressl/default.nix | 2 +- pkgs/tools/networking/openssh/default.nix | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/fetchurl/mirrors.nix b/pkgs/build-support/fetchurl/mirrors.nix index 9641378f0185..e7cd60533686 100644 --- a/pkgs/build-support/fetchurl/mirrors.nix +++ b/pkgs/build-support/fetchurl/mirrors.nix @@ -431,4 +431,13 @@ rec { http://mysql.mirrors.pair.com/Downloads/ http://cdn.mysql.com/Downloads/ ]; + + # OpenBSD mirrors + openbsd = [ + http://ftp.openbsd.org/pub/OpenBSD/ + ftp://ftp.nluug.nl/pub/OpenBSD/ + ftp://ftp-stud.fht-esslingen.de/pub/OpenBSD/ + ftp://ftp.halifax.rwth-aachen.de/pub/OpenBSD/ + ftp://mirror.switch.ch/pub/OpenBSD/ + ]; } diff --git a/pkgs/development/libraries/libressl/default.nix b/pkgs/development/libraries/libressl/default.nix index f77e9a313775..fbeea0573d7f 100644 --- a/pkgs/development/libraries/libressl/default.nix +++ b/pkgs/development/libraries/libressl/default.nix @@ -5,7 +5,7 @@ stdenv.mkDerivation rec { version = "2.0.5"; src = fetchurl { - url = "http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${name}.tar.gz"; + url = "mirror://openbsd/LibreSSL/${name}.tar.gz"; sha256 = "16pwgmj90k10pf03il39lnck5kqw59hj0fp2qhmgsgmrvssn6m1z"; }; diff --git a/pkgs/tools/networking/openssh/default.nix b/pkgs/tools/networking/openssh/default.nix index 19957de5d1c8..10990829b0af 100644 --- a/pkgs/tools/networking/openssh/default.nix +++ b/pkgs/tools/networking/openssh/default.nix @@ -21,7 +21,7 @@ stdenv.mkDerivation rec { name = "openssh-6.7p1"; src = fetchurl { - url = "http://ftp.nluug.nl/pub/OpenBSD/OpenSSH/portable/${name}.tar.gz"; + url = "mirror://openbsd/OpenSSH/portable/${name}.tar.gz"; sha256 = "01smf9pvn2sk5qs80gkmc9acj07ckawi1b3xxyysp3c5mr73ky5j"; };