nixos/tests/v2ray: init
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ lib, linkFarm, buildGoModule, runCommand, makeWrapper
|
||||
{ lib, linkFarm, buildGoModule, runCommand, makeWrapper, nixosTests
|
||||
|
||||
# Version specific args
|
||||
, version, src, assets, vendorSha256
|
||||
@@ -44,6 +44,10 @@ in runCommand "v2ray-${version}" {
|
||||
maintainers = with lib.maintainers; [ servalcatty ];
|
||||
};
|
||||
|
||||
passthru.tests = {
|
||||
simple-vmess-proxy-test = nixosTests.v2ray;
|
||||
};
|
||||
|
||||
} ''
|
||||
for file in ${core}/bin/*; do
|
||||
makeWrapper "$file" "$out/bin/$(basename "$file")" \
|
||||
|
||||
Reference in New Issue
Block a user