mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
ocamlPackages.tar: init at 1.1.0
This commit is contained in:
parent
b2c49d1d71
commit
993fe6176a
39
pkgs/development/ocaml-modules/tar/default.nix
Normal file
39
pkgs/development/ocaml-modules/tar/default.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildDunePackage
|
||||
, ppx_cstruct
|
||||
, cstruct
|
||||
, re
|
||||
, ppx_tools
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "tar";
|
||||
version = "1.1.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "mirage";
|
||||
repo = "ocaml-tar";
|
||||
rev = "v${version}";
|
||||
sha256 = "14k24vn3q5jl0iyrynb5vwg80670qsv12fsmc6cdgh4zwdpjh7zs";
|
||||
};
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ppx_cstruct
|
||||
cstruct
|
||||
re
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
ppx_tools
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "Decode and encode tar format files from Unix";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.ulrikstrid ];
|
||||
};
|
||||
}
|
27
pkgs/development/ocaml-modules/tar/unix.nix
Normal file
27
pkgs/development/ocaml-modules/tar/unix.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ lib
|
||||
, buildDunePackage
|
||||
, tar
|
||||
, cstruct
|
||||
, cstruct-lwt
|
||||
, re
|
||||
, lwt
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "tar-unix";
|
||||
inherit (tar) version src useDune2 doCheck;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
tar
|
||||
cstruct
|
||||
cstruct-lwt
|
||||
re
|
||||
lwt
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Decode and encode tar format files from Unix";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.ulrikstrid ];
|
||||
};
|
||||
}
|
@ -1074,6 +1074,10 @@ let
|
||||
|
||||
spacetime_lib = callPackage ../development/ocaml-modules/spacetime_lib { };
|
||||
|
||||
tar-unix = callPackage ../development/ocaml-modules/tar/unix.nix { };
|
||||
|
||||
tar = callPackage ../development/ocaml-modules/tar { };
|
||||
|
||||
tcpip = callPackage ../development/ocaml-modules/tcpip { };
|
||||
|
||||
tsort = callPackage ../development/ocaml-modules/tsort { };
|
||||
|
Loading…
Reference in New Issue
Block a user