about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocsigen-deriving/default.nix
blob: d2a1ed3a6240e933b7b6ffc4ceabc3cd05f2bd9f (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, fetchgit, ocaml, findlib, ocaml_oasis, ocaml_data_notation, ocaml_optcomp}:

stdenv.mkDerivation {
  name = "ocsigen-deriving";
  src = fetchgit {
    url = "git://github.com/ocsigen/deriving";
    rev = "refs/tags/0.6.2";
    sha256 = "2b3bf3f4972d0e6eaf075f7353ce482b776726e0cd04947a89b7156384ec0662";
    };
  
  buildInputs = [ocaml findlib ocaml_oasis ocaml_data_notation ocaml_optcomp];

  configurePhase = ''
  make setup-dev.exe
  ./setup-dev.exe -configure --prefix $out
  '';

  createFindlibDestdir = true;


  meta =  {
    homepage = https://github.com/ocsigen/deriving;
    description = "Extension to OCaml for deriving functions from type declarations";
    license = "MIT";
    platforms = ocaml.meta.platforms;
    maintainers = [
      stdenv.lib.maintainers.gal_bolle
    ];
  };


}