mjpg-streamer: added package

This commit is contained in:
Bob van der Linden 2015-01-02 17:35:02 +01:00
parent 0487521ab2
commit 54c9c0b4a7
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{stdenv, fetchsvn, pkgconfig, libjpeg, imagemagick, libv4l}:
stdenv.mkDerivation rec {
rev = "182";
name = "mjpg-streamer-${rev}";
src = fetchsvn {
url = https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer/mjpg-streamer;
inherit rev;
sha256 = "008k2wk6xagprbiwk8fvzbz4dd6i8kzrr9n62gj5i1zdv7zcb16q";
};
patchPhase = ''
substituteInPlace Makefile "make -C plugins\/input_gspcav1" "# make -C plugins\/input_gspcav1"
substituteInPlace Makefile "cp plugins\/input_gspcav1\/input_gspcav1.so" "# cp plugins\/input_gspcav1\/input_gspcav1.so"
'';
# Make sure mjpeg-streamer will look in "$out/lib/plugins" for its plugins.
NIX_LDFLAGS = "-rpath $out/lib:$out/lib/plugins";
dontPatchELF = true;
makeFlags = "DESTDIR=$(out)";
preInstall = ''
mkdir -p $out/{bin,lib}
'';
buildInputs = [ pkgconfig libjpeg imagemagick libv4l ];
meta = {
homepage = http://sourceforge.net/projects/mjpg-streamer/;
description = "MJPG-streamer takes JPGs from Linux-UVC compatible webcams, filesystem or other input plugins and streams them as M-JPEG via HTTP to webbrowsers, VLC and other software";
};
}

View file

@ -9406,6 +9406,8 @@ let
inherit (vamp) vampSDK;
};
mjpg_streamer = callPackage ../applications/video/mjpg-streamer { };
mmex = callPackage ../applications/office/mmex { };
moc = callPackage ../applications/audio/moc { };