1 2 3 4 5 6 7
{ pkgs }: pkgs.writeDashBin "qrscan" '' set -efu ${pkgs.zbar}/bin/zbarcam -1 | ${pkgs.gnused}/bin/sed -n 's/^QR-Code://p' ''