2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl
|
2022-07-14 12:49:19 +00:00
|
|
|
, dune-configurator, cmdliner
|
|
|
|
, lwt, withLwt ? true
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "hxd";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "0.3.2";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-07-14 12:49:19 +00:00
|
|
|
url = "https://github.com/dinosaure/hxd/releases/download/v${version}/hxd-${version}.tbz";
|
|
|
|
sha256 = "a00290abb8538e79b32ddc22ed9b301b9806bc4c03eb1e5105b14af47dabec9f";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
propagatedBuildInputs = lib.optional withLwt lwt;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = [
|
|
|
|
cmdliner
|
2022-03-05 16:20:37 +00:00
|
|
|
dune-configurator
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
doCheck = true;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Hexdump in OCaml";
|
|
|
|
homepage = "https://github.com/dinosaure/hxd";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
2022-06-16 17:23:12 +00:00
|
|
|
mainProgram = "hxd.xxd";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|