mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
f0b078ef9d
* ocamlPackages.hxd: 0.2.0 -> 0.3.1 ocamlPackages.hxd: disable lwt by default on OCaml 4.06 (syntax error) * ocamlPackages.duff: 0.3 -> 0.4 * ocamlPackages.decompress: 1.2.0 -> 1.3.0 Keep decompress 1.2.0 around as decompress-1-2 until imagelib supports decompress 1.3.0: https://github.com/rlepigre/ocaml-imagelib/issues/49 * ocamlPackages.carton*: 0.2.0 -> 0.4.0 * ocamlPackages.git: 3.3.0 -> 3.3.2
43 lines
931 B
Nix
43 lines
931 B
Nix
{ lib, buildDunePackage, fetchurl
|
|
, ocaml, dune-configurator, cmdliner
|
|
, lwt, withLwt ? lib.versionAtLeast ocaml.version "4.07"
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "hxd";
|
|
version = "0.3.1";
|
|
|
|
useDune2 = true;
|
|
|
|
minimumOCamlVersion = "4.06";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/dinosaure/hxd/releases/download/v${version}/hxd-v${version}.tbz";
|
|
sha256 = "1c226c91e17cd329dec0c287bfd20f36302aa533069ff9c6ced32721f96b29bc";
|
|
};
|
|
|
|
# ignore yes stderr output due to trapped SIGPIPE
|
|
postPatch = ''
|
|
sed -i 's|yes ".\+"|& 2> /dev/null|' test/*.t
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
dune-configurator
|
|
];
|
|
|
|
propagatedBuildInputs = lib.optional withLwt lwt;
|
|
|
|
buildInputs = [
|
|
cmdliner
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Hexdump in OCaml";
|
|
homepage = "https://github.com/dinosaure/hxd";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
};
|
|
}
|