Files
nixpkgs/pkgs/by-name/g3/g3proxy/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

63 lines
1.2 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
c-ares,
python3,
lua5_4,
capnproto,
openssl,
rust-bindgen,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "g3proxy";
version = "1.12.2";
src = fetchFromGitHub {
owner = "bytedance";
repo = "g3";
tag = "g3proxy-v${finalAttrs.version}";
hash = "sha256-zh++wptu1hukQ+Bm5AWhjrLLyLuAb4owfJwDztfKnwY=";
};
cargoHash = "sha256-JNRH2IFUwzHarZZLxmYgyWr5lO1UX8H38EbmGoXebKo=";
cargoBuildFlags = [
"-p"
"g3proxy"
];
cargoTestFlags = finalAttrs.cargoBuildFlags;
nativeBuildInputs = [
pkg-config
python3
capnproto
rust-bindgen
];
buildInputs = [
c-ares
lua5_4
openssl
];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"^g3proxy-v([0-9.]+)$"
];
};
meta = {
description = "Enterprise-oriented Generic Proxy Solutions";
homepage = "https://github.com/bytedance/g3";
changelog = "https://github.com/bytedance/g3/blob/${finalAttrs.src.rev}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ raitobezarius ];
mainProgram = "g3proxy";
};
})