nix: update wlroots & fix updater

This commit is contained in:
Mihai Fufezan 2022-12-24 02:20:02 +02:00
parent f7ce3c27ea
commit d87d2dac0b
No known key found for this signature in database
GPG key ID: 5899325F2F120900
2 changed files with 10 additions and 8 deletions

View file

@ -1,7 +1,9 @@
#!/usr/bin/env -S nix shell nixpkgs#gawk nixpkgs#git nixpkgs#moreutils nixpkgs#jq -c bash
#!/usr/bin/env -S nix shell nixpkgs#gawk nixpkgs#git nixpkgs#moreutils nixpkgs#jq nixpkgs#ripgrep -c bash
set -ex
# get wlroots revision from submodule
SUB_REV=$(git submodule status | awk '{ print substr($1,2)}')
SUB_REV=$(git submodule status | rg wlroots | awk '{ print substr($1,2)}')
# and from lockfile
CRT_REV=$(jq < flake.lock '.nodes.wlroots.locked.rev' -r)