mariadb-connector-c: switch links over to github

github links have slightly fresher versions.
This commit is contained in:
Sergei Trofimovich 2023-11-28 07:01:22 +00:00
parent c76b72caa4
commit 5de4edd389
4 changed files with 8 additions and 6 deletions

View File

@ -2,5 +2,5 @@
callPackage ./. (args // {
version = "3.1.21";
hash = "sha256-PovyQvomT8+vGWS39/QjLauiGkSiuqKQpTrSXdyVyow=";
hash = "sha256-guN3Rcsb/EV4rxPE3yhJRSsT1+z44zUetg7ZBA4WjIc=";
})

View File

@ -2,5 +2,5 @@
callPackage ./. (args // {
version = "3.2.7";
hash = "sha256-nXGWJI5ml8Ccc+Fz/psoIEX1XsnXrnQ8HrrQi56lbdo=";
hash = "sha256-F7s9fcbJiz6lsWrvlTpY+ZET8MPwlyWPKJZOvHEwBvo=";
})

View File

@ -2,5 +2,5 @@
callPackage ./. (args // {
version = "3.3.5";
hash = "sha256-ynLrJvbbK++nfkj/lm9xvNPLRLM72Lu4ELZebQEcHlw=";
hash = "sha256-RLHx8PyfbfIDr6X6ky5/w0XsGMFd+v5PgmQHvYOaf+k=";
})

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, cmake
{ lib, stdenv, fetchFromGitHub, cmake
, curl, openssl, zlib, zstd
, libiconv
, version, hash, ...
@ -13,8 +13,10 @@ in stdenv.mkDerivation {
pname = "mariadb-connector-c";
inherit version;
src = fetchurl {
url = "https://downloads.mariadb.com/Connectors/c/connector-c-${version}/mariadb-connector-c-${version}-src.tar.gz";
src = fetchFromGitHub {
owner = "mariadb-corporation";
repo = "mariadb-connector-c";
rev = "v${version}";
inherit hash;
};