summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocamlmake/default.nix
blob: 8063f284728b27b1ee7194c6b3905d338953623b (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
{stdenv, fetchurl}:

let

  version = "6.37.0";
  sha256 = "99ff58080ed154cc4bd70f915fe4760dffb026a1c0447caa0b3bdb982b24b0a8";

in stdenv.mkDerivation {
  pname = "ocaml-make";
  inherit version;

  src = fetchurl {
    url = "https://bitbucket.org/mmottl/ocaml-makefile/downloads/ocaml-makefile-${version}.tar.gz";
    inherit sha256;
  };

  installPhase = ''
    mkdir -p "$out/include/"
    cp OCamlMakefile "$out/include/"
  '';

  setupHook = ./setup-hook.sh;

  meta = {
    homepage = http://www.ocaml.info/home/ocaml_sources.html;
    description = "Generic OCaml Makefile for GNU Make";
    license = "LGPL";
    platforms = stdenv.lib.platforms.unix;
  };
}