depot/third_party/nixpkgs/pkgs/applications/virtualization/driver/win-virtio/update.sh
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

12 lines
376 B
Bash
Executable file

#!/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)"
update-source-version win-virtio "$version"