summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2022-12-05 01:15:20 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2022-12-05 02:07:00 +0100
commit4312ffd16a37b560de9275440b51a3e962d1a207 (patch)
treedee889f3fd5c585b49dac1214c4c9a0ea29b5e49
parente22198417d98dd1a6da0d5a8fd208819dd923012 (diff)
downloadnixpkgs-4312ffd16a37b560de9275440b51a3e962d1a207.tar
nixpkgs-4312ffd16a37b560de9275440b51a3e962d1a207.tar.gz
nixpkgs-4312ffd16a37b560de9275440b51a3e962d1a207.tar.bz2
nixpkgs-4312ffd16a37b560de9275440b51a3e962d1a207.tar.lz
nixpkgs-4312ffd16a37b560de9275440b51a3e962d1a207.tar.xz
nixpkgs-4312ffd16a37b560de9275440b51a3e962d1a207.tar.zst
nixpkgs-4312ffd16a37b560de9275440b51a3e962d1a207.zip
zbar: add option to disable Xorg
-rw-r--r--pkgs/tools/graphics/zbar/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/graphics/zbar/default.nix b/pkgs/tools/graphics/zbar/default.nix
index 3ddc1678dae..4e850e4fe6c 100644
--- a/pkgs/tools/graphics/zbar/default.nix
+++ b/pkgs/tools/graphics/zbar/default.nix
@@ -3,6 +3,7 @@
 , fetchFromGitHub
 , imagemagickBig
 , pkg-config
+, withXorg ? true
 , libX11
 , libv4l
 , qtbase
@@ -48,10 +49,11 @@ stdenv.mkDerivation rec {
 
   buildInputs = [
     imagemagickBig
-    libX11
     libintl
   ] ++ lib.optionals enableDbus [
     dbus
+  ] ++ lib.optionals withXorg [
+    libX11
   ] ++ lib.optionals enableVideo [
     libv4l
     gtk3