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.

34 lines
684 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
, cstruct
, decompress
2021-09-21 11:43:13 +03:00
}:
buildDunePackage rec {
pname = "tar";
2023-09-05 22:47:52 +03:00
version = "2.5.1";
src = fetchurl {
url = "https://github.com/mirage/ocaml-tar/releases/download/v${version}/tar-${version}.tbz";
2023-09-05 22:47:52 +03:00
hash = "sha256-00QPSIZnoFvhZEnDcdEDJUqhE0uKLxNMM2pUE8aMPfQ=";
2021-09-21 11:43:13 +03:00
};
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
];
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 ];
};
}