2016-12-18 09:25:03 +00:00
|
|
|
{stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
|
|
|
|
let
|
|
|
|
pname = "omake";
|
|
|
|
version = "0.9.8.6-0.rc1";
|
|
|
|
webpage = "http://omake.metaprl.org";
|
|
|
|
in
|
2018-08-21 17:32:48 +01:00
|
|
|
|
|
|
|
if stdenv.lib.versionAtLeast ocaml.version "4.06"
|
|
|
|
then throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2016-12-18 09:25:03 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-11-24 22:53:27 +00:00
|
|
|
url = "https://src.fedoraproject.org/repo/pkgs/ocaml-omake/${pname}-${version}.tar.gz/fe39a476ef4e33b7ba2ca77a6bcaded2/${pname}-${version}.tar.gz";
|
2016-12-18 09:25:03 +00:00
|
|
|
sha256 = "1sas02pbj56m7wi5vf3vqrrpr4ynxymw2a8ybvfj2dkjf7q9ii13";
|
|
|
|
};
|
2019-10-27 13:03:25 +00:00
|
|
|
patchFlags = [ "-p0" ];
|
2016-12-18 09:25:03 +00:00
|
|
|
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";
|
|
|
|
#
|
2019-10-27 13:03:25 +00:00
|
|
|
# buildFlags = [ "world.opt" ];
|
2016-12-18 09:25:03 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Omake build system";
|
2019-09-09 00:38:31 +01:00
|
|
|
homepage = webpage;
|
2016-12-18 09:25:03 +00:00
|
|
|
license = "GPL";
|
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
};
|
|
|
|
}
|