60 lines
1.4 KiB
Nix
60 lines
1.4 KiB
Nix
{ stdenv
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, pkgconfig
|
|
, gettext
|
|
, gobject-introspection
|
|
, gst-plugins-base
|
|
, gst-plugins-bad
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gst-rtsp-server";
|
|
version = "1.16.2";
|
|
|
|
src = fetchurl {
|
|
url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
|
|
sha256 = "0vn23nxwvs96g7gcxw5zbnw23hkhky8a8r42wq68411vgf1s41yy";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
patches = [
|
|
# To use split outputs, we need this so double prefix won't be used in the
|
|
# pkg-config files. Hopefully, this won't be needed on the next release,
|
|
# _if_
|
|
# https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/merge_requests/1
|
|
# will be merged. For the current release, this merge request won't apply.
|
|
./fix_pkgconfig_includedir.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
gettext
|
|
gobject-introspection
|
|
pkgconfig
|
|
];
|
|
|
|
buildInputs = [
|
|
gst-plugins-base
|
|
gst-plugins-bad
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "GStreamer RTSP server";
|
|
homepage = "https://gstreamer.freedesktop.org";
|
|
longDescription = ''
|
|
A library on top of GStreamer for building an RTSP server.
|
|
'';
|
|
license = licenses.lgpl2Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ bkchr ];
|
|
};
|
|
}
|