summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/ocamlmod/default.nix
blob: b24be7ba62858d5ae055173cc98733e2adf76757 (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
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild }:

stdenv.mkDerivation rec {
  name = "ocamlmod-${version}";
  version = "0.0.8";

  src = fetchurl {
    url = "http://forge.ocamlcore.org/frs/download.php/1544/${name}.tar.gz";
    sha256 = "1w0w8lfyymvk300dv13gvhrddpcyknvyp4g2yvq2vaw7khkhjs9g";
  };

  buildInputs = [ ocaml findlib ocamlbuild ];

  configurePhase = "ocaml setup.ml -configure --prefix $out";
  buildPhase     = "ocaml setup.ml -build";
  installPhase   = "ocaml setup.ml -install";

  dontStrip = true;

  meta = {
    homepage = http://forge.ocamlcore.org/projects/ocamlmod/ocamlmod;
    description = "Generate OCaml modules from source files";
    platforms = ocaml.meta.platforms or [];
    maintainers = with stdenv.lib.maintainers; [
      z77z
    ];
  };
}