Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1e3e562cdca3
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0f864eb45b2e
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 22, 2021

  1. ocamlPackages.hxd: init at 0.2.0

    sternenseemann authored and vbgl committed Jan 22, 2021

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    angerman Moritz Angermann
    Copy the full SHA
    0f864eb View commit details
Showing with 43 additions and 0 deletions.
  1. +41 −0 pkgs/development/ocaml-modules/hxd/default.nix
  2. +2 −0 pkgs/top-level/ocaml-packages.nix
41 changes: 41 additions & 0 deletions pkgs/development/ocaml-modules/hxd/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
@@ -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 { };