blob: 2fda3114c25358af4a6349619f58a8ed9e79c108 [file]
#!/usr/bin/env bash
#
# Copyright 2026 The Fuchsia Authors
#
# Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
# <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
# license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
# This file may not be copied, modified, or distributed except according to
# those terms.
set -euo pipefail
cd "$(dirname "$0")/.."
# Force Nix to instantiate every package and devShell derivation across every
# target platform declared in `flake.nix`.
for output in packages devShells; do
nix eval --json ".#$output" \
--apply 'builtins.mapAttrs (_: builtins.mapAttrs (_: pkg: pkg.drvPath))' \
>/dev/null
done