Skip to content

Instantly share code, notes, and snippets.

@samueldr
Created March 29, 2020 00:00
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/dddf9ee76e545501e6de7aead176d7b4 to your computer and use it in GitHub Desktop.
Save samueldr/dddf9ee76e545501e6de7aead176d7b4 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
time env -i \
HYDRA_CONFIG="$THIS/hydra.conf" \
strace -s 512 -fo trace.strace \
"$HYDRA"/result/bin/hydra-eval-jobs \
-I /nix/store \
-I "$PWD" \
"$@" \
./nixos/release-combined.nix > hydra-eval.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment