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

8 lines
131 B
Nix
Raw Normal View History

2022-03-22 18:34:57 +00:00
{ pkgs }:
2019-04-17 19:49:43 +00:00
2022-03-22 18:34:57 +00:00
pkgs.writeDashBin "qrscan" ''
2019-04-17 19:49:43 +00:00
set -efu
2022-03-22 18:34:57 +00:00
${pkgs.zbar}/bin/zbarcam -1 | ${pkgs.gnused}/bin/sed -n 's/^QR-Code://p'
2019-04-17 19:49:43 +00:00
''