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,32 @@
{ pkgs
, packages
, stdenv
, lib
, release-mode ? false
}:
let
httpunDrvs = lib.filterAttrs (_: value: lib.isDerivation value) packages;
in
with pkgs;
(mkShell {
OCAMLRUNPARAM = "b";
nativeBuildInputs =
lib.optionals release-mode [
cacert
curl
ocamlPackages.dune-release
git
];
inputsFrom = lib.attrValues httpunDrvs;
buildInputs = with ocamlPackages; [ merlin utop ];
}).overrideAttrs (o: {
propagatedBuildInputs = lib.filter
(drv:
!(lib.hasAttr "pname" drv) ||
drv.pname == null ||
!(lib.any (name: name == drv.pname) (lib.attrNames httpunDrvs)))
o.propagatedBuildInputs;
})