nixpkgs/pkgs/development/ocaml-modules/tar/default.nix
Vincent Laporte 7148e613d5
ocamlPackages.tar: 2.0.1 → 2.2.2 (#209021)
Co-authored-by: Ulrik Strid <ulrik.strid@outlook.com>
2023-01-11 07:50:23 +01:00

39 lines
759 B
Nix

{ lib
, fetchurl
, buildDunePackage
, camlp-streams
, ppx_cstruct
, cstruct
, decompress
}:
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=";
};
duneVersion = "3";
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [
camlp-streams
cstruct
decompress
];
buildInputs = [
ppx_cstruct
];
doCheck = true;
meta = {
description = "Decode and encode tar format files in pure OCaml";
homepage = "https://github.com/mirage/ocaml-tar";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.ulrikstrid ];
};
}