summary refs log tree commit diff
path: root/pkgs/development/coq-modules/mathcomp-analysis/default.nix
blob: 8ff9cc5b83031c88a7a265c1250c4549f741eb87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchFromGitHub, coq, mathcomp-bigenough, mathcomp-finmap }:

stdenv.mkDerivation rec {
  version = "0.1.0";
  name = "coq${coq.coq-version}-mathcomp-analysis-${version}";

  src = fetchFromGitHub {
    owner = "math-comp";
    repo = "analysis";
    rev = version;
    sha256 = "0hwkr2wzy710pcyh274fcarzdx8sv8myp16pv0vq5978nmih46al";
  };

  buildInputs = [ coq ];
  propagatedBuildInputs = [ mathcomp-bigenough mathcomp-finmap ];

  installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";

  meta = {
    description = "Analysis library compatible with Mathematical Components";
    inherit (src.meta) homepage;
    inherit (coq.meta) platforms;
    license = stdenv.lib.licenses.cecill-c;
    maintainers = [ stdenv.lib.maintainers.vbgl ];
  };

  passthru = {
    compatibleCoqVersions = v: builtins.elem v [ "8.8" "8.9" ];
  };
}