1{ stdenv, lib, fetchurl, cmake, perl, gnuplot }:
2
3stdenv.mkDerivation rec {
4 pname = "libcerf";
5 version = "2.4";
6
7 src = fetchurl {
8 url = "https://jugit.fz-juelich.de/mlz/libcerf/-/archive/v${version}/libcerf-v${version}.tar.gz";
9 sha256 = "sha256-CAswrlZMPavjuJJkUira9WR+x1QCFXK+5UkpaXsnbNw=";
10 };
11
12 nativeBuildInputs = [ cmake perl ];
13
14 passthru.tests = {
15 inherit gnuplot;
16 };
17
18 meta = with lib; {
19 description = "Complex error (erf), Dawson, Faddeeva, and Voigt function library";
20 homepage = "https://jugit.fz-juelich.de/mlz/libcerf";
21 license = licenses.mit;
22 maintainers = with maintainers; [ orivej ];
23 platforms = platforms.all;
24 };
25}