megapixels: simplify zbar fix

This commit is contained in:
Colin 2023-12-11 03:27:29 +00:00
parent d2e1441d1f
commit 9e2c0a7112
3 changed files with 4 additions and 12 deletions

View File

@ -43,7 +43,6 @@
./libreoffice.nix
./lemoa.nix
./mako.nix
./megapixels.nix
./mepo.nix
./mopidy.nix
./mpv.nix

View File

@ -1,11 +0,0 @@
{ 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;
};
};
}

View File

@ -81,4 +81,8 @@
'';
});
};
# 2023/12/10: zbar barcode scanner: used by megapixels, frog.
# the video component does not cross compile (qt deps), but i don't need that.
zbar = super.zbar.override { enableVideo = false; };
})