mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
mariadb: provide multiple src url mirrors
Both mariadb.com and mariadb.org appear to be canonical upstream sources, and have identical sha256 hashes at these URLs. For the third-party mirrors, if we are just going to provide one URL, it should be an HTTPS url instead of FTP or SSH, which many users may not be able to access due to network security configurations.
This commit is contained in:
parent
c51ac5eb33
commit
3bb305515f
1 changed files with 5 additions and 2 deletions
|
@ -25,7 +25,10 @@ common = rec { # attributes common to both builds
|
|||
version = "10.2.15";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://downloads.mariadb.org/f/mariadb-${version}/source/mariadb-${version}.tar.gz";
|
||||
urls = [
|
||||
"https://downloads.mariadb.org/f/mariadb-${version}/source/mariadb-${version}.tar.gz"
|
||||
"https://downloads.mariadb.com/MariaDB/mariadb-${version}/source/mariadb-${version}.tar.gz"
|
||||
];
|
||||
sha256 = "04ds6vkb7k2lqpcdz663z4ll1jx1zz2hqxz5nj7gs8pwb18j1pik";
|
||||
name = "mariadb-${version}.tar.gz";
|
||||
};
|
||||
|
@ -180,7 +183,7 @@ connector-c = stdenv.mkDerivation rec {
|
|||
version = "2.3.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://downloads.mariadb.org/interstitial/connector-c-${version}/mariadb-connector-c-${version}-src.tar.gz/from/http%3A//ftp.hosteurope.de/mirror/archive.mariadb.org/?serve";
|
||||
url = "https://downloads.mariadb.org/interstitial/connector-c-${version}/mariadb-connector-c-${version}-src.tar.gz/from/http%3A//nyc2.mirrors.digitalocean.com/mariadb/";
|
||||
sha256 = "15iy5iqp0njbwbn086x2dq8qnbkaci7ydvi84cf5z8fxvljis9vb";
|
||||
name = "mariadb-connector-c-${version}-src.tar.gz";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue