nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 ocaml,
6 findlib,
7 ocamlbuild,
8 topkg,
9 cmdliner,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "ocaml${ocaml.version}-zipc";
14 version = "0.2.0";
15
16 src = fetchurl {
17 url = "https://erratique.ch/software/zipc/releases/zipc-${version}.tbz";
18 hash = "sha256-YQqkCURwrJgFH0+zgfket25zJQ4w+Tcc1mTSrDuWRt0=";
19 };
20
21 strictDeps = true;
22
23 nativeBuildInputs = [
24 ocaml
25 findlib
26 ocamlbuild
27 ];
28
29 buildInputs = [
30 cmdliner
31 topkg
32 ];
33
34 inherit (topkg) buildPhase installPhase;
35
36 meta = {
37 description = "ZIP archive and deflate codec for OCaml";
38 homepage = "https://erratique.ch/software/zipc";
39 license = lib.licenses.isc;
40 maintainers = [ lib.maintainers.vbgl ];
41 broken = !(lib.versionAtLeast ocaml.version "4.14");
42 };
43}