1 { lib, mkCoqDerivation, coq, interval, compcert, flocq, bignums, version ? null }:
3 let self = mkCoqDerivation {
7 sourceRoot = "${self.src.name}/vcfloat";
9 coq_makefile -o Makefile -f _CoqProject *.v
11 defaultVersion = with lib.versions; lib.switch coq.coq-version [
12 { case = isEq "8.19"; out = "2.2"; }
13 { case = range "8.16" "8.18"; out = "2.1.1"; }
15 release."2.2".sha256 = "sha256-PyMm84ZYh+dOnl8Kk2wlYsQ+S/d1Hsp6uv2twTedEPg=";
16 release."2.1.1".sha256 = "sha256-bd/XSQhyFUAnSm2bhZEZBWB6l4/Ptlm9JrWu6w9BOpw=";
17 releaseRev = v: "v${v}";
19 propagatedBuildInputs = [ interval compcert flocq bignums ];
22 description = "A tool for Coq proofs about floating-point round-off error";
23 maintainers = with lib.maintainers; [ quinn-dougherty ];
24 license = lib.licenses.lgpl3Plus;