1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-25 19:52:31 +01:00
client/nix-rebuild-flake.sh

8 lines
335 B
Bash
Raw Normal View History

2023-04-23 16:19:07 +02:00
#!/usr/bin/env nix-shell
#!nix-shell -i "bash -x" -p nodejs nodePackages.ts-node prefetch-npm-deps bash
rm -rfv package-lock.json
npm i --save --ignore-scripts
DEPS_HASH=`prefetch-npm-deps package-lock.json`
sed 's/$NPM_HASH/'${DEPS_HASH/\//\\\/}'/g' flake.template.nix > flake.nix
#sha256-5iurI8d2mael4qR/gs4IeZpf5d6+QPBoZ+kvhrwoOIU=