2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
|
|
|
pname = "omake";
|
|
|
|
version = "0.9.8.6-0.rc1";
|
|
|
|
webpage = "http://omake.metaprl.org";
|
|
|
|
in
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2020-04-24 23:36:52 +00:00
|
|
|
then throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://src.fedoraproject.org/repo/pkgs/ocaml-omake/${pname}-${version}.tar.gz/fe39a476ef4e33b7ba2ca77a6bcaded2/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1sas02pbj56m7wi5vf3vqrrpr4ynxymw2a8ybvfj2dkjf7q9ii13";
|
|
|
|
};
|
|
|
|
patchFlags = [ "-p0" ];
|
|
|
|
patches = [ ./warn.patch ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ ocaml ncurses ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
dontInstall = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPhase = ''
|
|
|
|
make bootstrap
|
|
|
|
make PREFIX=$out all
|
|
|
|
make PREFIX=$out install
|
|
|
|
'';
|
|
|
|
# prefixKey = "-prefix ";
|
|
|
|
#
|
|
|
|
# configureFlags = if transitional then "--transitional" else "--strict";
|
|
|
|
#
|
2021-02-05 17:12:51 +00:00
|
|
|
# buildFlags = [ "world.opt" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Omake build system";
|
|
|
|
homepage = webpage;
|
|
|
|
license = "GPL";
|
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
};
|
|
|
|
}
|