25 lines
679 B
Nix
25 lines
679 B
Nix
{ stdenv, lib, fetchurl, cmake, perl, gnuplot }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libcerf";
|
|
version = "2.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://jugit.fz-juelich.de/mlz/libcerf/-/archive/v${version}/libcerf-v${version}.tar.gz";
|
|
sha256 = "sha256-ihzYt/rgS4KpUWglISm4wbrKCYooX/jT8leB3q0Ut1o=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
|
|
passthru.tests = {
|
|
inherit gnuplot;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Complex error (erf), Dawson, Faddeeva, and Voigt function library";
|
|
homepage = "https://jugit.fz-juelich.de/mlz/libcerf";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ orivej ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|