---
# System prepended metadata

title: envoy node2nix

---

envoy node2nix
===


https://github.com/svanderburg/node2nix/issues/106#issuecomment-442952578

```
git clone https://github.com/svanderburg/node2nix

cd node2nix

nix-env -f default.nix -iA package

git clone https://github.com/Holo-Host/envoy

cd envoy

node2nix --nodejs-10 -i package.json -l package-lock.json --supplement-input node-packages.json --include-peer-dependencies


vim override.nix
```
contents of `node-packages.json`

```
[
  "typescript"
]
```

contents of `override.nix`

```nix
{ pkgs ? import <nixpkgs> {}
, system ? builtins.currentSystem
}:

let
  nodePackages = import ./default.nix {
    inherit pkgs system;
  };
in
nodePackages // {
  package = nodePackages.package.override {
    postInstall = ''
    tsc
    '';
  };
}
```


```
nix-build override.nix -A package



###### tags: `envoy` `holo` `nix` `node2nix`



