summary refs log tree commit diff
path: root/pkgs/development/coq-modules/mathcomp-bigenough/default.nix
blob: e1f58edc9cbc2baf1dc09944a74d5d5af3097357 (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
{ stdenv, fetchFromGitHub, coq, mathcomp }:

stdenv.mkDerivation rec {
  version = "1.0.0";
  name = "coq${coq.coq-version}-mathcomp-bigenough-${version}";

  src = fetchFromGitHub {
    owner = "math-comp";
    repo = "bigenough";
    rev = version;
    sha256 = "10g0gp3hk7wri7lijkrqna263346wwf6a3hbd4qr9gn8hmsx70wg";
  };

  buildInputs = [ coq ];
  propagatedBuildInputs = [ mathcomp ];

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

  meta = {
    description = "A small library to do epsilon - N reasonning";
    inherit (src.meta) homepage;
    inherit (mathcomp.meta) platforms license;
    maintainers = [ stdenv.lib.maintainers.vbgl ];
  };

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