1 #! /usr/bin/env nix-shell
2 #! nix-shell -I nixpkgs=./. -i bash -p curl jq common-updater-scripts
3 # shellcheck shell=bash
7 cd "$(dirname "${BASH_SOURCE[0]}")"
9 new_version
="$(curl -s "https
://api.github.com
/repos
/OmniSharp
/omnisharp-roslyn
/releases?per_page
=1" | jq -r '.[0].name')"
10 old_version
="$(sed -nE 's/\s*version = "(.
*)".*/\1/p' ./default.nix)"
12 if [[ "$new_version" == "$old_version" ]]; then
13 echo "Already up to date!"
18 update-source-version omnisharp-roslyn
"${new_version//v}"
20 $
(nix-build
-A omnisharp-roslyn.fetch-deps
--no-out-link)