mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-10 00:35:43 +00:00
Jakub Sokołowski
46bd2b2e4c
Changes: - Add missing lazy assignment for OS_NAME, fixes double Nix shells - Moved `scripts/add-nix-gcroots.sh` to `nix/scripts/gcroots.sh` - Moved Nix package manager setup to `nix/scripts/setup.sh` - Created `nix/scripts/source.sh` to reuse in all Nix scripts - Created `STARTING_GUIDE.md` with instructions for contributors - Created `scripts/colors.sh` for definition of shell colors - Removed `scripts/setup` in favor of `nix/scripts/setup.sh` - Removed all of `scripts/lib` since it was useless Signed-off-by: Jakub Sokołowski <jakub@status.im>
16 lines
446 B
Bash
Executable File
16 lines
446 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -Eeu
|
|
|
|
GIT_ROOT=$(cd "${BASH_SOURCE%/*}" && git rev-parse --show-toplevel)
|
|
source "${GIT_ROOT}/nix/scripts/source.sh"
|
|
|
|
GIT_ROOT=$(cd "${BASH_SOURCE%/*}" && git rev-parse --show-toplevel)
|
|
|
|
rm -rf .nix-gcroots
|
|
mkdir .nix-gcroots
|
|
|
|
drv=$(nix-instantiate --argstr target all --add-root ${GIT_ROOT}/shell.nix)
|
|
refs=$(nix-store --query --references $drv)
|
|
nix-store -r $refs --indirect --add-root $GIT_ROOT/.nix-gcroots/shell.dep
|