summary refs log tree commit diff
path: root/pkgs/development/coq-modules/corn/default.nix
blob: dc0f0873d07e33908d6b9044c89de2f02e44e855 (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
31
32
33
34
35
36
37
38
{ stdenv, fetchFromGitHub, coq, bignums, math-classes }:

stdenv.mkDerivation rec {
  pname = "corn";
  version = "8.8.1";
  name = "coq${coq.coq-version}-${pname}-${version}";
  src = fetchFromGitHub {
    owner = "coq-community";
    repo = pname;
    rev = version;
    sha256 = "0gh32j0f18vv5lmf6nb87nr5450w6ai06rhrnvlx2wwi79gv10wp";
  };

  buildInputs = [ coq ];

  preConfigure = "patchShebangs ./configure.sh";
  configureScript = "./configure.sh";
  dontAddPrefix = true;

  propagatedBuildInputs = [ bignums math-classes ];

  enableParallelBuilding = true;

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

  meta = {
    homepage = http://c-corn.github.io/;
    license = stdenv.lib.licenses.gpl2;
    description = "A Coq library for constructive analysis";
    maintainers = [ stdenv.lib.maintainers.vbgl ];
    inherit (coq.meta) platforms;
  };

  passthru = {
    compatibleCoqVersions = v: stdenv.lib.versionAtLeast v "8.6";
  };

}