nixpkgs-gnome-mobile/update.sh

19 lines
783 B
Bash
Raw Normal View History

2023-06-09 16:23:44 +02:00
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p coreutils common-updater-scripts git
tmpdir="$(mktemp -d)"
2023-11-28 04:34:50 +01:00
git clone --bare --depth=1 --branch=mobile-shell https://gitlab.gnome.org/verdre/mobile-shell.git "$tmpdir"
2023-06-09 16:23:44 +02:00
pushd "$tmpdir"
new_version="unstable-$(git show -s --pretty='format:%cs')"
commit_sha="$(git show -s --pretty='format:%H')"
popd
2024-11-08 22:35:37 +01:00
update-source-version "gnome-shell" --file=overlay.nix "$new_version" --rev="$commit_sha"
2023-06-09 16:23:44 +02:00
tmpdir="$(mktemp -d)"
2023-11-28 04:34:50 +01:00
git clone --bare --depth=1 --branch=mobile-shell https://gitlab.gnome.org/verdre/mobile-mutter.git "$tmpdir"
2023-06-09 16:23:44 +02:00
pushd "$tmpdir"
new_version="unstable-$(git show -s --pretty='format:%cs')"
commit_sha="$(git show -s --pretty='format:%H')"
popd
2024-11-08 22:35:37 +01:00
update-source-version "mutter" --file=overlay.nix "$new_version" --rev="$commit_sha"