2013-06-04 19:33:31 +01:00
|
|
|
{stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
|
|
|
|
let
|
|
|
|
pname = "omake";
|
|
|
|
version = "0.9.8.6-0.rc1";
|
|
|
|
webpage = "http://omake.metaprl.org";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-02-16 15:34:21 +00:00
|
|
|
url = "http://pkgs.fedoraproject.org/repo/pkgs/ocaml-omake/${pname}-${version}.tar.gz/fe39a476ef4e33b7ba2ca77a6bcaded2/${pname}-${version}.tar.gz";
|
2013-06-04 19:33:31 +01:00
|
|
|
sha256 = "1sas02pbj56m7wi5vf3vqrrpr4ynxymw2a8ybvfj2dkjf7q9ii13";
|
|
|
|
};
|
|
|
|
patchFlags = "-p0";
|
|
|
|
patches = [ ./warn.patch ];
|
|
|
|
|
|
|
|
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";
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2013-06-04 19:33:31 +01:00
|
|
|
};
|
|
|
|
}
|