mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
59a94b57f0
To make updating large attribute sets faster, the update scripts are now run in parallel. Please note the following changes in semantics: - The string passed to updateScript needs to be a path to an executable file. - The updateScript can also be a list: the tail elements will then be passed to the head as command line arguments.
12 lines
448 B
Nix
12 lines
448 B
Nix
{ stdenv, lib, writeScript, coreutils, curl, gnugrep, jq, common-updater-scripts }:
|
|
|
|
writeScript "update-tp_smapi" ''
|
|
#!${stdenv.shell}
|
|
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"
|
|
''
|