2021-06-04 09:07:49 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libbsd, libevent, libjpeg }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ustreamer";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "4.11";
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pikvm";
|
|
|
|
repo = "ustreamer";
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-MTzlhnnDVZzS3lnYe3P/Hi6pi6f4B0+ejmDwV0f9juI=";
|
2021-06-04 09:07:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libbsd libevent libjpeg ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ustreamer $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/pikvm/ustreamer";
|
|
|
|
description = "Lightweight and fast MJPG-HTTP streamer";
|
|
|
|
longDescription = ''
|
|
|
|
µStreamer is a lightweight and very quick server to stream MJPG video from
|
|
|
|
any V4L2 device to the net. All new browsers have native support of this
|
|
|
|
video format, as well as most video players such as mplayer, VLC etc.
|
|
|
|
µStreamer is a part of the Pi-KVM project designed to stream VGA and HDMI
|
|
|
|
screencast hardware data with the highest resolution and FPS possible.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ tfc ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|