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