nixpkgs/pkgs/development/tools/ocaml/oasis/default.nix
Matthew Maurer 047f105bd1 oasis: fix typo
The URL uses the filename of 0.4.6 in the 0.4.7 package.
The package still works currently and provides 0.4.7, because ocamlforge
dispatches entirely based on the number before that, the filename is just
sugar.
2016-09-26 18:05:08 -04:00

37 lines
1.1 KiB
Nix

{stdenv, fetchurl, ocaml, findlib, ocaml_data_notation, type_conv, camlp4,
ocamlmod, ocamlify, ounit, expect}:
stdenv.mkDerivation rec {
version = "0.4.7";
name = "ocaml-oasis-${version}";
# You must manually update the url, not just the version. OCamlforge keys off
# the number after download.php, not the filename.
src = fetchurl {
url = "http://forge.ocamlcore.org/frs/download.php/1635/oasis-${version}.tar.gz";
sha256 = "13crvqiy0hhlnm4qfyxq2jjvs11ldxf15c4g9q91k1x3wj04pg2l";
};
createFindlibDestdir = true;
buildInputs =
[
ocaml findlib type_conv ocamlmod ocamlify ounit camlp4
];
propagatedBuildInputs = [ ocaml_data_notation ];
configurePhase = "ocaml setup.ml -configure --prefix $out";
buildPhase = "ocaml setup.ml -build";
installPhase = "ocaml setup.ml -install";
meta = with stdenv.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 z77z
];
};
}