mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 01:37:24 +08:00
16 lines
454 B
Bash
Executable File
16 lines
454 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Helper script to update the tests flake hash
|
|
set -euo pipefail
|
|
|
|
# Go to the root of the repository
|
|
cd "$(dirname "$0")/.."
|
|
|
|
echo "Updating tests.narHash..." >&2
|
|
|
|
# Update the flake lock file
|
|
nix --extra-experimental-features 'flakes nix-command' flake lock ./tests
|
|
|
|
# Generate the hash
|
|
nix --extra-experimental-features 'flakes nix-command' hash path ./tests > ./tests.narHash
|
|
|
|
echo "Hash updated successfully: $(cat tests.narHash)" |