···1-{lib, stdenv, fetchurl, mpfr}:
2stdenv.mkDerivation rec {
3 pname = "mpfi";
4 version = "1.5.4";
5- file_nr = "37331";
06 src = fetchurl {
7 # NOTE: the file_nr is whats important here. The actual package name (including the version)
8 # is ignored. To find out the correct file_nr, go to https://gforge.inria.fr/projects/mpfi/
9 # and click on Download in the section "Latest File Releases".
10- url = "https://gforge.inria.fr/frs/download.php/file/${file_nr}/mpfi-${version}.tar.bz2";
11- sha256 = "sha256-I4PUV7IIxs088uZracTOR0d7Kg2zH77AzUseuqJHGS8=";
12 };
13- buildInputs = [mpfr];
000000014 meta = {
15 inherit version;
16 description = "A multiple precision interval arithmetic library based on MPFR";
···1+{lib, stdenv, fetchurl, autoconf, automake, libtool, texinfo, mpfr}:
2stdenv.mkDerivation rec {
3 pname = "mpfi";
4 version = "1.5.4";
5+ file_nr = "38111";
6+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=";
13 };
14+15+ nativeBuildInputs = [ autoconf automake libtool texinfo ];
16+ buildInputs = [ mpfr ];
17+18+ preConfigure = ''
19+ ./autogen.sh
20+ '';
21+22 meta = {
23 inherit version;
24 description = "A multiple precision interval arithmetic library based on MPFR";