From 83333a0b2939b2c961a0b76e999e1bad598b3334 Mon Sep 17 00:00:00 2001 From: aucub <78630225+aucub@users.noreply.github.com> Date: Tue, 24 Dec 2024 17:11:53 +0800 Subject: [PATCH] v2rayn: add update script --- pkgs/by-name/v2/v2rayn/package.nix | 4 +++- pkgs/by-name/v2/v2rayn/update.sh | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 pkgs/by-name/v2/v2rayn/update.sh 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)