mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 09:45:59 +01:00
nix: update xdph
workflows/nix-update: update all inputs
This commit is contained in:
parent
a1b1480c21
commit
7faead75bd
2 changed files with 8 additions and 8 deletions
|
@ -72,11 +72,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681066882,
|
"lastModified": 1681127512,
|
||||||
"narHash": "sha256-8szxuwDOQcYyS8TZokGpIJYzaTwBQ9pmmcCkeuX2YV8=",
|
"narHash": "sha256-vklOOhBj5W8fii6yN4L2WY5ZeifBmsq3+mJ2wC1Pk9U=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "xdg-desktop-portal-hyprland",
|
"repo": "xdg-desktop-portal-hyprland",
|
||||||
"rev": "e48165c5637260cf2a88494a112269922dee58de",
|
"rev": "04f579377a32781ce57c9cf4ba2a5bcb7f53fa97",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -5,17 +5,17 @@ set -ex
|
||||||
# get wlroots revision from submodule
|
# get wlroots revision from submodule
|
||||||
SUB_REV=$(git submodule status | rg wlroots | awk '{ print substr($1,2)}')
|
SUB_REV=$(git submodule status | rg wlroots | awk '{ print substr($1,2)}')
|
||||||
# and from lockfile
|
# and from lockfile
|
||||||
CRT_REV=$(jq < flake.lock '.nodes.wlroots.locked.rev' -r)
|
CRT_REV=$(jq <flake.lock '.nodes.wlroots.locked.rev' -r)
|
||||||
|
|
||||||
if [ $SUB_REV != $CRT_REV ]; then
|
if [ "$SUB_REV" != "$CRT_REV" ]; then
|
||||||
# update nixpkgs to latest version
|
# update inputs to latest versions
|
||||||
nix flake lock --update-input nixpkgs
|
nix flake update
|
||||||
|
|
||||||
# update wlroots to submodule revision
|
# update wlroots to submodule revision
|
||||||
nix flake lock --override-input wlroots "gitlab:wlroots/wlroots/$SUB_REV?host=gitlab.freedesktop.org"
|
nix flake lock --override-input wlroots "gitlab:wlroots/wlroots/$SUB_REV?host=gitlab.freedesktop.org"
|
||||||
|
|
||||||
# remove "dirty" mark from lockfile
|
# remove "dirty" mark from lockfile
|
||||||
jq < flake.lock 'del(.nodes.wlroots.original.rev)' | sponge flake.lock
|
jq <flake.lock 'del(.nodes.wlroots.original.rev)' | sponge flake.lock
|
||||||
else
|
else
|
||||||
echo "wlroots is up to date!"
|
echo "wlroots is up to date!"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue