diff --git a/pkgs/by-name/v2/v2rayn/package.nix b/pkgs/by-name/v2/v2rayn/package.nix index e0a13d03aeddc..0bce75fa3d550 100644 --- a/pkgs/by-name/v2/v2rayn/package.nix +++ b/pkgs/by-name/v2/v2rayn/package.nix @@ -32,12 +32,14 @@ buildDotnetModule rec { nugetDeps = ./deps.json; + passthru.updateScript = ./update.sh; + postPatch = '' substituteInPlace v2rayN/ServiceLib/Common/Utils.cs \ --replace-fail "/bin/bash" "${bash}/bin/bash" ''; - dotnetInstallFlags = [ "-p:PublishReadyToRun=false" ]; + dotnetBuildFlags = [ "-p:PublishReadyToRun=false" ]; dotnet-sdk = dotnetCorePackages.sdk_8_0; diff --git a/pkgs/by-name/v2/v2rayn/update.sh b/pkgs/by-name/v2/v2rayn/update.sh new file mode 100755 index 0000000000000..a886594a63d34 --- /dev/null +++ b/pkgs/by-name/v2/v2rayn/update.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i bash -p bash nixVersions.latest nix-update + +set -eou pipefail + +nix-update v2rayn + +$(nix-build -A v2rayn.fetch-deps)