2021-01-11 08:54:33 +01:00
|
|
|
{ lib, 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
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/mjambon/dum";
|
2020-01-26 02:10:17 +01:00
|
|
|
description = "Inspect the runtime representation of arbitrary OCaml values";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = [ maintainers.alexfmpe ];
|
|
|
|
};
|
|
|
|
}
|