3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/video/ustreamer/default.nix
2021-10-28 14:56:19 +00:00

38 lines
1.1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, libbsd, libevent, libjpeg }:
stdenv.mkDerivation rec {
pname = "ustreamer";
version = "4.6";
src = fetchFromGitHub {
owner = "pikvm";
repo = "ustreamer";
rev = "v${version}";
sha256 = "sha256-FBgnE9EKZf3aYrGNf9cday9r4Q7Ztu7g+0LnFKAhvrI=";
};
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;
};
}