depot/third_party/nixpkgs/pkgs/by-name/tu/turn-rs/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

36 lines
874 B
Nix

{
rustPlatform,
lib,
fetchFromGitHub,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage rec {
pname = "turn-rs";
version = "3.1.0";
src = fetchFromGitHub {
owner = "mycrl";
repo = "turn-rs";
rev = "refs/tags/v${version}";
hash = "sha256-uXMRDgSHrwT6+kejWRSE1WjXO8LaOR+fnffIXcL3A4I=";
};
cargoHash = "sha256-gO2vuOQMvl6KYp529k3CYDyma5ECzOr/lcSvP4OpUUo=";
passthru = {
updateScript = nix-update-script { };
tests.nixos = nixosTests.turn-rs;
};
meta = {
description = "Pure rust implemented turn server";
homepage = "https://github.com/mycrl/turn-rs";
changelog = "https://github.com/mycrl/turn-rs/releases/tag/v${version}";
license = lib.licenses.gpl3Only;
mainProgram = "turn-server";
maintainers = with lib.maintainers; [ bot-wxt1221 ];
platforms = lib.platforms.linux;
};
}