meson & nix: install wlroots headers (#2287)

This commit is contained in:
Mihai Fufezan 2023-05-16 20:50:18 +03:00 committed by GitHub
parent b5b9af508a
commit 78826c6d18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 61 additions and 2 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env -S nix shell nixpkgs#gawk nixpkgs#git nixpkgs#moreutils nixpkgs#jq nixpkgs#ripgrep -c bash
#!/usr/bin/env -S nix shell nixpkgs#gawk nixpkgs#git nixpkgs#gnused nixpkgs#moreutils nixpkgs#jq nixpkgs#ripgrep -c bash
set -ex
@ -16,6 +16,9 @@ if [ "$SUB_REV" != "$CRT_REV" ]; then
# remove "dirty" mark from lockfile
jq <flake.lock 'del(.nodes.wlroots.original.rev)' | sponge flake.lock
# fix revision in wlroots.wrap
sed -Ei "s/[a-z0-9]{40}/$CRT_REV/g" subprojects/wlroots.wrap
else
echo "wlroots is up to date!"
fi