2018-11-04 12:51:27 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
|
2020-07-16 05:47:54 +02:00
|
|
|
, ffmpeg, libjpeg, libmicrohttpd }:
|
2016-11-07 01:38:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "motion";
|
2020-10-30 17:12:37 +01:00
|
|
|
version = "4.3.2";
|
2017-12-30 06:17:17 +01:00
|
|
|
|
2016-11-07 01:38:23 +01:00
|
|
|
src = fetchFromGitHub {
|
2018-11-04 12:51:27 +01:00
|
|
|
owner = "Motion-Project";
|
|
|
|
repo = "motion";
|
2020-07-16 05:47:20 +02:00
|
|
|
rev = "release-${version}";
|
2020-10-30 17:12:37 +01:00
|
|
|
sha256 = "09xs815jsivcilpmnrx2jkcxirj4lg5kp99fkr0p2sdxw03myi95";
|
2016-11-07 01:38:23 +01:00
|
|
|
};
|
2017-12-30 06:17:17 +01:00
|
|
|
|
2016-11-07 01:38:23 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2018-11-04 12:51:27 +01:00
|
|
|
|
2020-07-16 05:47:54 +02:00
|
|
|
buildInputs = [ ffmpeg libjpeg libmicrohttpd ];
|
2017-12-30 06:17:17 +01:00
|
|
|
|
2016-11-07 01:38:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Monitors the video signal from cameras";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://motion-project.github.io/";
|
2016-11-07 01:38:23 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2018-12-15 17:28:34 +01:00
|
|
|
maintainers = with maintainers; [ puffnfresh veprbl ];
|
2020-07-16 05:48:07 +02:00
|
|
|
platforms = platforms.unix;
|
2016-11-07 01:38:23 +01:00
|
|
|
};
|
|
|
|
}
|