Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildDunePackage, 4 fetchurl, 5 dune-configurator, 6 cmdliner, 7 lwt, 8 withLwt ? true, 9}: 10 11buildDunePackage rec { 12 pname = "hxd"; 13 version = "0.3.4"; 14 15 minimalOCamlVersion = "4.08"; 16 17 src = fetchurl { 18 url = "https://github.com/dinosaure/hxd/releases/download/v${version}/hxd-${version}.tbz"; 19 sha256 = "sha256-jor8KLUvHqgt37Dnh3JRB/eMIYSevVzGEBsvG4quDmI="; 20 }; 21 22 propagatedBuildInputs = lib.optional withLwt lwt; 23 24 buildInputs = [ 25 cmdliner 26 dune-configurator 27 ]; 28 29 doCheck = true; 30 31 preCheck = '' 32 export DUNE_CACHE=disabled 33 ''; 34 35 meta = with lib; { 36 description = "Hexdump in OCaml"; 37 homepage = "https://github.com/dinosaure/hxd"; 38 license = licenses.mit; 39 maintainers = [ maintainers.sternenseemann ]; 40 mainProgram = "hxd.xxd"; 41 }; 42}