diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-01-15 10:52:05 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2021-01-22 08:39:58 +0100 |
commit | 0f864eb45b2e868d0b4bf00cce5e8513f683f930 (patch) | |
tree | fe4f9909ff3406ca8228b8d4a665760d63d3c059 | |
parent | 1e3e562cdca325d2c61f48181883d4590d4c94ca (diff) | |
download | nixpkgs-0f864eb45b2e868d0b4bf00cce5e8513f683f930.tar nixpkgs-0f864eb45b2e868d0b4bf00cce5e8513f683f930.tar.gz nixpkgs-0f864eb45b2e868d0b4bf00cce5e8513f683f930.tar.bz2 nixpkgs-0f864eb45b2e868d0b4bf00cce5e8513f683f930.tar.lz nixpkgs-0f864eb45b2e868d0b4bf00cce5e8513f683f930.tar.xz nixpkgs-0f864eb45b2e868d0b4bf00cce5e8513f683f930.tar.zst nixpkgs-0f864eb45b2e868d0b4bf00cce5e8513f683f930.zip |
ocamlPackages.hxd: init at 0.2.0
-rw-r--r-- | pkgs/development/ocaml-modules/hxd/default.nix | 41 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 2 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/hxd/default.nix b/pkgs/development/ocaml-modules/hxd/default.nix new file mode 100644 index 00000000000..1d677ac1a2e --- /dev/null +++ b/pkgs/development/ocaml-modules/hxd/default.nix @@ -0,0 +1,41 @@ +{ lib, buildDunePackage, fetchurl +, dune-configurator, cmdliner, angstrom +, rresult, stdlib-shims, fmt, fpath +}: + +buildDunePackage rec { + pname = "hxd"; + version = "0.2.0"; + + useDune2 = true; + + minimumOCamlVersion = "4.06"; + + src = fetchurl { + url = "https://github.com/dinosaure/hxd/releases/download/v${version}/hxd-v${version}.tbz"; + sha256 = "1lyfrq058cc9x0c0hzsf3hv3ys0h8mxkwin9lldidlnj10izqf1l"; + }; + + nativeBuildInputs = [ + dune-configurator + ]; + + buildInputs = [ + cmdliner + angstrom + rresult + fmt + fpath + ]; + + propagatedBuildInputs = [ + stdlib-shims + ]; + + meta = with lib; { + description = "Hexdump in OCaml"; + homepage = "https://github.com/dinosaure/hxd"; + license = licenses.mit; + maintainers = [ maintainers.sternenseemann ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 78b5959f3c2..17653a93d74 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -361,6 +361,8 @@ let hmap = callPackage ../development/ocaml-modules/hmap { }; + hxd = callPackage ../development/ocaml-modules/hxd { }; + imagelib = callPackage ../development/ocaml-modules/imagelib { }; imagelib-unix = callPackage ../development/ocaml-modules/imagelib/unix.nix { }; |