2018-11-04 11:51:27 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
|
|
|
|
, ffmpeg, libjpeg, libmicrohttpd }:
|
2016-11-07 00:38:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "motion-${version}";
|
2018-11-04 11:51:27 +00:00
|
|
|
version = "4.2";
|
2017-12-30 05:17:17 +00:00
|
|
|
|
2016-11-07 00:38:23 +00:00
|
|
|
src = fetchFromGitHub {
|
2018-11-04 11:51:27 +00:00
|
|
|
owner = "Motion-Project";
|
|
|
|
repo = "motion";
|
|
|
|
rev = "release-${version}";
|
|
|
|
sha256 = "0c0q6dl4v561m5y8bp0c0h4p3s52fjgcdnsrrf5ygdi288d3rfxv";
|
2016-11-07 00:38:23 +00:00
|
|
|
};
|
2017-12-30 05:17:17 +00:00
|
|
|
|
2016-11-07 00:38:23 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2018-11-04 11:51:27 +00:00
|
|
|
|
|
|
|
buildInputs = [ ffmpeg libjpeg libmicrohttpd ];
|
2017-12-30 05:17:17 +00:00
|
|
|
|
2016-11-07 00:38:23 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Monitors the video signal from cameras";
|
2018-11-04 11:51:27 +00:00
|
|
|
homepage = https://motion-project.github.io/;
|
2016-11-07 00:38:23 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2018-11-04 11:51:27 +00:00
|
|
|
maintainers = with maintainers; [ puffnfresh ];
|
2016-11-07 00:38:23 +00:00
|
|
|
};
|
|
|
|
}
|