ocamlPackages.pcap-format: init at 0.5.2
This commit is contained in:
parent
ba66c5b87d
commit
9e3040ef41
41
pkgs/development/ocaml-modules/pcap-format/default.nix
Normal file
41
pkgs/development/ocaml-modules/pcap-format/default.nix
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{ lib, buildDunePackage, fetchurl
|
||||||
|
, ppx_cstruct, ppx_tools
|
||||||
|
, cstruct, ounit, mmap
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildDunePackage rec {
|
||||||
|
pname = "pcap-format";
|
||||||
|
version = "0.5.2";
|
||||||
|
|
||||||
|
minimumOCamlVersion = "4.03";
|
||||||
|
|
||||||
|
# due to cstruct
|
||||||
|
useDune2 = true;
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/mirage/ocaml-pcap/releases/download/${version}/${pname}-${version}.tbz";
|
||||||
|
sha256 = "14c5rpgglyz41jic0fg0xa22d2w1syb86kva22y9fi7aqj9vm31f";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
ppx_tools
|
||||||
|
ppx_cstruct
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
cstruct
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkInputs = [
|
||||||
|
ounit
|
||||||
|
mmap
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Decode and encode PCAP (packet capture) files";
|
||||||
|
homepage = "https://mirage.github.io/ocaml-pcap";
|
||||||
|
license = licenses.isc;
|
||||||
|
maintainers = [ maintainers.sternenseemann ];
|
||||||
|
};
|
||||||
|
}
|
@ -796,6 +796,8 @@ let
|
|||||||
|
|
||||||
parse-argv = callPackage ../development/ocaml-modules/parse-argv { };
|
parse-argv = callPackage ../development/ocaml-modules/parse-argv { };
|
||||||
|
|
||||||
|
pcap-format = callPackage ../development/ocaml-modules/pcap-format { };
|
||||||
|
|
||||||
pgsolver = callPackage ../development/ocaml-modules/pgsolver { };
|
pgsolver = callPackage ../development/ocaml-modules/pgsolver { };
|
||||||
|
|
||||||
phylogenetics = callPackage ../development/ocaml-modules/phylogenetics { };
|
phylogenetics = callPackage ../development/ocaml-modules/phylogenetics { };
|
||||||
|
Loading…
Reference in New Issue
Block a user