Skip to content

Commit

Permalink
v2rayn: add update script
Browse files Browse the repository at this point in the history
  • Loading branch information
aucub committed Dec 24, 2024
1 parent fc9c333 commit 83333a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/by-name/v2/v2rayn/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
8 changes: 8 additions & 0 deletions pkgs/by-name/v2/v2rayn/update.sh
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 83333a0

Please sign in to comment.