From 34281ff4791d06b76ad877a73d0ba44d9bafdd16 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Thu, 18 Aug 2022 14:47:25 -0600 Subject: [PATCH] ryujinx: Migrate updater script to fetch-deps in buildDotnetModule --- pkgs/applications/emulators/ryujinx/updater.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/pkgs/applications/emulators/ryujinx/updater.sh b/pkgs/applications/emulators/ryujinx/updater.sh index c403af37856a..5827271138d6 100755 --- a/pkgs/applications/emulators/ryujinx/updater.sh +++ b/pkgs/applications/emulators/ryujinx/updater.sh @@ -1,5 +1,5 @@ #! /usr/bin/env nix-shell -#! nix-shell -I nixpkgs=./. -i bash -p coreutils gnused curl common-updater-scripts nuget-to-nix nix-prefetch-git jq dotnet-sdk_6 +#! nix-shell -I nixpkgs=./. -i bash -p coreutils gnused curl common-updater-scripts nix-prefetch-git jq set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" @@ -75,16 +75,4 @@ fi echo "building Nuget lockfile" -STORE_SRC="$(nix-build . -A ryujinx.src --no-out-link)" -SRC="$(mktemp -d /tmp/ryujinx-src.XXX)" -cp -rT "$STORE_SRC" "$SRC" -chmod -R +w "$SRC" -pushd "$SRC" - -mkdir nuget_tmp.packages -DOTNET_CLI_TELEMETRY_OPTOUT=1 dotnet restore Ryujinx.sln --packages nuget_tmp.packages - -nuget-to-nix ./nuget_tmp.packages >"$DEPS_FILE" - -popd -rm -r "$SRC" +$(nix-build -A ryujinx.fetch-deps --no-out-link) "$DEPS_FILE"