nixpkgs/pkgs/by-name/vi/violet/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
820 B
Nix
Raw Normal View History

{
lib,
cmake,
fetchFromGitHub,
nix-update-script,
stdenv,
violet,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "violet";
2024-06-20 11:59:30 +03:00
version = "0.5.0";
src = fetchFromGitHub {
owner = "paullouisageneau";
repo = "violet";
rev = "v${finalAttrs.version}";
2024-06-20 11:59:30 +03:00
hash = "sha256-+cAgcGOMlhDdep8VuqP8DeELbMRXydRsD0xTyHqOuYM=";
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;
};
})