diff --git a/hosts/common/programs/default.nix b/hosts/common/programs/default.nix index d3b4c594e..f4bec0955 100644 --- a/hosts/common/programs/default.nix +++ b/hosts/common/programs/default.nix @@ -22,6 +22,7 @@ ./koreader ./libreoffice.nix ./lemoa.nix + ./megapixels.nix ./mepo.nix ./mpv.nix ./msmtp.nix diff --git a/hosts/common/programs/megapixels.nix b/hosts/common/programs/megapixels.nix new file mode 100644 index 000000000..69b9d5e24 --- /dev/null +++ b/hosts/common/programs/megapixels.nix @@ -0,0 +1,11 @@ +{ pkgs, ... }: +{ + sane.programs.megapixels.package = pkgs.megapixels.override { + # megapixels uses zbar to read barcodes. + # zbar by default ships zbarcam-gtk and zbarcam-qt, neither of which megapixels needs. + # but the latter takes a dep on qt, which bloats the closure and the build, so disable this feature. + zbar = pkgs.zbar.override { + enableVideo = false; + }; + }; +}