nixpkgs/pkgs/by-name/ne/nekoray/nekobox-core.nix
Toma b95f829e42
nekoray: init at 3.26 (#300794)
* nekoray: init at 3.26

* nekoray: limit meta.platforms to linux

---------

Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
2024-04-10 09:48:55 +08:00

37 lines
819 B
Nix

{
buildGoModule,
version,
src,
extraSources,
}:
buildGoModule rec {
pname = "nekobox-core";
inherit version src;
sourceRoot = "${src.name}/go/cmd/nekobox_core";
postPatch = ''
cp -r --no-preserve=all ${extraSources.libneko} ../../../../libneko
cp -r --no-preserve=all ${extraSources.sing-box-extra} ../../../../sing-box-extra
cp -r --no-preserve=all ${extraSources.sing-box} ../../../../sing-box
cp -r --no-preserve=all ${extraSources.sing-quic} ../../../../sing-quic
'';
vendorHash = "sha256-q/Co67AwJVElJnEY2O0SLLUzwlGiqazKu+fD/nnbrTk=";
ldflags = [
"-w"
"-s"
"-X github.com/matsuridayo/libneko/neko_common.Version_neko=${version}"
];
tags = [
"with_clash_api"
"with_gvisor"
"with_quic"
"with_wireguard"
"with_utls"
"with_ech"
];
}