summary refs log tree commit diff
path: root/pkgs/development/coq-modules/Cheerios/default.nix
blob: 2429ccf3cf60028d1317a6b63e49f954e0a94d8f (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, StructTact }:

let param =
  {
      version = "20181102";
      rev = "04da309304bdd28a1f7dacca9fdf8696204a4ff2";
      sha256 = "1xfa78p70c90favds1mv1vj5sr9bv0ad3dsgg05v3v72006g2f1q";
  };
in

stdenv.mkDerivation rec {
  name = "coq${coq.coq-version}-Cheerios-${param.version}";

  src = fetchFromGitHub {
    owner = "uwplse";
    repo = "cheerios";
    inherit (param) rev sha256;
  };

  buildInputs = [ coq ];

  propagatedBuildInputs = [ StructTact ];
  enableParallelBuilding = true;

  preConfigure = "patchShebangs ./configure";

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

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