Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 54 lines 1.0 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitLab, 5 meson, 6 ninja, 7 pkg-config, 8 cjson, 9 cmocka, 10 mbedtls, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "librist"; 15 version = "0.2.11"; 16 17 src = fetchFromGitLab { 18 domain = "code.videolan.org"; 19 owner = "rist"; 20 repo = "librist"; 21 rev = "v${version}"; 22 hash = "sha256-xWqyQl3peB/ENReMcDHzIdKXXCYOJYbhhG8tcSh36dY="; 23 }; 24 25 # avoid rebuild on Linux for now 26 patches = lib.optionals stdenv.hostPlatform.isDarwin [ 27 # https://code.videolan.org/rist/librist/-/issues/192 28 ./no-brew-darwin.diff 29 ]; 30 31 nativeBuildInputs = [ 32 meson 33 ninja 34 pkg-config 35 ]; 36 37 buildInputs = [ 38 cjson 39 cmocka 40 mbedtls 41 ]; 42 43 meta = with lib; { 44 description = "Library that can be used to easily add the RIST protocol to your application"; 45 homepage = "https://code.videolan.org/rist/librist"; 46 license = with licenses; [ 47 bsd2 48 mit 49 isc 50 ]; 51 maintainers = with maintainers; [ raphaelr ]; 52 platforms = platforms.all; 53 }; 54}