v2rayn: add update script
This commit is contained in:
@@ -37,7 +37,7 @@ buildDotnetModule rec {
|
||||
--replace-fail "/bin/bash" "${bash}/bin/bash"
|
||||
'';
|
||||
|
||||
dotnetInstallFlags = [ "-p:PublishReadyToRun=false" ];
|
||||
dotnetBuildFlags = [ "-p:PublishReadyToRun=false" ];
|
||||
|
||||
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
||||
|
||||
@@ -104,6 +104,8 @@ buildDotnetModule rec {
|
||||
magick "v2rayN/v2rayN.Desktop/Assets/v2rayN.ico[11]" $out/share/pixmaps/v2rayn.png
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = {
|
||||
description = "GUI client for Windows and Linux, support Xray core and sing-box-core and others";
|
||||
homepage = "https://github.com/2dust/v2rayN";
|
||||
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p bash nix nix-update
|
||||
|
||||
set -eou pipefail
|
||||
|
||||
nix-update v2rayn
|
||||
|
||||
$(nix-build -A v2rayn.fetch-deps)
|
||||
Reference in New Issue
Block a user