summary refs log tree commit diff
path: root/pkgs/development/coq-modules/contribs/mk-contrib.nix
blob: 12dd700a6310eb2e5a8a623f9999b12e554e8f8e (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
{ name, sha256, override }:

{ stdenv, fetchzip, coq }:

let
  self = {

  name = "coq-contribs-${name}-${coq.coq-version}";

  src = fetchzip {
    url = "http://www.lix.polytechnique.fr/coq/pylons/contribs/files/${name}/v${coq.coq-version}/${name}.tar.gz";
    inherit sha256;
  };

  buildInputs = [ coq.ocaml coq.camlp5 ];
  propagatedBuildInputs = [ coq ];

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

  meta = with stdenv.lib; {
    homepage = "http://www.lix.polytechnique.fr/coq/pylons/contribs/view/${name}/v${coq.coq-version}";
    maintainers = with maintainers; [ vbgl ];
    platforms = coq.meta.platforms;
  };

};

in

stdenv.mkDerivation (self // override self)