depot/third_party/nixpkgs/pkgs/development/tools/mongosh/generate.sh
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

21 lines
429 B
Bash
Executable file

#!/usr/bin/env nix-shell
#! nix-shell -i bash -p node2nix
MONGOSH_ROOT="$(
cd "$(dirname "$0")"
pwd
)"
pushd $MONGOSH_ROOT 1>/dev/null
rm -rf gen && mkdir -p gen
node2nix \
--no-copy-node-env \
--node-env ../../node-packages/node-env.nix \
--input packages.json \
--output gen/packages.nix \
--composition gen/composition.nix \
--strip-optional-dependencies \
--nodejs-14
popd 1>/dev/null