2022-10-21 18:38:19 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, cjson
|
|
|
|
, cmocka
|
|
|
|
, mbedtls
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "librist";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.2.10";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "code.videolan.org";
|
|
|
|
owner = "rist";
|
|
|
|
repo = "librist";
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-8N4wQXxjNZuNGx/c7WVAV5QS48Bff5G3t11UkihT+K0=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/257020
|
|
|
|
./darwin.patch
|
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cjson
|
|
|
|
cmocka
|
|
|
|
mbedtls
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library that can be used to easily add the RIST protocol to your application";
|
2022-10-21 18:38:19 +00:00
|
|
|
homepage = "https://code.videolan.org/rist/librist";
|
|
|
|
license = with licenses; [ bsd2 mit isc ];
|
|
|
|
maintainers = with maintainers; [ raphaelr sebtm ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|