mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 18:42:15 +00:00
f3282c8d1e
* treewide: remove unused variables * making ofborg happy
12 lines
454 B
Nix
12 lines
454 B
Nix
{ lib, writeScript, coreutils, curl, gnugrep, jq, common-updater-scripts, runtimeShell }:
|
|
|
|
writeScript "update-tp_smapi" ''
|
|
#!${runtimeShell}
|
|
PATH=${lib.makeBinPath [ common-updater-scripts coreutils curl gnugrep jq ]}
|
|
|
|
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`
|
|
|
|
update-source-version linuxPackages.tp_smapi "$latest_tag"
|
|
''
|