ocamlPackages.dum: 1.0.1 -> 1.0.3 (#414913)
* ocamlPackages.dum: 1.0.1 -> 1.0.3 Changelog: https://github.com/mjambon/dum/releases/tag/1.0.3 Diff: https://github.com/mjambon/dum/compare/v1.0.1...1.0.3 * ocamlPackages.dum: modernized derivation - Removed with lib; - Added meta.longDescription - Changed --replace to --replace-fail
This commit is contained in:
parent
ec6edd84d5
commit
5f6b24a36a
@ -1,43 +1,38 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
|
||||||
fetchFromGitHub,
|
|
||||||
ocaml,
|
|
||||||
findlib,
|
|
||||||
easy-format,
|
easy-format,
|
||||||
|
buildDunePackage,
|
||||||
|
fetchurl,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
buildDunePackage rec {
|
||||||
pname = "ocaml${ocaml.version}-dum";
|
pname = "dum";
|
||||||
version = "1.0.1";
|
version = "1.0.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchurl {
|
||||||
owner = "mjambon";
|
url = "https://github.com/mjambon/dum/releases/download/${version}/dum-${version}.tbz";
|
||||||
repo = "dum";
|
hash = "sha256-ZFojUD/IoxVTDfGyh2wveFsSz4D19pKkHrNuU+LFJlE=";
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "0yrxl97szjc0s2ghngs346x3y0xszx2chidgzxk93frjjpsr1mlr";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace "dum.ml" \
|
substituteInPlace "dum.ml" \
|
||||||
--replace "Lazy.lazy_is_val" "Lazy.is_val" \
|
--replace-fail "Lazy.lazy_is_val" "Lazy.is_val" \
|
||||||
--replace "Obj.final_tag" "Obj.custom_tag"
|
--replace-fail "Obj.final_tag" "Obj.custom_tag"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
ocaml
|
|
||||||
findlib
|
|
||||||
];
|
|
||||||
propagatedBuildInputs = [ easy-format ];
|
propagatedBuildInputs = [ easy-format ];
|
||||||
|
|
||||||
strictDeps = true;
|
meta = {
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
|
||||||
|
|
||||||
meta = with 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;
|
longDescription = ''
|
||||||
maintainers = [ maintainers.alexfmpe ];
|
Dum is a library for inspecting the runtime representation of
|
||||||
|
arbitrary OCaml values. Shared or cyclic data are detected
|
||||||
|
and labelled. This guarantees that printing would always
|
||||||
|
terminate. This makes it possible to print values such as closures,
|
||||||
|
objects or exceptions in depth and without risk.
|
||||||
|
'';
|
||||||
|
license = lib.licenses.lgpl21Plus;
|
||||||
|
maintainers = with lib.maintainers; [ alexfmpe ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user