depot/third_party/nixpkgs/pkgs/development/ocaml-modules/tar/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

33 lines
684 B
Nix

{ lib
, fetchurl
, buildDunePackage
, camlp-streams
, cstruct
, decompress
}:
buildDunePackage rec {
pname = "tar";
version = "2.6.0";
src = fetchurl {
url = "https://github.com/mirage/ocaml-tar/releases/download/v${version}/tar-${version}.tbz";
hash = "sha256-yv8MtwRjQ+K/9/wPkhfk4xI1VV5MSIn7GUeSmFtvse4=";
};
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 ];
};
}