2021-10-14 00:43:12 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildDunePackage
|
2022-06-16 17:23:12 +00:00
|
|
|
, camlp-streams
|
2021-10-14 00:43:12 +00:00
|
|
|
, ppx_cstruct
|
|
|
|
, cstruct
|
|
|
|
, re
|
|
|
|
, ppx_tools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "tar";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "2.0.1";
|
2021-10-14 00:43:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mirage";
|
|
|
|
repo = "ocaml-tar";
|
|
|
|
rev = "v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "1zr1ak164k1jm15xwqjf1iv77kdrrahak33wrxg7lifz9nnl0dms";
|
2021-10-14 00:43:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
camlp-streams
|
2021-10-14 00:43:12 +00:00
|
|
|
ppx_cstruct
|
|
|
|
cstruct
|
|
|
|
re
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ppx_tools
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Decode and encode tar format files from Unix";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.ulrikstrid ];
|
|
|
|
};
|
|
|
|
}
|