This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
40
unikernel/duniverse/ocaml-h2/nix/shell.nix
Normal file
40
unikernel/duniverse/ocaml-h2/nix/shell.nix
Normal 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;
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue