81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
68 lines
1.4 KiB
Nix
68 lines
1.4 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, python3
|
|
, gettext
|
|
, gobject-introspection
|
|
, gst-plugins-base
|
|
, gst-plugins-bad
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gst-rtsp-server";
|
|
version = "1.20.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
|
|
sha256 = "sha256-wgn17ZBtpxP91EqIROkJqmyK89+2MCWbCSz7d6d1WEM=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
# "devdoc" # disabled until `hotdoc` is packaged in nixpkgs
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
gettext
|
|
gobject-introspection
|
|
pkg-config
|
|
python3
|
|
|
|
# documentation
|
|
# TODO add hotdoc here
|
|
];
|
|
|
|
buildInputs = [
|
|
gst-plugins-base
|
|
gst-plugins-bad
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
|
"-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing
|
|
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
|
"-Dintrospection=disabled"
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs \
|
|
scripts/extract-release-date-from-doap-file.py
|
|
'';
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|