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