Skip to content

Commit

Permalink
zbar: Enable building on darwin by disabling video support there
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegley committed Jan 3, 2018
1 parent 0d407b7 commit 7147ef8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkgs/tools/graphics/zbar/default.nix
@@ -1,5 +1,6 @@
{ stdenv, fetchurl, imagemagickBig, pkgconfig, python2Packages, perl
, libX11, libv4l, qt4, lzma, gtk2, fetchpatch, autoreconfHook
, enableVideo ? stdenv.isLinux
}:

let
Expand Down Expand Up @@ -38,7 +39,12 @@ in stdenv.mkDerivation rec {

buildInputs =
[ imagemagickBig pkgconfig python pygtk perl libX11
libv4l qt4 lzma gtk2 autoreconfHook ];
lzma autoreconfHook ] ++
stdenv.lib.optionals enableVideo [ libv4l gtk2 qt4 ];

configureFlags = stdenv.lib.optionals (!enableVideo) [
"--disable-video" "--without-gtk" "--without-qt"
];

hardeningDisable = [ "fortify" ];

Expand All @@ -52,7 +58,7 @@ in stdenv.mkDerivation rec {
Code.
'';
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
platforms = platforms.unix;
license = licenses.lgpl21;
homepage = http://zbar.sourceforge.net/;
};
Expand Down

0 comments on commit 7147ef8

Please sign in to comment.