depot/third_party/nixpkgs/pkgs/development/ocaml-modules/paf/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

71 lines
1.1 KiB
Nix

{ buildDunePackage
, lib
, fetchurl
, mirage-stack
, mirage-time
, h2
, tls-mirage
, mimic
, ke
, bigstringaf
, faraday
, tls
, lwt
, logs
, fmt
, mirage-crypto-rng
, tcpip
, mirage-time-unix
, ptime
, uri
, alcotest-lwt
, cstruct
}:
buildDunePackage rec {
pname = "paf";
version = "0.5.0";
src = fetchurl {
url = "https://github.com/dinosaure/paf-le-chien/releases/download/${version}/paf-${version}.tbz";
hash = "sha256-oWRvwb8DhtF3ltWaZ6moKmgadFUngruo1UOIaGNV/oM=";
};
minimalOCamlVersion = "4.08";
duneVersion = "3";
propagatedBuildInputs = [
mirage-stack
mirage-time
h2
tls-mirage
mimic
ke
bigstringaf
faraday
tls
cstruct
tcpip
];
doCheck = true;
checkInputs = [
lwt
logs
fmt
mirage-crypto-rng
mirage-time-unix
ptime
uri
alcotest-lwt
];
__darwinAllowLocalNetworking = true;
meta = {
description = "HTTP/AF and MirageOS";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.sternenseemann ];
homepage = "https://github.com/dinosaure/paf-le-chien";
};
}