nixos/tests/v2ray: init

This commit is contained in:
Serval
2020-09-02 22:18:52 +08:00
parent 9a5a8949aa
commit 4ac99e76bc
3 changed files with 89 additions and 1 deletions
+5 -1
View File
@@ -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")" \