Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / ocaml-modules / hxd / default.nix
blob54ce87de99eea24687645fa505eadca67c01f2a2
1 { lib, buildDunePackage, fetchurl
2 , dune-configurator, cmdliner
3 , lwt, withLwt ? true
4 }:
6 buildDunePackage rec {
7   pname = "hxd";
8   version = "0.3.2";
10   minimalOCamlVersion = "4.08";
12   src = fetchurl {
13     url = "https://github.com/dinosaure/hxd/releases/download/v${version}/hxd-${version}.tbz";
14     sha256 = "a00290abb8538e79b32ddc22ed9b301b9806bc4c03eb1e5105b14af47dabec9f";
15   };
17   propagatedBuildInputs = lib.optional withLwt lwt;
19   buildInputs = [
20     cmdliner
21     dune-configurator
22   ];
24   doCheck = true;
26   meta = with lib; {
27     description = "Hexdump in OCaml";
28     homepage = "https://github.com/dinosaure/hxd";
29     license = licenses.mit;
30     maintainers = [ maintainers.sternenseemann ];
31     mainProgram = "hxd.xxd";
32   };