ocamlPackages.tar: 2.0.1 → 2.2.2 (#209021)

Co-authored-by: Ulrik Strid <ulrik.strid@outlook.com>
This commit is contained in:
Vincent Laporte 2023-01-11 07:50:23 +01:00 committed by GitHub
parent 9089ee1796
commit 7148e613d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 22 deletions

View file

@ -1,40 +1,38 @@
{ lib { lib
, fetchFromGitHub , fetchurl
, buildDunePackage , buildDunePackage
, camlp-streams , camlp-streams
, ppx_cstruct , ppx_cstruct
, cstruct , cstruct
, re , decompress
, ppx_tools
}: }:
buildDunePackage rec { buildDunePackage rec {
pname = "tar"; pname = "tar";
version = "2.0.1"; version = "2.2.2";
src = fetchFromGitHub { src = fetchurl {
owner = "mirage"; url = "https://github.com/mirage/ocaml-tar/releases/download/v${version}/tar-${version}.tbz";
repo = "ocaml-tar"; hash = "sha256-Q+41LPFZFHi9sXKFV3F13FZZNO3KXRSElEmr+nH58Uw=";
rev = "v${version}";
sha256 = "1zr1ak164k1jm15xwqjf1iv77kdrrahak33wrxg7lifz9nnl0dms";
}; };
useDune2 = true; duneVersion = "3";
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [ propagatedBuildInputs = [
camlp-streams camlp-streams
ppx_cstruct
cstruct cstruct
re decompress
]; ];
buildInputs = [ buildInputs = [
ppx_tools ppx_cstruct
]; ];
doCheck = true; doCheck = true;
meta = { meta = {
description = "Decode and encode tar format files from Unix"; description = "Decode and encode tar format files in pure OCaml";
homepage = "https://github.com/mirage/ocaml-tar";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = [ lib.maintainers.ulrikstrid ]; maintainers = [ lib.maintainers.ulrikstrid ];
}; };

View file

@ -1,27 +1,22 @@
{ lib { lib
, buildDunePackage , buildDunePackage
, tar , tar
, cstruct
, cstruct-lwt , cstruct-lwt
, re
, lwt , lwt
}: }:
buildDunePackage rec { buildDunePackage rec {
pname = "tar-unix"; pname = "tar-unix";
inherit (tar) version src useDune2 doCheck; inherit (tar) version src doCheck;
duneVersion = "3";
propagatedBuildInputs = [ propagatedBuildInputs = [
tar tar
cstruct
cstruct-lwt cstruct-lwt
re
lwt lwt
]; ];
meta = { meta = tar.meta // {
description = "Decode and encode tar format files from Unix"; description = "Decode and encode tar format files from Unix";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.ulrikstrid ];
}; };
} }