2021-01-11 07:54:33 +00:00
|
|
|
{lib, stdenv, fetchurl, ocaml, findlib, camlp4}:
|
2014-10-23 23:45:58 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocamlscript-2.0.3";
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://mjambon.com/releases/ocamlscript/ocamlscript-2.0.3.tar.gz";
|
2014-10-23 23:45:58 +01:00
|
|
|
sha256 = "1v1i24gijxwris8w4hi95r9swld6dm7jbry0zp72767a3g5ivlrd";
|
|
|
|
};
|
|
|
|
|
2014-11-08 14:26:43 +00:00
|
|
|
propagatedBuildInputs = [ ocaml findlib camlp4 ];
|
2014-10-23 23:45:58 +01:00
|
|
|
|
|
|
|
patches = [ ./Makefile.patch ];
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
buildFlags = [ "PREFIX=$(out)" ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2014-10-23 23:45:58 +01:00
|
|
|
|
|
|
|
preInstall = "mkdir $out/bin";
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://martin.jambon.free.fr/ocamlscript.html";
|
2014-10-23 23:45:58 +01:00
|
|
|
license = licenses.boost;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-10-23 23:45:58 +01:00
|
|
|
description = "Natively-compiled OCaml scripts";
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|