Files
nixpkgs/pkgs/development/ocaml-modules/dream/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

92 lines
1.5 KiB
Nix

{
buildDunePackage,
dream-pure,
lwt_ppx,
camlp-streams,
caqti-lwt,
cstruct,
digestif,
dream-httpaf,
graphql-lwt,
h2-lwt-unix,
httpun-lwt-unix,
httpun-ws,
lambdasoup,
lwt_ssl,
magic-mime,
markup,
mirage-clock,
mirage-crypto-rng,
multipart_form-lwt,
ssl,
unstrctrd,
uri,
yojson,
# for mirage-crypro-rng-lwt 1.2.0
# It is removed from mirage-crypto 2.1.0 now.
fetchurl,
duration,
logs,
mtime,
lwt,
}:
let
mirage-crypto-rng-lwt = buildDunePackage rec {
pname = "mirage-crypto-rng-lwt";
version = "1.2.0";
src = fetchurl {
url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-${version}.tbz";
hash = "sha256-CVQrzZbB02j/m6iFMQX0wXgdjJTCQA3586wGEO4H5n4=";
};
doCheck = true;
propagatedBuildInputs = [
mirage-crypto-rng
duration
logs
mtime
lwt
];
};
in
buildDunePackage {
pname = "dream";
inherit (dream-pure) version src;
# Compatibility with httpun 0.2.0 and h2 0.13
patches = [ ./httpun.patch ];
buildInputs = [ lwt_ppx ];
propagatedBuildInputs = [
camlp-streams
caqti-lwt
cstruct
digestif
dream-httpaf
dream-pure
graphql-lwt
h2-lwt-unix
httpun-lwt-unix
httpun-ws
lambdasoup
lwt_ssl
magic-mime
markup
mirage-clock
mirage-crypto-rng
mirage-crypto-rng-lwt
multipart_form-lwt
ssl
unstrctrd
uri
yojson
];
meta = dream-pure.meta // {
description = "Tidy, feature-complete Web framework";
};
}