nixpkgs/pkgs/development/tools/ocaml/oasis/default.nix

35 lines
1015 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, ocamlmod, ocamlify }:
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
2017-07-11 02:40:07 +01:00
version = "0.4.10";
pname = "ocaml-oasis";
# You must manually update the url, not just the version. OCamlforge keys off
# the number after download.php, not the filename.
src = fetchurl {
url = "https://forge.ocamlcore.org/frs/download.php/1694/oasis-0.4.10.tar.gz";
2017-07-11 02:40:07 +01:00
sha256 = "13ah03pbcvrjv5lmx971hvkm9rvbvimska5wmjfvgvd20ca0gn8w";
};
createFindlibDestdir = true;
buildInputs =
[
ocaml findlib ocamlbuild ocamlmod ocamlify
];
configurePhase = "ocaml setup.ml -configure --prefix $out";
buildPhase = "ocaml setup.ml -build";
installPhase = "ocaml setup.ml -install";
meta = with lib; {
homepage = "http://oasis.forge.ocamlcore.org/";
description = "Configure, build and install system for OCaml projects";
license = licenses.lgpl21;
platforms = ocaml.meta.platforms or [];
maintainers = with maintainers; [
vbgl maggesi
];
};
}