summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/qrscan.nix
blob: df9a98053656e1da4656481a85a2e34c6d3ba5d9 (plain)
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'
''