2021-01-23 12:26:19 +00:00
|
|
|
{lib, stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
|
2016-12-18 09:25:03 +00:00
|
|
|
let
|
|
|
|
pname = "omake";
|
|
|
|
version = "0.9.8.6-0.rc1";
|
|
|
|
webpage = "http://omake.metaprl.org";
|
|
|
|
in
|
2018-08-21 17:32:48 +01:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2018-08-21 17:32:48 +01:00
|
|
|
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 ];
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ ocaml ncurses ];
|
2016-12-18 09:25:03 +00:00
|
|
|
|
|
|
|
phases = "unpackPhase patchPhase buildPhase";
|
|
|
|
buildPhase = ''
|
|
|
|
make bootstrap
|
|
|
|
make PREFIX=$out all
|
|
|
|
make PREFIX=$out install
|
|
|
|
'';
|
|
|
|
# prefixKey = "-prefix ";
|
|
|
|
#
|
|
|
|
# configureFlags = if transitional then "--transitional" else "--strict";
|
|
|
|
#
|
2021-01-19 21:20:11 +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 [];
|
|
|
|
};
|
|
|
|
}
|