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";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.6.0";
|
2023-01-11 07:51:40 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-tar/releases/download/v${version}/tar-${version}.tbz";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-yv8MtwRjQ+K/9/wPkhfk4xI1VV5MSIn7GUeSmFtvse4=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|