diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2023-11-15 06:48:29 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2023-11-22 07:15:30 +0100 |
commit | f3770720e15f06686fded2d737c833e695a838a8 (patch) | |
tree | 3148f299201c9462e7bd77ffd91705b3c88f07cf /pkgs/development/ocaml-modules | |
parent | 170e3945bbc696b19b1106af85c6e03375174864 (diff) |
ocamlPackages.zipc: init at 0.1.0
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/zipc/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/zipc/default.nix b/pkgs/development/ocaml-modules/zipc/default.nix new file mode 100644 index 0000000000000..a4b22de3e94b1 --- /dev/null +++ b/pkgs/development/ocaml-modules/zipc/default.nix @@ -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 ]; + }; +} |