forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{ lib, stdenv, fetchurl
|
|
, pkgconfig
|
|
, intltool
|
|
, libX11, libXv, libSM
|
|
, gtk, libglade
|
|
, wxGTK
|
|
, perlPackages
|
|
, xvidcore
|
|
, mjpegtools
|
|
, alsaLib
|
|
, libv4l
|
|
, cimg }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wxcam";
|
|
version = "1.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/project/wxcam/wxcam/${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "1765bvc65fpzn9ycnnj5hais9xkx9v0sm6a878d35x54bpanr859";
|
|
};
|
|
|
|
buildInputs = with stdenv.lib;
|
|
[ pkgconfig intltool libX11 libXv libSM gtk libglade wxGTK perlPackages.XMLParser xvidcore mjpegtools alsaLib libv4l cimg ];
|
|
|
|
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"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "An open-source, wxGTK-based webcam app for Linux";
|
|
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.
|
|
'';
|
|
homepage = "http://wxcam.sourceforge.net/";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|