nixpkgs/pkgs/development/coq-modules/vcfloat/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
915 B
Nix
Raw Normal View History

2023-09-29 21:54:49 +00:00
{ lib, mkCoqDerivation, coq, interval, compcert, flocq, bignums, version ? null }:
let self = mkCoqDerivation {
2023-09-29 21:54:49 +00:00
pname = "vcfloat";
owner = "VeriNum";
inherit version;
sourceRoot = "${self.src.name}/vcfloat";
2023-11-01 19:58:58 +00:00
postPatch = ''
coq_makefile -o Makefile -f _CoqProject *.v
'';
defaultVersion = with lib.versions; lib.switch coq.coq-version [
{ case = isEq "8.19"; out = "2.2"; }
{ case = range "8.16" "8.18"; out = "2.1.1"; }
2023-09-29 21:54:49 +00:00
] null;
release."2.2".sha256 = "sha256-PyMm84ZYh+dOnl8Kk2wlYsQ+S/d1Hsp6uv2twTedEPg=";
2023-09-29 21:54:49 +00:00
release."2.1.1".sha256 = "sha256-bd/XSQhyFUAnSm2bhZEZBWB6l4/Ptlm9JrWu6w9BOpw=";
releaseRev = v: "v${v}";
propagatedBuildInputs = [ interval compcert flocq bignums ];
meta = {
description = "Tool for Coq proofs about floating-point round-off error";
maintainers = with lib.maintainers; [ quinn-dougherty ];
license = lib.licenses.lgpl3Plus;
2023-09-29 21:54:49 +00:00
};
};
in self