2019-06-16 21:59:06 +02:00
|
|
|
{ lib, writeScript, coreutils, curl, gnugrep, jq, common-updater-scripts, runtimeShell }:
|
2016-12-10 04:37:37 +01:00
|
|
|
|
|
|
|
writeScript "update-tp_smapi" ''
|
2019-02-26 12:45:54 +01:00
|
|
|
#!${runtimeShell}
|
2017-02-19 15:33:31 +01:00
|
|
|
PATH=${lib.makeBinPath [ common-updater-scripts coreutils curl gnugrep jq ]}
|
2016-12-10 04:37:37 +01:00
|
|
|
|
|
|
|
tags=`curl -s https://api.github.com/repos/evgeni/tp_smapi/tags`
|
|
|
|
latest_tag=`echo $tags | jq -r '.[] | .name' | grep -oP "^tp-smapi/\K.*" | sort --version-sort | tail -1`
|
|
|
|
|
2017-02-19 15:33:31 +01:00
|
|
|
update-source-version linuxPackages.tp_smapi "$latest_tag"
|
2016-12-10 04:37:37 +01:00
|
|
|
''
|