1{stdenv, fetchurl}:
2
3let
4
5 version = "6.37.0";
6 sha256 = "99ff58080ed154cc4bd70f915fe4760dffb026a1c0447caa0b3bdb982b24b0a8";
7
8in stdenv.mkDerivation {
9 name = "ocaml-make-${version}";
10
11 src = fetchurl {
12 url = "http://bitbucket.org/mmottl/ocaml-makefile/downloads/ocaml-makefile-${version}.tar.gz";
13 inherit sha256;
14 };
15
16 installPhase = ''
17 mkdir -p "$out/include/"
18 cp OCamlMakefile "$out/include/"
19 '';
20
21 setupHook = ./setup-hook.sh;
22
23 meta = {
24 homepage = "http://www.ocaml.info/home/ocaml_sources.html";
25 description = "Generic OCaml Makefile for GNU Make";
26 license = "LGPL";
27 };
28}