nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1#!/usr/bin/env nix-shell
2#!nix-shell -i bash -p curl pup common-updater-scripts
3
4set -eu -o pipefail
5
6version="$(curl -Ls https://fedorapeople.org/groups/virt/virtio-win/repo/latest/ | \
7 pup 'a[href*="virtio-win-"] text{}' | \
8 sed -E 's/virtio-win-(.*)\.noarch\.rpm/\1/' | \
9 sort -Vu | \
10 tail -n1)"
11
12update-source-version virtio-win "$version"