1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 19:39:42 +01:00
nixos-hardware/tests/eval.sh

17 lines
287 B
Bash
Raw Normal View History

2017-12-24 12:44:48 +01:00
#!/bin/sh
2017-12-25 18:23:16 +01:00
set -e
2017-12-24 12:44:48 +01:00
2017-12-25 18:23:16 +01:00
cd "$(dirname "$0")/.."
2017-12-25 18:23:16 +01:00
for profile in $(find . -name default.nix); do
echo evaluating $profile >&2
2017-12-25 18:23:16 +01:00
nix-build '<nixpkgs/nixos>' \
-I nixos-config=tests/eval.nix \
2017-12-25 18:23:16 +01:00
-I nixos-hardware-profile=$profile \
-A system \
--dry-run \
--show-trace
2017-12-24 12:44:48 +01:00
done