1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00
nixpkgs/pkgs/development/ocaml-modules/uri/default.nix
Vincent Laporte 310623ad6c Addg ocaml-uri
RFC3986 URI parsing library for OCaml

Homepage: https://github.com/mirage/ocaml-uri
2015-01-09 10:28:36 +01:00

34 lines
890 B
Nix

{ stdenv, fetchgit, ocaml, findlib, re, sexplib, stringext }:
let version = "1.7.2"; in
stdenv.mkDerivation {
name = "ocaml-uri-${version}";
src = fetchgit {
url = https://github.com/mirage/ocaml-uri.git;
rev = "refs/tags/v${version}";
sha256 = "19rq68dzvqzpqc2zvrk5sj1iklknnyrlbcps2vb8iw4cjlrnnaa1";
};
buildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ re sexplib stringext ];
configurePhase = "ocaml setup.ml -configure --prefix $out";
buildPhase = ''
ocaml setup.ml -build
ocaml setup.ml -doc
'';
installPhase = "ocaml setup.ml -install";
createFindlibDestdir = true;
meta = {
homepage = https://github.com/mirage/ocaml-uri;
platforms = ocaml.meta.platforms;
description = "RFC3986 URI parsing library for OCaml";
license = stdenv.lib.licenses.isc;
maintainers = with stdenv.lib.maintainers; [ vbgl ];
};
}