Files
nixpkgs/pkgs/development/ocaml-modules/zipc/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
897 B
Nix

{
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.2.0";
src = fetchurl {
url = "https://erratique.ch/software/zipc/releases/zipc-${version}.tbz";
hash = "sha256-YQqkCURwrJgFH0+zgfket25zJQ4w+Tcc1mTSrDuWRt0=";
};
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 ];
};
}