2021-04-26 19:14:03 +00:00
|
|
|
{ buildDunePackage
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, mirage-stack
|
|
|
|
, mirage-time
|
2021-05-20 23:08:51 +00:00
|
|
|
, h2
|
2021-04-26 19:14:03 +00:00
|
|
|
, tls-mirage
|
|
|
|
, mimic
|
|
|
|
, ke
|
|
|
|
, bigstringaf
|
|
|
|
, faraday
|
|
|
|
, tls
|
|
|
|
, lwt
|
|
|
|
, logs
|
|
|
|
, fmt
|
|
|
|
, mirage-crypto-rng
|
|
|
|
, tcpip
|
|
|
|
, mirage-time-unix
|
|
|
|
, ptime
|
|
|
|
, uri
|
|
|
|
, alcotest-lwt
|
2021-10-01 09:20:50 +00:00
|
|
|
, cstruct
|
2021-04-26 19:14:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "paf";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "0.4.0";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/dinosaure/paf-le-chien/releases/download/${version}/paf-${version}.tbz";
|
2023-03-04 12:14:45 +00:00
|
|
|
hash = "sha256-ux8fk4XDdih4Ua9NGOJVSuPseJBPv6+6ND/esHrluQE=";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
patches = [
|
|
|
|
# Compatibility with mirage-crypto 0.11.0
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/dinosaure/paf-le-chien/commit/2f308c1c4d3ff49d42136f8ff86a4385661e4d1b.patch";
|
|
|
|
hash = "sha256-jmSeUpoRoUMPUNEH3Av2LxgRZs+eAectK+CpoH+SdpY=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2022-12-28 21:21:41 +00:00
|
|
|
duneVersion = "3";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
mirage-stack
|
|
|
|
mirage-time
|
2021-05-20 23:08:51 +00:00
|
|
|
h2
|
2021-04-26 19:14:03 +00:00
|
|
|
tls-mirage
|
|
|
|
mimic
|
|
|
|
ke
|
|
|
|
bigstringaf
|
|
|
|
faraday
|
|
|
|
tls
|
2021-10-01 09:20:50 +00:00
|
|
|
cstruct
|
2022-01-25 03:21:06 +00:00
|
|
|
tcpip
|
2021-04-26 19:14:03 +00:00
|
|
|
];
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2021-04-26 19:14:03 +00:00
|
|
|
lwt
|
|
|
|
logs
|
|
|
|
fmt
|
|
|
|
mirage-crypto-rng
|
|
|
|
mirage-time-unix
|
|
|
|
ptime
|
|
|
|
uri
|
|
|
|
alcotest-lwt
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
meta = {
|
|
|
|
description = "HTTP/AF and MirageOS";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.sternenseemann ];
|
|
|
|
homepage = "https://github.com/dinosaure/paf-le-chien";
|
|
|
|
};
|
|
|
|
}
|