biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / coq-modules / coqhammer / default.nix
blobedf573bcccf5b10d7f8df35074e146b037171cb2
1 { lib, mkCoqDerivation, coq, version ? null }:
3 mkCoqDerivation {
4   inherit version;
5   pname = "coqhammer";
6   owner = "lukaszcz";
7   defaultVersion = with lib.versions; lib.switch coq.coq-version [
8     { case = "8.15"; out = "1.3.2-coq8.15"; }
9     { case = "8.14"; out = "1.3.2-coq8.14"; }
10     { case = "8.13"; out = "1.3.2-coq8.13"; }
11     { case = "8.12"; out = "1.3.2-coq8.12"; }
12     { case = "8.11"; out = "1.3.2-coq8.11"; }
13     { case = "8.10"; out = "1.3.2-coq8.10"; }
14     { case = "8.9";  out = "1.1.1-coq8.9"; }
15     { case = "8.8";  out = "1.1-coq8.8"; }
16   ] null;
17   release."1.3.2-coq8.15".sha256 = "sha256:0n0y9wda8bx88r17ls9541ibxw013ghp73zshgb65bi7ibznbhha";
18   release."1.3.2-coq8.15".rev = "9a3e689036f12c09800ca3bac05054af0cc49233";
19   release."1.3.2-coq8.14".sha256 = "sha256:1pvs4p95lr31jb86f33p2q9v8zq3xbci1fk6s6a2g2snfxng1574";
20   release."1.3.2-coq8.13".sha256 = "sha256:0krsm8qj9lgfbggxv2jhkbk3vy2cz63qypnarnl31fdmpykchi4b";
21   release."1.3.2-coq8.12".sha256 = "sha256:08mnr13lrdnpims6kf8pk6axf4s8qqs0a71hzg3frkx21d6nawhh";
22   release."1.3.2-coq8.11".sha256 = "sha256:1z54lmr180rdkv549f0dygxlmamsx3fygvsm0d7rz9j88f2z8kc5";
23   release."1.3.2-coq8.10".sha256 = "sha256:08d63ckiwjx07hy5smg5c7a6b3m3a8ra4ljk3z6597633dx85cd0";
24   release."1.3.1-coq8.13".sha256 = "033j6saw24anb1lqbgsg1zynxi2rnxq7pgqwh11k8r8y3xisz78w";
25   release."1.3.1-coq8.12".sha256 = "0xy3vy4rv8w5ydwb9nq8y4dcimd91yr0hak2j4kn02svssg1kv1y";
26   release."1.3.1-coq8.11".sha256 = "0i9nlcayq0ac95vc09d1w8sd221gdjs0g215n086qscqjwimnz8j";
27   release."1.3.1-coq8.10".sha256 = "0aq9qwqx680lkidhb77fmyq403rvfcdxch849x1pzy6a48rz5yra";
28   release."1.3-coq8.12".sha256   = "1q1y3cwhd98pkm98g71fsdjz85bfwgcz2xn7s7wwmiraifv5l6z8";
29   release."1.3-coq8.11".sha256   = "08zf8qfna7b9p2myfaz4g7bas3a1q1156x78n5isqivlnqfrjc1b";
30   release."1.3-coq8.10".sha256   = "1fj8497ir4m79hyrmmmmrag01001wrby0h24wv6525vz0w5py3cd";
31   release."1.1.1-coq8.9" = { sha256 = "1knjmz4hr8vlp103j8n4fyb2lfxysnm512gh3m2kp85n6as6fvb9";
32                              rev    = "f8b4d81a213aa1f25afbe53c7c9ca1b15e3d42bc"; };
33   release."1.1-coq8.8" =   { sha256 = "0ms086wp4jmrzyglb8wymchzyflflk01nsfsk4r6qv8rrx81nx9h";
34                              rev    = "c3cb54b4d5f33fab372d33c7189861368a08fa22"; };
36   release."1.3.1-coq8.13".version  = "1.3.1";
37   release."1.3.1-coq8.12".version  = "1.3.1";
38   release."1.3.1-coq8.11".version  = "1.3.1";
39   release."1.3.1-coq8.10".version  = "1.3.1";
40   release."1.3-coq8.12".version  = "1.3";
41   release."1.3-coq8.11".version  = "1.3";
42   release."1.3-coq8.10".version  = "1.3";
43   release."1.1.1-coq8.9".version = "1.1.1";
44   release."1.1-coq8.9".version   = "1.1";
45   releaseRev = v: "refs/tags/v${v}";
47   postPatch = ''
48     substituteInPlace Makefile.coq.local --replace \
49       '$(if $(COQBIN),$(COQBIN),`coqc -where | xargs dirname | xargs dirname`/bin/)' \
50       '$(out)/bin/'
51     substituteInPlace Makefile.coq.local --replace 'g++' 'c++' --replace 'gcc' 'cc'
52   '';
54   preInstall = ''
55     mkdir -p $out/bin
56   '';
58   mlPlugin = true;
60   meta = with lib; {
61     homepage = "http://cl-informatik.uibk.ac.at/cek/coqhammer/";
62     description = "Automation for Dependent Type Theory";
63     license = licenses.lgpl21;
64     maintainers = [ maintainers.vbgl ];
65   };