This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ packages
, mkShell
, stdenv
, lib
, cacert
, curl
, ocamlPackages
, git
, h2spec
, release-mode ? false
}:
let
h2Drvs = lib.filterAttrs (_: value: lib.isDerivation value) packages;
in
(mkShell {
inputsFrom = lib.attrValues h2Drvs;
buildInputs =
(if release-mode then [
cacert
curl
ocamlPackages.dune-release
git
] else [ ])
++ (with ocamlPackages; [
merlin
ocamlformat
utop
h2spec
httpun-lwt-unix
tls-lwt
]);
}).overrideAttrs (o: {
propagatedBuildInputs = lib.filter
(drv: drv.pname == null || !(lib.any (name: name == drv.pname) (lib.attrNames h2Drvs)))
o.propagatedBuildInputs;
})