Skip to content

Commit

Permalink
scripts(cachix): Update all scripts to use new cache
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomSpaceship committed Dec 2, 2024
1 parent 80cb5ce commit 510e830
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
12 changes: 6 additions & 6 deletions software/scripts/cachix/all-aarch64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ set -euo pipefail
cd "$(git rev-parse --show-toplevel)"

# push built packages
nix build .#defaultPackage.aarch64-linux --json | jq -r '.[].outputs | to_entries[].value' | cachix push qutrc-roar
nix build .#packages.aarch64-linux.simulation --json | jq -r '.[].outputs | to_entries[].value' | cachix push qutrc-roar
nix build .#defaultPackage.aarch64-linux --json | jq -r '.[].outputs | to_entries[].value' | cachix push roar-qurtc
nix build .#packages.aarch64-linux.simulation --json | jq -r '.[].outputs | to_entries[].value' | cachix push roar-qutrc

# push input flakes
nix flake archive --json | jq -r '.path,(.inputs|to_entries[].value.path)' | cachix push qutrc-roar
nix flake archive --json | jq -r '.path,(.inputs|to_entries[].value.path)' | cachix push roar-qutrc

# push dev shell environment
nix develop .#devShells.aarch64-linux.default --profile roar-devenv -c true
cachix push qutrc-roar roar-devenv
cachix push roar-qutrc roar-devenv

rm roar-devenv*

nix develop .#docs --profile roar-devenv -c true
cachix push qutrc-roar roar-devenv
cachix push roar-qutrc roar-devenv

rm roar-devenv*

nix develop .#devShells.aarch64-linux.simulation --profile roar-devenv -c true
cachix push qutrc-roar roar-devenv
cachix push roar-qutrc roar-devenv

rm roar-devenv*
21 changes: 11 additions & 10 deletions software/scripts/cachix/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,31 @@ set -euo pipefail
cd "$(git rev-parse --show-toplevel)"

# push built packages
nix build --json | jq -r '.[].outputs | to_entries[].value' | cachix push qutrc-roar
nix build .#docs --json | jq -r '.[].outputs | to_entries[].value' | cachix push qutrc-roar
nix build .#simulation --json | jq -r '.[].outputs | to_entries[].value' | cachix push qutrc-roar
nix build --json | jq -r '.[].outputs | to_entries[].value' | cachix push roar-qutrc
nix build .#docs --json | jq -r '.[].outputs | to_entries[].value' | cachix push roar-qutrc
nix build .#simulation --json | jq -r '.[].outputs | to_entries[].value' | cachix push roar-qutrc

# push useful tooling and the like
nix build .#pkgs.scripts.cachix-push --json | jq -r '.[].outputs | to_entries[].value' | cachix push qutrc-roar
nix build .#pkgs.scripts.cachix-push-minimal --json | jq -r '.[].outputs | to_entries[].value' | cachix push qutrc-roar
nix build .#pkgs.scripts.clean --json | jq -r '.[].outputs | to_entries[].value' | cachix push qutrc-roar
nix build .#pkgs.scripts.cachix.all --json | jq -r '.[].outputs | to_entries[].value' | cachix push roar-qutrc
nix build .#pkgs.scripts.cachix.build --json | jq -r '.[].outputs | to_entries[].value' | cachix push roar-qutrc
nix build .#pkgs.scripts.cachix.shell --json | jq -r '.[].outputs | to_entries[].value' | cachix push roar-qutrc
nix build .#pkgs.scripts.clean --json | jq -r '.[].outputs | to_entries[].value' | cachix push roar-qutrc

# push input flakes
nix flake archive --json | jq -r '.path,(.inputs|to_entries[].value.path)' | cachix push qutrc-roar
nix flake archive --json | jq -r '.path,(.inputs|to_entries[].value.path)' | cachix push roar-qutrc

# push dev shell environment
nix develop --profile roar-devenv -c true
cachix push qutrc-roar roar-devenv
cachix push roar-qutrc roar-devenv

rm roar-devenv*

nix develop .#docs --profile roar-devenv -c true
cachix push qutrc-roar roar-devenv
cachix push roar-qutrc roar-devenv

rm roar-devenv*

nix develop .#simulation --profile roar-devenv -c true
cachix push qutrc-roar roar-devenv
cachix push roar-qutrc roar-devenv

rm roar-devenv*

0 comments on commit 510e830

Please sign in to comment.