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

let param =
  {
      version = "20181102";
      rev = "82a85b7ec07e71fa6b30cfc05f6a7bfb09ef2510";
      sha256 = "08zry20flgj7qq37xk32kzmg4fg6d4wi9m7pf9aph8fd3j2a0b5v";
  };
in

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

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

  buildInputs = [ coq ];

  enableParallelBuilding = true;

  preConfigure = "patchShebangs ./configure";

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

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