@@ -0,0 +1,28 @@
1+{stdenv, fetchgit, coq, ssreflect, mathcomp}:
2+
3+stdenv.mkDerivation rec {
4+
5+ name = "coq-coqeal-${coq.coq-version}-${version}";
6+ version = "7522037d";
7+
8+ src = fetchgit {
9+ url = git://github.com/CoqEAL/CoqEAL.git;
10+ rev = "7522037d5e01e651e705d782f4f91fc68c46866e";
11+ sha256 = "1cvjz0yyqihdx1hp1h9x5x14kv9qf3rjhgqq4f7rv8bxcv9p1gv3";
12+ };
13+
14+ buildInputs = [ coq.ocaml coq.camlp5 ssreflect mathcomp ];
15+ propagatedBuildInputs = [ coq ];
16+
17+ preConfigure = "cd theory";
18+
19+ installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
20+
21+ meta = with stdenv.lib; {
22+ homepage = http://www.maximedenes.fr/content/coqeal-coq-effective-algebra-library;
23+ description = "A Coq library for effective algebra, by which is meant formally verified computer algebra algorithms that can be run inside Coq on concrete inputs";
24+ maintainers = with maintainers; [ jwiegley ];
25+ platforms = coq.meta.platforms;
26+ };
27+
28+}