Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchurl, cmake, perl, gnuplot }:
2
3stdenv.mkDerivation rec {
4 pname = "libcerf";
5 version = "2.3";
6
7 src = fetchurl {
8 url = "https://jugit.fz-juelich.de/mlz/libcerf/-/archive/v${version}/libcerf-v${version}.tar.gz";
9 sha256 = "sha256-zO7+5G6EzojQdRAzkLT50Ew05Lw7ltczKSw2g21PcGU=";
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}