Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
35 lines
855 B
Nix
35 lines
855 B
Nix
{ lib, stdenv, fetchFromGitHub, ocaml, findlib
|
|
, easy-format
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ocaml${ocaml.version}-dum";
|
|
version = "1.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mjambon";
|
|
repo = "dum";
|
|
rev = "v${version}";
|
|
sha256 = "0yrxl97szjc0s2ghngs346x3y0xszx2chidgzxk93frjjpsr1mlr";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace "dum.ml" \
|
|
--replace "Lazy.lazy_is_val" "Lazy.is_val" \
|
|
--replace "Obj.final_tag" "Obj.custom_tag"
|
|
'';
|
|
|
|
nativeBuildInputs = [ ocaml findlib ];
|
|
propagatedBuildInputs = [ easy-format ];
|
|
|
|
strictDeps = true;
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mjambon/dum";
|
|
description = "Inspect the runtime representation of arbitrary OCaml values";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = [ maintainers.alexfmpe ];
|
|
};
|
|
}
|