Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 79 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ stdenv, lib, fetchurl, meson, ninja, pkg-config, python3, gettext, gobject-introspection, gst-plugins-base, gst-plugins-bad, # Checks meson.is_cross_build(), so even canExecute isn't enough. enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc, directoryListingUpdater, apple-sdk_gstreamer,}:
stdenv.mkDerivation (finalAttrs: { pname = "gst-rtsp-server"; version = "1.26.0";
outputs = [ "out" "dev" ];
src = fetchurl { url = "https://gstreamer.freedesktop.org/src/gst-rtsp-server/gst-rtsp-server-${finalAttrs.version}.tar.xz"; hash = "sha256-6YPAOUluP3XjlpZVTOdNtBIOJGXeF6ocw3FgVo6bQLw="; };
nativeBuildInputs = [ meson ninja gettext gobject-introspection pkg-config python3 ] ++ lib.optionals enableDocumentation [ hotdoc ];
buildInputs = [ gst-plugins-base gst-plugins-bad ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_gstreamer ];
mesonFlags = [ "-Dglib_debug=disabled" # cast checks should be disabled on stable releases "-Dexamples=disabled" # requires many dependencies and probably not useful for our users (lib.mesonEnable "doc" enableDocumentation) ];
postPatch = '' patchShebangs \ scripts/extract-release-date-from-doap-file.py '';
passthru = { updateScript = directoryListingUpdater { }; };
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 ]; };})