1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-05 10:22:31 +01:00
server/nix-rebuild-flake.sh
Emma [it/its]@Rory& 9a16f10160 Add nix support
2023-12-10 22:25:22 +01:00

5 lines
199 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i "bash -x" -p bash
DEPS_HASH=`nix run nixpkgs#prefetch-npm-deps -- package-lock.json`
sed 's/$NPM_HASH/'${DEPS_HASH/\//\\\/}'/g' flake.template.nix > flake.nix