mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
34 lines
684 B
Nix
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 ];
|
|
};
|
|
}
|