diff options
author | John Wiegley <johnw@newartisans.com> | 2018-01-03 12:39:24 -0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2018-01-03 12:40:33 -0800 |
commit | 7147ef8e80ae9f5d7f13b0c29bbf7a4d27982d3d (patch) | |
tree | 8f8d61849b49367001cc7a3e13e555efbcef6a7f /pkgs/tools/graphics/zbar | |
parent | 0d407b7e522dc6a8fffc80c1abf2f49ffbbb74eb (diff) | |
download | nixpkgs-7147ef8e80ae9f5d7f13b0c29bbf7a4d27982d3d.tar nixpkgs-7147ef8e80ae9f5d7f13b0c29bbf7a4d27982d3d.tar.gz nixpkgs-7147ef8e80ae9f5d7f13b0c29bbf7a4d27982d3d.tar.bz2 nixpkgs-7147ef8e80ae9f5d7f13b0c29bbf7a4d27982d3d.tar.lz nixpkgs-7147ef8e80ae9f5d7f13b0c29bbf7a4d27982d3d.tar.xz nixpkgs-7147ef8e80ae9f5d7f13b0c29bbf7a4d27982d3d.tar.zst nixpkgs-7147ef8e80ae9f5d7f13b0c29bbf7a4d27982d3d.zip |
zbar: Enable building on darwin by disabling video support there
Diffstat (limited to 'pkgs/tools/graphics/zbar')
-rw-r--r-- | pkgs/tools/graphics/zbar/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/tools/graphics/zbar/default.nix b/pkgs/tools/graphics/zbar/default.nix index 87bb4923b8a..b8bf73fda64 100644 --- a/pkgs/tools/graphics/zbar/default.nix +++ b/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 @@ -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" ]; @@ -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/; }; |