mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
3752605627
Including PR fixes as suggested by: - Sandro <sandro.jaeckel@gmail.com>
26 lines
719 B
Plaintext
Executable File
26 lines
719 B
Plaintext
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -I nixpkgs=../../../.. -i bash -p curl jq unzip
|
|
set -euf -o pipefail
|
|
|
|
declare scriptDir
|
|
scriptDir=$(cd "$(dirname "$0")"; pwd)
|
|
1>&2 echo "scriptDir='$scriptDir'"
|
|
|
|
. "$scriptDir/update-bin-srcs-lib.sh"
|
|
|
|
declare extPublisher="ms-dotnettools"
|
|
declare extName="csharp"
|
|
declare defaultExtVersion="1.23.2"
|
|
declare extVersion="${1:-$defaultExtVersion}"
|
|
|
|
formatExtRuntimeDeps \
|
|
"$extPublisher" "$extName" "$extVersion" \
|
|
| computeAndAttachExtRtDepsChecksums \
|
|
| jqStreamToJson \
|
|
| tee "$scriptDir/rt-deps-bin-srcs.json" \
|
|
| jq '.'
|
|
|
|
# TODO: Unfortunatly no simple json to nix implementation available.
|
|
# This would allow us to dump to './rt-deps-bin-srcs.nix' instead.
|
|
# jsonToNix
|