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