2021-01-15 09:52:05 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl
|
2022-07-05 13:35:34 +00:00
|
|
|
, dune-configurator, cmdliner
|
|
|
|
, lwt, withLwt ? true
|
2021-01-15 09:52:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "hxd";
|
2022-07-05 13:35:34 +00:00
|
|
|
version = "0.3.2";
|
2021-01-15 09:52:05 +00:00
|
|
|
|
2022-07-05 13:35:34 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2021-01-15 09:52:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-07-05 13:35:34 +00:00
|
|
|
url = "https://github.com/dinosaure/hxd/releases/download/v${version}/hxd-${version}.tbz";
|
|
|
|
sha256 = "a00290abb8538e79b32ddc22ed9b301b9806bc4c03eb1e5105b14af47dabec9f";
|
2021-01-15 09:52:05 +00:00
|
|
|
};
|
|
|
|
|
2021-03-16 12:07:17 +00:00
|
|
|
propagatedBuildInputs = lib.optional withLwt lwt;
|
|
|
|
|
2021-01-15 09:52:05 +00:00
|
|
|
buildInputs = [
|
|
|
|
cmdliner
|
2022-02-22 09:59:04 +00:00
|
|
|
dune-configurator
|
2021-01-15 09:52:05 +00:00
|
|
|
];
|
|
|
|
|
2021-03-16 12:07:17 +00:00
|
|
|
doCheck = true;
|
2021-01-15 09:52:05 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Hexdump in OCaml";
|
|
|
|
homepage = "https://github.com/dinosaure/hxd";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
2022-05-18 00:57:46 +00:00
|
|
|
mainProgram = "hxd.xxd";
|
2021-01-15 09:52:05 +00:00
|
|
|
};
|
|
|
|
}
|