Files
nixpkgs/pkgs/by-name/li/librist/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1010 B
Nix

{
stdenv,
lib,
fetchFromGitLab,
meson,
ninja,
pkg-config,
cjson,
cmocka,
mbedtls,
}:
stdenv.mkDerivation rec {
pname = "librist";
version = "0.2.11";
src = fetchFromGitLab {
domain = "code.videolan.org";
owner = "rist";
repo = "librist";
rev = "v${version}";
hash = "sha256-xWqyQl3peB/ENReMcDHzIdKXXCYOJYbhhG8tcSh36dY=";
};
# avoid rebuild on Linux for now
patches = lib.optionals stdenv.hostPlatform.isDarwin [
# https://code.videolan.org/rist/librist/-/issues/192
./no-brew-darwin.diff
];
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
cjson
cmocka
mbedtls
];
meta = with lib; {
description = "Library that can be used to easily add the RIST protocol to your application";
homepage = "https://code.videolan.org/rist/librist";
license = with licenses; [
bsd2
mit
isc
];
maintainers = with maintainers; [ raphaelr ];
platforms = platforms.all;
};
}