Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildDunePackage, fetchurl
2, dune-configurator, cmdliner
3, lwt, withLwt ? true
4}:
5
6buildDunePackage rec {
7 pname = "hxd";
8 version = "0.3.2";
9
10 minimalOCamlVersion = "4.08";
11
12 src = fetchurl {
13 url = "https://github.com/dinosaure/hxd/releases/download/v${version}/hxd-${version}.tbz";
14 sha256 = "a00290abb8538e79b32ddc22ed9b301b9806bc4c03eb1e5105b14af47dabec9f";
15 };
16
17 propagatedBuildInputs = lib.optional withLwt lwt;
18
19 buildInputs = [
20 cmdliner
21 dune-configurator
22 ];
23
24 doCheck = true;
25
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 };
33}