2019-05-14 21:09:34 +01:00
|
|
|
#!/usr/bin/env nix-shell
|
2021-08-09 16:08:55 +01:00
|
|
|
#! nix-shell -i bash -I nixpkgs=../../../.. -p nodePackages.node2nix nix
|
2021-08-09 00:50:59 +01:00
|
|
|
|
2021-08-09 16:09:46 +01:00
|
|
|
# This script is meant to be run in the current directory
|
|
|
|
|
2021-08-09 00:50:59 +01:00
|
|
|
cryptpadSrc=$(nix eval '(import ../../../.. {}).cryptpad.src' --raw)
|
|
|
|
echo "cryptpad src: $cryptpadSrc"
|
|
|
|
|
2021-08-09 16:08:55 +01:00
|
|
|
nix-shell -I nixpkgs=../../../.. -p '(nodePackages.override { nodejs = nodejs-10_x; }).bower2nix' --run "bower2nix $cryptpadSrc/bower.json bower-packages.nix"
|
2021-08-09 00:50:59 +01:00
|
|
|
|
|
|
|
|
2019-05-14 21:09:34 +01:00
|
|
|
set -euo pipefail
|
|
|
|
|
2020-07-31 23:34:43 +01:00
|
|
|
node2nix --nodejs-12 \
|
2019-05-14 21:09:34 +01:00
|
|
|
--input node-packages.json \
|
|
|
|
--output node-packages-generated.nix \
|
|
|
|
--composition node-packages.nix \
|
2021-08-09 00:50:59 +01:00
|
|
|
--node-env ../../../development/node-packages/node-env.nix
|