depot/third_party/nixpkgs/pkgs/development/ocaml-modules/tar/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

33 lines
684 B
Nix

{ lib
, fetchurl
, buildDunePackage
, camlp-streams
, cstruct
, decompress
}:
buildDunePackage rec {
pname = "tar";
version = "2.5.1";
src = fetchurl {
url = "https://github.com/mirage/ocaml-tar/releases/download/v${version}/tar-${version}.tbz";
hash = "sha256-00QPSIZnoFvhZEnDcdEDJUqhE0uKLxNMM2pUE8aMPfQ=";
};
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [
camlp-streams
cstruct
decompress
];
doCheck = true;
meta = {
description = "Decode and encode tar format files in pure OCaml";
homepage = "https://github.com/mirage/ocaml-tar";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.ulrikstrid ];
};
}