aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix/update-inputs.sh
diff options
context:
space:
mode:
authorMihai Fufezan <[email protected]>2023-04-10 14:53:50 +0300
committerMihai Fufezan <[email protected]>2023-04-10 14:53:50 +0300
commit7faead75bd57b5d52572a6a46c9c38336b282fda (patch)
tree8953464588d0cdb9040b36b4c9b62bfe6e1fbfc2 /nix/update-inputs.sh
parenta1b1480c21a3ca7c35fd5ab99c966322f64b2f3b (diff)
downloadHyprland-7faead75bd57b5d52572a6a46c9c38336b282fda.tar.gz
Hyprland-7faead75bd57b5d52572a6a46c9c38336b282fda.zip
nix: update xdph
workflows/nix-update: update all inputs
Diffstat (limited to 'nix/update-inputs.sh')
-rwxr-xr-xnix/update-inputs.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/nix/update-inputs.sh b/nix/update-inputs.sh
index 91a835c2..f4b63f9c 100755
--- a/nix/update-inputs.sh
+++ b/nix/update-inputs.sh
@@ -5,17 +5,17 @@ set -ex
# get wlroots revision from submodule
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)
+CRT_REV=$(jq <flake.lock '.nodes.wlroots.locked.rev' -r)
-if [ $SUB_REV != $CRT_REV ]; then
- # update nixpkgs to latest version
- nix flake lock --update-input nixpkgs
+if [ "$SUB_REV" != "$CRT_REV" ]; then
+ # update inputs to latest versions
+ nix flake update
# update wlroots to submodule revision
nix flake lock --override-input wlroots "gitlab:wlroots/wlroots/$SUB_REV?host=gitlab.freedesktop.org"
# 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
echo "wlroots is up to date!"
fi