nixpkgs/pkgs/development/ocaml-modules/hxd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
741 B
Nix
Raw Normal View History

2021-01-15 09:52:05 +00:00
{ lib, buildDunePackage, fetchurl
, dune-configurator, cmdliner
, lwt, withLwt ? true
2021-01-15 09:52:05 +00:00
}:
buildDunePackage rec {
pname = "hxd";
version = "0.3.2";
2021-01-15 09:52:05 +00:00
minimalOCamlVersion = "4.08";
2021-01-15 09:52:05 +00:00
src = fetchurl {
url = "https://github.com/dinosaure/hxd/releases/download/v${version}/hxd-${version}.tbz";
sha256 = "a00290abb8538e79b32ddc22ed9b301b9806bc4c03eb1e5105b14af47dabec9f";
2021-01-15 09:52:05 +00:00
};
propagatedBuildInputs = lib.optional withLwt lwt;
2021-01-15 09:52:05 +00:00
buildInputs = [
cmdliner
dune-configurator
2021-01-15 09:52:05 +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 ];
mainProgram = "hxd.xxd";
2021-01-15 09:52:05 +00:00
};
}