nixpkgs/pkgs/by-name/vi/virtio-win/update.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
376 B
Bash
Raw Normal View History

2023-08-16 22:38:41 +02:00
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pup common-updater-scripts
set -eu -o pipefail
version="$(curl -Ls https://fedorapeople.org/groups/virt/virtio-win/repo/latest/ | \
pup 'a[href*="virtio-win-"] text{}' | \
sed -E 's/virtio-win-(.*)\.noarch\.rpm/\1/' | \
sort -Vu | \
tail -n1)"
2023-10-17 23:38:15 +02:00
update-source-version virtio-win "$version"