We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 442e702 commit 39e24a9Copy full SHA for 39e24a9
1 file changed
bin/update-json
@@ -1,7 +1,8 @@
1
#!/usr/bin/env bash
2
set -euo pipefail
3
4
-FLAKE_REF="github:staticweb-io/wordpress-flake"
+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"
6
SYSTEM=$(nix eval --impure --expr builtins.currentSystem --raw)
7
8
echo "Getting wordpress_* packages from $FLAKE_REF for system $SYSTEM..."
0 commit comments