File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env nix-shell
2
- #! nix-shell -i bash -p zstd -p oras
2
+ #! nix-shell -i bash -p zstd -p oras -p jq
3
3
set -euox pipefail
4
4
5
- nix build " .#hydraJobs.${DEV_SHELL} " --show-trace --accept-flake-config
6
- nix-store --export $( nix-store -qR result) | tee store-paths.txt | zstd -z8T8 > ${DEV_SHELL}
5
+ SHELL_NIX_PATH=$( nix path-info " .#hydraJobs.${DEV_SHELL} " --accept-flake-config --json | jq -r ' keys[0]' )
6
+ nix-store -r " $SHELL_NIX_PATH "
7
+ # nix build ".#hydraJobs.${DEV_SHELL}" --show-trace --accept-flake-config
8
+ nix-store --export $( nix-store -qR " $SHELL_NIX_PATH " ) | tee store-paths.txt | zstd -z8T8 > ${DEV_SHELL}
7
9
if [[ ! $( tail -n 1 store-paths.txt) =~ " devx" ]]; then exit 1; fi
8
10
oras push ghcr.io/input-output-hk/devx:${DEV_SHELL} ${DEV_SHELL}
You can’t perform that action at this time.
0 commit comments