mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 15:21:24 +01:00
This is nice when messing around with the nix configuration, since you'll often end up building rocksdb *many* times. We shouldn't need to do anything to get the logs in CI because we're calling `nix-build-and-cache ci` at the beginning
17 lines
470 B
Bash
17 lines
470 B
Bash
#!/usr/bin/env bash
|
|
|
|
dotenv_if_exists
|
|
|
|
system="$(nix eval --impure --raw --expr 'builtins.currentSystem')"
|
|
devshell="${DIRENV_DEVSHELL:-default}"
|
|
|
|
if command -v nom &> /dev/null && [ -t 0 ]; then
|
|
# if nom is available, build the devshell dependencies with it to get nicer
|
|
# progress monitoring. Don't do this when stdout is piped, because it shows
|
|
# up weird in engage.
|
|
nom build ".#devShells.$system.$devshell"
|
|
fi
|
|
|
|
use flake ".#$devshell"
|
|
|
|
PATH_add bin
|