nixpkgs/pkgs/development/ocaml-modules/tar/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
759 B
Nix
Raw Normal View History

2021-09-21 11:43:13 +03:00
{ lib
, fetchurl
2021-09-21 11:43:13 +03:00
, buildDunePackage
2022-05-28 06:48:46 +03:00
, camlp-streams
2021-09-21 11:43:13 +03:00
, ppx_cstruct
, cstruct
, decompress
2021-09-21 11:43:13 +03:00
}:
buildDunePackage rec {
pname = "tar";
version = "2.2.2";
src = fetchurl {
url = "https://github.com/mirage/ocaml-tar/releases/download/v${version}/tar-${version}.tbz";
hash = "sha256-Q+41LPFZFHi9sXKFV3F13FZZNO3KXRSElEmr+nH58Uw=";
2021-09-21 11:43:13 +03:00
};
duneVersion = "3";
minimalOCamlVersion = "4.08";
2021-09-21 11:43:13 +03:00
propagatedBuildInputs = [
2022-05-28 06:48:46 +03:00
camlp-streams
2021-09-21 11:43:13 +03:00
cstruct
decompress
2021-09-21 11:43:13 +03:00
];
buildInputs = [
ppx_cstruct
2021-09-21 11:43:13 +03:00
];
doCheck = true;
meta = {
description = "Decode and encode tar format files in pure OCaml";
homepage = "https://github.com/mirage/ocaml-tar";
2021-09-21 11:43:13 +03:00
license = lib.licenses.mit;
maintainers = [ lib.maintainers.ulrikstrid ];
};
}