Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv
2, lib
3, fetchFromGitLab
4, meson
5, ninja
6, pkg-config
7, cjson
8, cmocka
9, mbedtls
10}:
11
12stdenv.mkDerivation rec {
13 pname = "librist";
14 version = "0.2.7";
15
16 src = fetchFromGitLab {
17 domain = "code.videolan.org";
18 owner = "rist";
19 repo = "librist";
20 rev = "v${version}";
21 sha256 = "sha256-qQG2eRAPAQgxghMeUZk3nwyacX6jDl33F8BWW63nM3c=";
22 };
23
24 nativeBuildInputs = [
25 meson
26 ninja
27 pkg-config
28 ];
29
30 buildInputs = [
31 cjson
32 cmocka
33 mbedtls
34 ];
35
36 meta = with lib; {
37 description = "A library that can be used to easily add the RIST protocol to your application.";
38 homepage = "https://code.videolan.org/rist/librist";
39 license = with licenses; [ bsd2 mit isc ];
40 maintainers = with maintainers; [ raphaelr sebtm ];
41 platforms = platforms.all;
42 };
43}