Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / coq-modules / interval / default.nix
blob9ac4f1c383a9d557aa0fa5b96d1f00644e4af97a
1 { lib, mkCoqDerivation, autoconf, coq, coquelicot, flocq,
2   mathcomp-ssreflect, mathcomp-fingroup, bignums ? null, gnuplot_qt, version ? null }:
4 mkCoqDerivation rec {
5   pname = "interval";
6   owner = "coqinterval";
7   domain = "gitlab.inria.fr";
8   inherit version;
9   defaultVersion = with lib.versions; lib.switch coq.coq-version [
10     { case = range "8.12" "8.18"; out = "4.9.0"; }
11     { case = range "8.12" "8.17"; out = "4.8.0"; }
12     { case = range "8.12" "8.16"; out = "4.6.0"; }
13     { case = range "8.8" "8.16"; out = "4.5.2"; }
14     { case = range "8.8" "8.12"; out = "4.0.0"; }
15     { case = range "8.7" "8.11"; out = "3.4.2"; }
16     { case = range "8.5" "8.6";  out = "3.3.0"; }
17   ] null;
18   release."4.9.0".sha256 = "sha256-+5NppyQahcc1idGu/U3B+EIWuZz2L3/oY7dIJR6pitE=";
19   release."4.8.1".sha256 = "sha256-gknZ3bA90YY2AvwfFsP5iMhohwkQ8G96mH+4st2RPDc=";
20   release."4.8.0".sha256 = "sha256-YPQ1tuUgGixAVdQUJ9a3lZUNVgm2pKK3RKvl3m+/8rY=";
21   release."4.7.0".sha256 = "sha256-Cel25w4BeaNqu9KAW3N2KYO2IGY0EOAK5FQ6VHBPmFQ=";
22   release."4.6.1".sha256 = "sha256-ZZSxt8ksz0g6dl/LEido5qJXgsaxHrVLqkGUHu90+e0=";
23   release."4.6.0".sha256 = "sha256-n9ECKnV0L6XYcIcbYyOJKwlbisz/RRbNW5YESHo07X0=";
24   release."4.5.2".sha256 = "sha256-r0yE9pkC4EYlqsimxkdlCXevRcwKa3HGFZiUH+ueUY8=";
25   release."4.5.1".sha256 = "sha256-5OxbSPdw/1FFENubulKSk6fEIEYSPCxfvMMgtgN6j6s=";
26   release."4.3.0".sha256 = "sha256-k8DLC4HYYpHeEEgXUafS8jkaECqlM+/CoYaInmUTYko=";
27   release."4.2.0".sha256 = "sha256-SD5thgpirs3wmZBICjXGpoefg9AAXyExb5t8tz3iZhE=";
28   release."4.1.1".sha256 = "sha256-h2NJ6sZt1C/88v7W2xyuftEDoyRt3H6kqm5g2hc1aoU=";
29   release."4.0.0".sha256 = "1hhih6zmid610l6c8z3x4yzdzw9jniyjiknd1vpkyb2rxvqm3gzp";
30   release."3.4.2".sha256 = "07ngix32qarl3pjnm9d0vqc9fdrgm08gy7zp306hwxjyq7h1v7z0";
31   release."3.3.0".sha256 = "0lz2hgggzn4cvklvm8rpaxvwaryf37i8mzqajqgdxdbd8f12acsz";
32   releaseRev = v: "interval-${v}";
34   nativeBuildInputs = [ autoconf ];
35   propagatedBuildInputs = lib.optional (lib.versions.isGe "8.6" coq.coq-version) bignums
36     ++ [ coquelicot flocq mathcomp-ssreflect mathcomp-fingroup ]
37     ++ lib.optionals (lib.versions.isGe "4.2.0" defaultVersion) [ gnuplot_qt ];
38   useMelquiondRemake.logpath = "Interval";
39   mlPlugin = true;
40   enableParallelBuilding = true;
42   meta = with lib; {
43     description = "Tactics for simplifying the proofs of inequalities on expressions of real numbers for the Coq proof assistant";
44     license = licenses.cecill-c;
45     maintainers = with maintainers; [ vbgl ];
46   };