Skip to content

Commit 39e24a9

Browse files
committed
Use locked flake rev in update-json script
1 parent 442e702 commit 39e24a9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bin/update-json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
FLAKE_REF="github:staticweb-io/wordpress-flake"
4+
FLAKE_REV=$(nix flake metadata ./dev --json 2>/dev/null | jq -r '.locks.nodes["wordpress-flake"].locked.rev')
5+
FLAKE_REF="github:staticweb-io/wordpress-flake/$FLAKE_REV"
56
SYSTEM=$(nix eval --impure --expr builtins.currentSystem --raw)
67

78
echo "Getting wordpress_* packages from $FLAKE_REF for system $SYSTEM..."

0 commit comments

Comments
 (0)