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

stdenv.mkDerivation {
  name = "coq${coq.coq-version}-coq-extensible-records-1.2.0";

  src = fetchFromGitHub {
    owner = "gmalecha";
    repo = "coq-extensible-records";
    rev = "1.2.0";
    sha256 = "0h5m04flqfk0v577syw0v1dw2wf7xrx6jaxv5gpmqzssf5hxafy4";
  };

  buildInputs = [ coq ];

  enableParallelBuilding = true;

  installPhase = ''
    make -f Makefile.coq COQLIB=$out/lib/coq/${coq.coq-version}/ install
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/gmalecha/coq-extensible-records;
    description = "Implementation of extensible records in Coq";
    license = licenses.mit;
    maintainers = with maintainers; [ ptival ];
    platforms = coq.meta.platforms;
  };

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