2020-02-20 05:13:47 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib
|
2020-01-26 01:10:17 +00:00
|
|
|
, easy-format
|
|
|
|
}:
|
|
|
|
|
2020-02-20 05:13:47 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-dum-${version}";
|
2020-01-26 01:10:17 +00:00
|
|
|
version = "1.0.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mjambon";
|
2020-02-20 05:13:47 +00:00
|
|
|
repo = "dum";
|
2020-01-26 01:10:17 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0yrxl97szjc0s2ghngs346x3y0xszx2chidgzxk93frjjpsr1mlr";
|
|
|
|
};
|
|
|
|
|
2020-02-20 05:13:47 +00:00
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
propagatedBuildInputs = [ easy-format ];
|
2020-01-26 01:10:17 +00:00
|
|
|
|
2020-02-20 05:13:47 +00:00
|
|
|
createFindlibDestdir = true;
|
2020-01-26 01:10:17 +00:00
|
|
|
|
2020-02-20 05:13:47 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mjambon/dum";
|
2020-01-26 01:10:17 +00:00
|
|
|
description = "Inspect the runtime representation of arbitrary OCaml values";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = [ maintainers.alexfmpe ];
|
|
|
|
};
|
|
|
|
}
|