lol

Merge pull request #254832 from 7c6f434c/mpfi-inria-gitlab

mpfi: switch source to INRIA GitLab

authored by

7c6f434c and committed by
GitHub
2d7b472c f2ea252d

+18 -9
+18 -9
pkgs/development/libraries/mpfi/default.nix
··· 1 - {lib, stdenv, fetchurl, autoreconfHook, texinfo, mpfr}: 1 + {lib, stdenv, fetchFromGitLab, autoreconfHook, texinfo, mpfr}: 2 2 stdenv.mkDerivation rec { 3 3 pname = "mpfi"; 4 4 version = "1.5.4"; 5 - file_nr = "38111"; 5 + 6 + src = fetchFromGitLab { 7 + domain = "gitlab.inria.fr"; 8 + owner = "mpfi"; 9 + repo = "mpfi"; 10 + 11 + # Apparently there is an upstream off-by-one-commit error in tagging 12 + # Conditional to allow auto-updaters to try new releases 13 + # TODO: remove the conditional after an upstream update 14 + # rev = version; 15 + rev = if version == "1.5.4" then 16 + "feab26bc54529417af983950ddbffb3a4c334d4f" 17 + else version; 6 18 7 - src = fetchurl { 8 - # NOTE: the file_nr is whats important here. The actual package name (including the version) 9 - # is ignored. To find out the correct file_nr, go to https://gforge.inria.fr/projects/mpfi/ 10 - # and click on Download in the section "Latest File Releases". 11 - url = "https://gforge.inria.fr/frs/download.php/file/${file_nr}/mpfi-${version}.tgz"; 12 - sha256 = "sha256-Ozk4WV1yCvF5c96vcnz8DdQcixbCCtwQOpcPSkOuOlY="; 19 + sha256 = "sha256-aj/QmJ38ifsW36JFQcbp55aIQRvOpiqLHwEh/aFXsgo="; 13 20 }; 21 + 22 + sourceRoot = "source/mpfi"; 14 23 15 24 nativeBuildInputs = [ autoreconfHook texinfo ]; 16 25 buildInputs = [ mpfr ]; 17 26 18 27 meta = { 19 28 description = "A multiple precision interval arithmetic library based on MPFR"; 20 - homepage = "https://gforge.inria.fr/projects/mpfi/"; 29 + homepage = "http://perso.ens-lyon.fr/nathalie.revol/software.html"; 21 30 license = lib.licenses.lgpl21Plus; 22 31 maintainers = [lib.maintainers.raskin]; 23 32 platforms = lib.platforms.unix;