uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
34
pkgs/tools/networking/ngrok-2/update.sh
Executable file
34
pkgs/tools/networking/ngrok-2/update.sh
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -p httpie
|
||||
#!nix-shell -p jq
|
||||
#!nix-shell -i bash
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
get_download_info() {
|
||||
http --body \
|
||||
https://update.equinox.io/check \
|
||||
'Accept:application/json; q=1; version=1; charset=utf-8' \
|
||||
'Content-Type:application/json; charset=utf-8' \
|
||||
app_id=app_goVRodbMVm \
|
||||
channel=stable \
|
||||
os=$1 \
|
||||
goarm= \
|
||||
arch=$2 \
|
||||
| jq --arg sys "$1-$2" '{
|
||||
sys: $sys,
|
||||
url: .download_url,
|
||||
sha256: .checksum,
|
||||
version: .release.version
|
||||
}'
|
||||
}
|
||||
|
||||
(
|
||||
get_download_info linux 386
|
||||
get_download_info linux amd64
|
||||
get_download_info linux arm
|
||||
get_download_info linux arm64
|
||||
get_download_info darwin amd64
|
||||
get_download_info darwin arm64
|
||||
) | jq --slurp 'map ({ (.sys): . }) | add' \
|
||||
> pkgs/tools/networking/ngrok-2/versions.json
|
||||
Loading…
Add table
Add a link
Reference in a new issue