2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, libjpeg }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "mjpg-streamer";
|
|
|
|
version = "unstable-2019-05-24";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jacksonliam";
|
|
|
|
repo = "mjpg-streamer";
|
|
|
|
rev = "501f6362c5afddcfb41055f97ae484252c85c912";
|
|
|
|
sha256 = "1cl159svfs1zzzrd3zgn4x7qy6751bvlnxfwf5hn5fmg4iszajw7";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
cd mjpg-streamer-experimental
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ libjpeg ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
patchelf --set-rpath "$(patchelf --print-rpath $out/bin/mjpg_streamer):$out/lib/mjpg-streamer" $out/bin/mjpg_streamer
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/jacksonliam/mjpg-streamer";
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "Takes JPGs from Linux-UVC compatible webcams, filesystem or other input plugins and streams them as M-JPEG via HTTP to webbrowsers, VLC and other software";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "mjpg_streamer";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|