3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages.zipc: init at 0.1.0

This commit is contained in:
Vincent Laporte 2023-11-15 06:48:29 +01:00 committed by Vincent Laporte
parent 170e3945bb
commit f3770720e1
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ lib, stdenv, fetchurl
, ocaml, findlib, ocamlbuild, topkg, cmdliner
}:
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.14")
"zipc is not available for OCaml ${ocaml.version}"
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-zipc";
version = "0.1.0";
src = fetchurl {
url = "https://erratique.ch/software/zipc/releases/zipc-${version}.tbz";
hash = "sha256-vU4AGW1MjQ31xjwvyRKSn1AwS0X6gjLvaJGYKqzFRpk=";
};
strictDeps = true;
nativeBuildInputs = [
ocaml findlib ocamlbuild
];
buildInputs = [ cmdliner topkg ];
inherit (topkg) buildPhase installPhase;
meta = {
description = "ZIP archive and deflate codec for OCaml";
homepage = "https://erratique.ch/software/zipc";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
};
}

View file

@ -1896,6 +1896,8 @@ let
zelus-gtk = callPackage ../development/ocaml-modules/zelus-gtk { }; zelus-gtk = callPackage ../development/ocaml-modules/zelus-gtk { };
zipc = callPackage ../development/ocaml-modules/zipc { };
zmq = callPackage ../development/ocaml-modules/zmq { }; zmq = callPackage ../development/ocaml-modules/zmq { };
zmq-lwt = callPackage ../development/ocaml-modules/zmq/lwt.nix { }; zmq-lwt = callPackage ../development/ocaml-modules/zmq/lwt.nix { };