2010-05-27 20:44:03 +01:00
|
|
|
{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 {
|
2016-01-02 00:16:39 +00:00
|
|
|
url = "mirror://debian/pool/main/o/omake/omake_${version}.orig.tar.gz";
|
2010-05-27 20:44:03 +01:00
|
|
|
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 = {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "A build system designed for scalability and portability";
|
2010-05-27 20:44:03 +01:00
|
|
|
homepage = "${webpage}";
|
|
|
|
license = "GPL";
|
|
|
|
};
|
|
|
|
}
|