v2rayn: use nix-update-script
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
bash,
|
||||
xorg,
|
||||
xdg-utils,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildDotnetModule rec {
|
||||
@@ -96,7 +97,7 @@ buildDotnetModule rec {
|
||||
install -Dm644 v2rayN/v2rayN.Desktop/v2rayN.png $out/share/pixmaps/v2rayn.png
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "GUI client for Windows and Linux, support Xray core and sing-box-core and others";
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/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