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