2021-01-17 02:09:27 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config
|
2020-07-16 03:47:54 +00:00
|
|
|
, ffmpeg, libjpeg, libmicrohttpd }:
|
2016-11-07 00:38:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "motion";
|
2021-11-03 15:38:42 +00:00
|
|
|
version = "4.4.0";
|
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";
|
2020-07-16 03:47:20 +00:00
|
|
|
rev = "release-${version}";
|
2021-11-03 15:38:42 +00:00
|
|
|
sha256 = "sha256-srL9F99HHq5cw82rnQpywkTuY4s6hqIO64Pw5CnaG5Q=";
|
2016-11-07 00:38:23 +00:00
|
|
|
};
|
2017-12-30 05:17:17 +00:00
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2018-11-04 11:51:27 +00:00
|
|
|
|
2020-07-16 03:47:54 +00:00
|
|
|
buildInputs = [ ffmpeg libjpeg libmicrohttpd ];
|
2017-12-30 05:17:17 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-11-07 00:38:23 +00:00
|
|
|
description = "Monitors the video signal from cameras";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://motion-project.github.io/";
|
2016-11-07 00:38:23 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2018-12-15 16:28:34 +00:00
|
|
|
maintainers = with maintainers; [ puffnfresh veprbl ];
|
2020-07-16 03:48:07 +00:00
|
|
|
platforms = platforms.unix;
|
2016-11-07 00:38:23 +00:00
|
|
|
};
|
|
|
|
}
|