at 25.11-pre 28 lines 523 B view raw
1{ 2 lib, 3 writeScript, 4 coreutils, 5 curl, 6 gnugrep, 7 jq, 8 common-updater-scripts, 9 runtimeShell, 10}: 11 12writeScript "update-tp_smapi" '' 13 #!${runtimeShell} 14 PATH=${ 15 lib.makeBinPath [ 16 common-updater-scripts 17 coreutils 18 curl 19 gnugrep 20 jq 21 ] 22 } 23 24 tags=`curl -s https://api.github.com/repos/evgeni/tp_smapi/tags` 25 latest_tag=`echo $tags | jq -r '.[] | .name' | grep -oP "^tp-smapi/\K.*" | sort --version-sort | tail -1` 26 27 update-source-version linuxPackages.tp_smapi "$latest_tag" 28''