1 { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config
2 , ffmpeg, libjpeg, libmicrohttpd }:
4 stdenv.mkDerivation rec {
8 src = fetchFromGitHub {
9 owner = "Motion-Project";
11 rev = "release-${version}";
12 sha256 = "sha256-f23glk91HWSEW/Glq/DdEikTQeg1eELEg4XG9zTsU78=";
15 nativeBuildInputs = [ autoreconfHook pkg-config ];
17 buildInputs = [ ffmpeg libjpeg libmicrohttpd ];
20 description = "Monitors the video signal from cameras";
21 homepage = "https://motion-project.github.io/";
22 license = licenses.gpl2Plus;
23 maintainers = with maintainers; [ puffnfresh veprbl ];
24 platforms = platforms.unix;
25 # never built on aarch64-darwin since first introduction in nixpkgs
26 broken = stdenv.isDarwin && stdenv.isAarch64;
27 mainProgram = "motion";