2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2014-08-09 21:13:21 +01:00
|
|
|
, intltool
|
|
|
|
, libX11, libXv, libSM
|
|
|
|
, gtk, libglade
|
|
|
|
, wxGTK
|
2018-10-12 23:56:15 +01:00
|
|
|
, perlPackages
|
2014-08-09 21:13:21 +01:00
|
|
|
, xvidcore
|
|
|
|
, mjpegtools
|
2021-06-10 03:57:09 +01:00
|
|
|
, alsa-lib
|
2014-08-09 21:13:21 +01:00
|
|
|
, libv4l
|
2014-09-10 19:59:54 +01:00
|
|
|
, cimg }:
|
2014-08-09 21:13:21 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "wxcam";
|
2014-08-09 21:13:21 +01:00
|
|
|
version = "1.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/project/wxcam/wxcam/${version}/${pname}-${version}.tar.gz";
|
2014-08-09 21:13:21 +01:00
|
|
|
sha256 = "1765bvc65fpzn9ycnnj5hais9xkx9v0sm6a878d35x54bpanr859";
|
|
|
|
};
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
buildInputs = with lib;
|
2021-06-10 03:57:09 +01:00
|
|
|
[ pkg-config intltool libX11 libXv libSM gtk libglade wxGTK perlPackages.XMLParser xvidcore mjpegtools alsa-lib libv4l cimg ];
|
2014-08-09 21:13:21 +01:00
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE="-I ${cimg}/include/cimg";
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
sed -ie 's|/usr/share/|'"$out/share/"'|g' $sourceRoot/Makefile.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make install prefix="$out" wxcamdocdir="$out/share/doc/wxcam"
|
2018-10-12 23:56:15 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-12 23:56:15 +01:00
|
|
|
description = "An open-source, wxGTK-based webcam app for Linux";
|
2014-08-09 21:13:21 +01:00
|
|
|
longDescription = ''
|
|
|
|
wxCam is a webcam application for linux. It supports video recording
|
|
|
|
(avi uncompressed and Xvid formats), snapshot taking, and some special
|
|
|
|
commands for philips webcams, so you can also use it for astronomy purposes.
|
|
|
|
It supports both video4linux 1 and 2 drivers,
|
|
|
|
so it should work on a very large number of devices.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://wxcam.sourceforge.net/";
|
2014-09-10 19:59:54 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
2014-08-09 21:13:21 +01:00
|
|
|
};
|
|
|
|
}
|