@@ -1,38 +1,24 @@
1−{stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
2−let
3− pname = "omake";
4− version = "0.9.8.5-3";
5− webpage = "http://omake.metaprl.org";
6−in
7−stdenv.mkDerivation {
1+{ stdenv, fetchurl, ocaml, ncurses }:
82
9− name = "${pname}-${version}";
3+stdenv.mkDerivation rec {
4+
5+ name = "omake-${version}";
6+ version = "0.10.1";
107
118 src = fetchurl {
12− url = "mirror://debian/pool/main/o/omake/omake_${version}.orig.tar.gz";
13− sha256 = "1bfxbsimfivq0ar2g5fkzvr5ql97n5dg562pfyd29y4zyh4mwrsv";
9+ url = "http://download.camlcity.org/download/${name}.tar.gz";
10+ sha256 = "093ansbppms90hiqvzar2a46fj8gm9iwnf8gn38s6piyp70lrbsj";
1411 };
15− patchFlags = "-p0";
16− patches = [ ./omake-build-0.9.8.5.diff ./omake-lm_printf-gcc44.diff ];
17−
18− buildInputs = [ ocaml makeWrapper ncurses ];
1912
20− phases = "unpackPhase patchPhase buildPhase";
21− buildPhase = ''
22− make bootstrap
23− make PREFIX=$out all
24− make PREFIX=$out install
25− '';
26−# prefixKey = "-prefix ";
27−#
28−# configureFlags = if transitional then "--transitional" else "--strict";
29−#
30−# buildFlags = "world.opt";
13+ buildInputs = [ ocaml ncurses ];
3114
3215 meta = {
3316 description = "A build system designed for scalability and portability";
34− homepage = "${webpage}";
35− license = "GPL";
36− broken = true;
17+ homepage = http://projects.camlcity.org/projects/omake.html;
18+ license = with stdenv.lib.licenses; [
19+ mit /* scripts */
20+ gpl2 /* program */
21+ ];
22+ inherit (ocaml.meta) platforms;
3723 };
3824}