1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-21 18:02:32 +01:00
client/nix-rebuild-flake.sh

8 lines
335 B
Bash
Raw Permalink 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=