lol
at 24.05-pre 43 lines 867 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, mpir 5, gmp 6, mpfr 7, flint 8, arb 9, antic 10}: 11 12stdenv.mkDerivation rec { 13 pname = "calcium"; 14 version = "0.4.1"; 15 16 src = fetchFromGitHub { 17 owner = "fredrik-johansson"; 18 repo = pname; 19 rev = version; 20 sha256 = "sha256-Ony2FGMnWyNqD7adGeiDtysHNZ4ClMvQ1ijVPSHJmyc="; 21 }; 22 23 buildInputs = [ mpir gmp mpfr flint arb antic ]; 24 25 configureFlags = [ 26 "--with-gmp=${gmp}" 27 "--with-mpir=${mpir}" 28 "--with-mpfr=${mpfr}" 29 "--with-flint=${flint}" 30 "--with-arb=${arb}" 31 "--with-antic=${antic}" 32 ]; 33 34 enableParallelBuilding = true; 35 36 meta = with lib; { 37 description = "A C library for exact computation with real and complex numbers"; 38 homepage = "https://fredrikj.net/calcium/"; 39 license = licenses.lgpl21Plus; 40 maintainers = with maintainers; [ smasher164 ]; 41 platforms = platforms.unix; 42 }; 43}