2019-10-02 18:03:51 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
2019-01-21 01:48:04 +00:00
|
|
|
, gst-plugins-base
|
|
|
|
, gst-plugins-bad
|
2018-03-31 22:14:10 +01:00
|
|
|
}:
|
2018-03-25 18:36:10 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gst-rtsp-server";
|
2019-12-05 17:24:17 +00:00
|
|
|
version = "1.16.2";
|
2018-03-25 18:36:10 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-10-02 17:59:16 +01:00
|
|
|
url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
|
2019-12-05 17:24:17 +00:00
|
|
|
sha256 = "0vn23nxwvs96g7gcxw5zbnw23hkhky8a8r42wq68411vgf1s41yy";
|
2018-03-25 18:36:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-09-03 09:52:46 +01:00
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2019-10-02 18:03:51 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
pkgconfig
|
|
|
|
];
|
2018-03-25 18:36:10 +01:00
|
|
|
|
2019-10-02 18:03:51 +01:00
|
|
|
buildInputs = [
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-bad
|
|
|
|
];
|
2019-01-21 01:48:04 +00:00
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
|
|
|
];
|
2019-10-02 18:03:51 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
2018-03-25 18:36:10 +01:00
|
|
|
}
|