depot/third_party/nixpkgs/pkgs/by-name/vi/violet/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

38 lines
820 B
Nix

{
lib,
cmake,
fetchFromGitHub,
nix-update-script,
stdenv,
violet,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "violet";
version = "0.4.6";
src = fetchFromGitHub {
owner = "paullouisageneau";
repo = "violet";
rev = "v${finalAttrs.version}";
hash = "sha256-a/WRFr6C6MWQBAG0PIDdSRVd4wnQgchPeTMoxUa2Qus=";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ];
passthru = {
updateScript = nix-update-script { };
tests = testers.testVersion { package = violet; };
};
meta = {
description = "Lightweight STUN/TURN server";
homepage = "https://github.com/paullouisageneau/violet";
license = lib.licenses.gpl2Only;
mainProgram = "violet";
maintainers = with lib.maintainers; [ oluceps ];
platforms = lib.platforms.all;
};
})