nixpkgs/pkgs/development/ocaml-modules/tar/default.nix
2023-09-05 21:49:41 +02:00

34 lines
684 B
Nix

{ lib
, fetchurl
, buildDunePackage
, camlp-streams
, cstruct
, decompress
}:
buildDunePackage rec {
pname = "tar";
version = "2.5.1";
src = fetchurl {
url = "https://github.com/mirage/ocaml-tar/releases/download/v${version}/tar-${version}.tbz";
hash = "sha256-00QPSIZnoFvhZEnDcdEDJUqhE0uKLxNMM2pUE8aMPfQ=";
};
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [
camlp-streams
cstruct
decompress
];
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 ];
};
}