about summary refs log tree commit diff
path: root/pkgs/games/osu-lazer
diff options
context:
space:
mode:
authormdarocha <git@mdarocha.pl>2022-04-25 07:58:44 +0200
committermdarocha <git@mdarocha.pl>2022-04-25 07:58:44 +0200
commit58c8e4c8c0a82c1de690226af5eb4153a7c495e6 (patch)
treef51f1e13095ab839ac69d59bc1145bfa5cb0d614 /pkgs/games/osu-lazer
parent5f4419669239b6fe391130fb1cd0368e9d3626b7 (diff)
osu-lazer: fix update.sh script
Use the currently checked out nixpkgs, not the system one.
Also add a CLI flag to not update the app, but dependencies only.
Diffstat (limited to 'pkgs/games/osu-lazer')
-rwxr-xr-xpkgs/games/osu-lazer/update.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/games/osu-lazer/update.sh b/pkgs/games/osu-lazer/update.sh
index 7aa3d678bd2dd..ae130e187ccf0 100755
--- a/pkgs/games/osu-lazer/update.sh
+++ b/pkgs/games/osu-lazer/update.sh
@@ -1,5 +1,5 @@
 #!/usr/bin/env nix-shell
-#!nix-shell -i bash -p curl jq common-updater-scripts nuget-to-nix dotnet-sdk
+#!nix-shell -I nixpkgs=../../../. -i bash -p curl jq common-updater-scripts nuget-to-nix dotnet-sdk
 set -eo pipefail
 cd "$(dirname "${BASH_SOURCE[0]}")"
 
@@ -13,7 +13,11 @@ if [[ "$new_version" == "$old_version" ]]; then
 fi
 
 cd ../../..
-update-source-version osu-lazer "$new_version"
+
+if [[ "$1" != "--deps-only" ]]; then
+    update-source-version osu-lazer "$new_version"
+fi
+
 store_src="$(nix-build . -A osu-lazer.src --no-out-link)"
 src="$(mktemp -d /tmp/osu-src.XXX)"
 echo "Temp src dir: $src"
@@ -26,6 +30,7 @@ export DOTNET_NOLOGO=1
 export DOTNET_CLI_TELEMETRY_OPTOUT=1
 
 mkdir ./nuget_tmp.packages
+dotnet --info
 dotnet restore osu.Desktop --packages ./nuget_tmp.packages --runtime linux-x64
 
 nuget-to-nix ./nuget_tmp.packages > "$deps_file"