2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config
|
2020-08-20 17:08:02 +00:00
|
|
|
, ffmpeg, libjpeg, libmicrohttpd }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "motion";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "4.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Motion-Project";
|
|
|
|
repo = "motion";
|
2020-08-20 17:08:02 +00:00
|
|
|
rev = "release-${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-f23glk91HWSEW/Glq/DdEikTQeg1eELEg4XG9zTsU78=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
buildInputs = [ ffmpeg libjpeg libmicrohttpd ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Monitors the video signal from cameras";
|
|
|
|
homepage = "https://motion-project.github.io/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ puffnfresh veprbl ];
|
2020-08-20 17:08:02 +00:00
|
|
|
platforms = platforms.unix;
|
2022-12-17 10:02:37 +00:00
|
|
|
# never built on aarch64-darwin since first introduction in nixpkgs
|
|
|
|
broken = stdenv.isDarwin && stdenv.isAarch64;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "motion";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|