1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/ocaml-modules/gapi-ocaml/default.nix

29 lines
910 B
Nix
Raw Normal View History

2018-09-05 17:11:47 +01:00
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, ocurl, cryptokit, ocaml_extlib, yojson, ocamlnet, xmlm }:
2015-01-25 21:08:33 +00:00
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "gapi-ocaml is not available for OCaml ${ocaml.version}"
else
2015-01-25 21:08:33 +00:00
stdenv.mkDerivation rec {
2017-07-12 09:16:45 +01:00
name = "gapi-ocaml-${version}";
version = "0.3.6";
2017-07-12 09:16:45 +01:00
src = fetchFromGitHub {
owner = "astrada";
repo = "gapi-ocaml";
rev = "v${version}";
sha256 = "0qgsy51bhkpfgl5rdnjw4bqs5fbh2w4vwrfbl8y3lh1wrqmnwci4";
2015-01-25 21:08:33 +00:00
};
2018-09-05 17:11:47 +01:00
buildInputs = [ ocaml dune findlib ];
2015-01-25 21:08:33 +00:00
propagatedBuildInputs = [ ocurl cryptokit ocaml_extlib yojson ocamlnet xmlm ];
2018-09-05 17:11:47 +01:00
inherit (dune) installPhase;
2015-01-25 21:08:33 +00:00
meta = {
description = "OCaml client for google services";
homepage = http://gapi-ocaml.forge.ocamlcore.org;
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ bennofs ];
platforms = ocaml.meta.platforms or [];
2015-01-25 21:08:33 +00:00
};
}