2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, libjpeg }:
|
2015-01-02 16:35:02 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mjpg-streamer";
|
2019-05-31 17:57:24 +01:00
|
|
|
version = "unstable-2019-05-24";
|
2015-01-02 16:35:02 +00:00
|
|
|
|
2016-03-12 14:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jacksonliam";
|
|
|
|
repo = "mjpg-streamer";
|
2019-05-31 17:57:24 +01:00
|
|
|
rev = "501f6362c5afddcfb41055f97ae484252c85c912";
|
|
|
|
sha256 = "1cl159svfs1zzzrd3zgn4x7qy6751bvlnxfwf5hn5fmg4iszajw7";
|
2015-01-02 16:35:02 +00:00
|
|
|
};
|
|
|
|
|
2016-03-12 14:36:52 +00:00
|
|
|
prePatch = ''
|
|
|
|
cd mjpg-streamer-experimental
|
2015-01-02 16:35:02 +00:00
|
|
|
'';
|
|
|
|
|
2016-03-12 14:36:52 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ libjpeg ];
|
2015-01-02 16:35:02 +00:00
|
|
|
|
2016-03-12 14:36:52 +00:00
|
|
|
postFixup = ''
|
|
|
|
patchelf --set-rpath "$(patchelf --print-rpath $out/bin/mjpg_streamer):$out/lib/mjpg-streamer" $out/bin/mjpg_streamer
|
2015-01-02 16:35:02 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-31 17:57:24 +01:00
|
|
|
homepage = "https://github.com/jacksonliam/mjpg-streamer";
|
2020-10-26 04:08:40 +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";
|
2016-03-12 14:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2016-06-07 02:57:21 +01:00
|
|
|
license = licenses.gpl2;
|
2019-05-31 17:57:24 +01:00
|
|
|
maintainers = with maintainers; [ gebner ];
|
2015-01-02 16:35:02 +00:00
|
|
|
};
|
|
|
|
}
|