nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 cmake,
4 fetchFromGitHub,
5 nix-update-script,
6 stdenv,
7 testers,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "violet";
12 version = "0.5.4";
13
14 src = fetchFromGitHub {
15 owner = "paullouisageneau";
16 repo = "violet";
17 rev = "v${finalAttrs.version}";
18 hash = "sha256-OBrEydVqhbxJZED8mUjV605kvtbXPqb35X1XeNBNvjg=";
19 fetchSubmodules = true;
20 };
21
22 nativeBuildInputs = [ cmake ];
23
24 passthru = {
25 updateScript = nix-update-script { };
26 tests = testers.testVersion { package = finalAttrs.finalPackage; };
27 };
28
29 meta = {
30 description = "Lightweight STUN/TURN server";
31 homepage = "https://github.com/paullouisageneau/violet";
32 license = lib.licenses.gpl2Only;
33 mainProgram = "violet";
34 maintainers = with lib.maintainers; [ oluceps ];
35 platforms = lib.platforms.all;
36 };
37})