2022-10-22 04:20:00 +00:00
|
|
|
{ stdenv, lib, fetchurl, cmake, perl, gnuplot }:
|
2017-12-10 16:47:36 +00:00
|
|
|
|
2019-11-29 22:25:48 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcerf";
|
2023-08-23 07:03:17 +00:00
|
|
|
version = "2.4";
|
2017-12-10 16:47:36 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-11-29 22:25:48 +00:00
|
|
|
url = "https://jugit.fz-juelich.de/mlz/libcerf/-/archive/v${version}/libcerf-v${version}.tar.gz";
|
2023-08-23 07:03:17 +00:00
|
|
|
sha256 = "sha256-CAswrlZMPavjuJJkUira9WR+x1QCFXK+5UkpaXsnbNw=";
|
2017-12-10 16:47:36 +00:00
|
|
|
};
|
|
|
|
|
2019-11-29 22:25:48 +00:00
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
|
|
|
2022-10-22 04:20:00 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit gnuplot;
|
|
|
|
};
|
|
|
|
|
2017-12-10 16:47:36 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Complex error (erf), Dawson, Faddeeva, and Voigt function library";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://jugit.fz-juelich.de/mlz/libcerf";
|
2017-12-10 16:47:36 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|