summary refs log tree commit diff
path: root/pkgs/development/coq-modules/heq/default.nix
blob: d0445c83ca5924ca2ce9fcef520093c440865156 (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, fetchurl, coq, unzip}:

stdenv.mkDerivation rec {

  name = "coq-heq-${coq.coq-version}-${version}";
  version = "0.92";

  src = fetchurl {
    url = "https://www.mpi-sws.org/~gil/Heq/download/Heq-${version}.zip";
    sha256 = "03y71c4qs6cmy3s2hjs05g7pcgk9sqma6flj15394yyxbvr9is1p";
  };

  buildInputs = with coq.ocamlPackages; [ ocaml camlp5 unzip ];
  propagatedBuildInputs = [ coq ];

  preBuild = "cd src";

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

  meta = with stdenv.lib; {
    homepage = "https://www.mpi-sws.org/~gil/Heq/";
    description = "Heq : a Coq library for Heterogeneous Equality";
    maintainers = with maintainers; [ jwiegley ];
    platforms = coq.meta.platforms;
  };

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