1{ lib
2, fetchurl
3, buildDunePackage
4, camlp-streams
5, cstruct
6, decompress
7}:
8
9buildDunePackage rec {
10 pname = "tar";
11 version = "2.5.1";
12 src = fetchurl {
13 url = "https://github.com/mirage/ocaml-tar/releases/download/v${version}/tar-${version}.tbz";
14 hash = "sha256-00QPSIZnoFvhZEnDcdEDJUqhE0uKLxNMM2pUE8aMPfQ=";
15 };
16
17 minimalOCamlVersion = "4.08";
18
19 propagatedBuildInputs = [
20 camlp-streams
21 cstruct
22 decompress
23 ];
24
25 doCheck = true;
26
27 meta = {
28 description = "Decode and encode tar format files in pure OCaml";
29 homepage = "https://github.com/mirage/ocaml-tar";
30 license = lib.licenses.mit;
31 maintainers = [ lib.maintainers.ulrikstrid ];
32 };
33}