2021-10-14 00:43:12 +00:00
|
|
|
{ lib
|
2023-01-11 07:51:40 +00:00
|
|
|
, fetchurl
|
2021-10-14 00:43:12 +00:00
|
|
|
, buildDunePackage
|
2022-06-16 17:23:12 +00:00
|
|
|
, camlp-streams
|
2021-10-14 00:43:12 +00:00
|
|
|
, cstruct
|
2023-01-11 07:51:40 +00:00
|
|
|
, decompress
|
2021-10-14 00:43:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "tar";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.5.1";
|
2023-01-11 07:51:40 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-tar/releases/download/v${version}/tar-${version}.tbz";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-00QPSIZnoFvhZEnDcdEDJUqhE0uKLxNMM2pUE8aMPfQ=";
|
2021-10-14 00:43:12 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
camlp-streams
|
2021-10-14 00:43:12 +00:00
|
|
|
cstruct
|
2023-01-11 07:51:40 +00:00
|
|
|
decompress
|
2021-10-14 00:43:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2023-01-11 07:51:40 +00:00
|
|
|
description = "Decode and encode tar format files in pure OCaml";
|
|
|
|
homepage = "https://github.com/mirage/ocaml-tar";
|
2021-10-14 00:43:12 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.ulrikstrid ];
|
|
|
|
};
|
|
|
|
}
|