summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/omake/default.nix
blob: 22e0d71af4d1718dff8d8ce5e19a3b8f814a1e5d (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
33
34
35
36
37
{stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
let
  pname = "omake";
  version = "0.9.8.5-3";
  webpage = "http://omake.metaprl.org";
in
stdenv.mkDerivation {

  name = "${pname}-${version}";

  src = fetchurl {
    url = "${webpage}/downloads/${pname}-${version}.tar.gz";
    sha256 = "1bfxbsimfivq0ar2g5fkzvr5ql97n5dg562pfyd29y4zyh4mwrsv";
  };
  patchFlags = "-p0";
  patches = [ ./omake-build-0.9.8.5.diff ./omake-lm_printf-gcc44.diff ];

  buildInputs = [ ocaml makeWrapper ncurses ];

  phases = "unpackPhase patchPhase buildPhase";
  buildPhase = ''
    make bootstrap
    make PREFIX=$out all
    make PREFIX=$out install
  '';
#  prefixKey = "-prefix ";
#
#  configureFlags = if transitional then "--transitional" else "--strict";
#
#  buildFlags = "world.opt";

  meta = {
    description = "Omake build system";
    homepage = "${webpage}";
    license = "GPL";
  };
}