stockholm/krebs/5pkgs/simple/qrscan.nix

8 lines
131 B
Nix

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