Skip to content

Instantly share code, notes, and snippets.

@samueldr
Created August 15, 2020 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueldr/98eaf0ff87c635ca5c8ec62222382467 to your computer and use it in GitHub Desktop.
Save samueldr/98eaf0ff87c635ca5c8ec62222382467 to your computer and use it in GitHub Desktop.
#!/usr/bin/env nix-shell
#!nix-shell -p strace -i bash
set -e
set -u
PS4=" $ "
THIS="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd)"
# TODO: use a cached nix-built hydra from a hydra eval.
HYDRA="/Users/samuel/Projects/nixos/hydra" # FIXME
(set -x
cd "$HYDRA"
nix-build release.nix -A build
)
set -x
args=(
HYDRA_CONFIG="$THIS/hydra.conf"
strace -s 512 -fo trace.strace
"$HYDRA"/result/bin/hydra-eval-jobs
-I /nix/store
-I "$PWD"
# # Testing something, this shouldn't be enabled.
# -I "nixpkgs=$PWD/../master"
"$@"
#./nixos/release-combined.nix
./nixos/release-small.nix
)
time env -i \
"${args[@]}" > hydra-eval.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment