ocamlPackages.dum: cleaning

Propagate the `easy-format` dependency.

Fix build with OCaml ≥ 4.09.
This commit is contained in:
Vincent Laporte 2020-02-20 06:13:47 +01:00 committed by Vincent Laporte
parent b41a7eeb18
commit 8706ed24e5

View File

@ -1,25 +1,24 @@
{ lib, fetchFromGitHub, buildOcaml, ocaml { stdenv, fetchFromGitHub, ocaml, findlib
, easy-format , easy-format
}: }:
buildOcaml rec { stdenv.mkDerivation rec {
name = "dum"; name = "ocaml${ocaml.version}-dum-${version}";
version = "1.0.1"; version = "1.0.1";
minimumOCamlVersion = "4.06";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mjambon"; owner = "mjambon";
repo = name; repo = "dum";
rev = "v${version}"; rev = "v${version}";
sha256 = "0yrxl97szjc0s2ghngs346x3y0xszx2chidgzxk93frjjpsr1mlr"; sha256 = "0yrxl97szjc0s2ghngs346x3y0xszx2chidgzxk93frjjpsr1mlr";
}; };
buildInputs = [ easy-format ]; buildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ easy-format ];
doCheck = true; createFindlibDestdir = true;
meta = with lib; { meta = with stdenv.lib; {
homepage = https://github.com/mjambon/dum; homepage = https://github.com/mjambon/dum;
description = "Inspect the runtime representation of arbitrary OCaml values"; description = "Inspect the runtime representation of arbitrary OCaml values";
license = licenses.lgpl21Plus; license = licenses.lgpl21Plus;