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/ezjsonm/default.nix

28 lines
790 B
Nix
Raw Normal View History

2018-07-05 21:31:18 +01:00
{ stdenv, fetchzip, ocaml, findlib, jbuilder, jsonm, hex, sexplib }:
2018-07-05 21:31:18 +01:00
let version = "0.6.0"; in
stdenv.mkDerivation {
2018-07-05 21:31:18 +01:00
name = "ocaml${ocaml.version}-ezjsonm-${version}";
src = fetchzip {
url = "https://github.com/mirage/ezjsonm/archive/${version}.tar.gz";
2018-07-05 21:31:18 +01:00
sha256 = "18g64lhai0bz65b9fil12vlgfpwa9b5apj7x6d7n4zzm18qfazvj";
};
2018-07-05 21:31:18 +01:00
buildInputs = [ ocaml findlib jbuilder ];
2017-02-18 21:52:46 +00:00
propagatedBuildInputs = [ jsonm hex sexplib ];
2018-07-05 21:31:18 +01:00
buildPhase = "jbuilder build -p ezjsonm";
inherit (jbuilder) installPhase;
meta = {
description = "An easy interface on top of the Jsonm library";
homepage = https://github.com/mirage/ezjsonm;
license = stdenv.lib.licenses.isc;
maintainers = with stdenv.lib.maintainers; [ vbgl ];
platforms = ocaml.meta.platforms or [];
};
}