mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 20:23:02 +00:00
7148e613d5
Co-authored-by: Ulrik Strid <ulrik.strid@outlook.com>
40 lines
759 B
Nix
40 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 ];
|
|
};
|
|
}
|