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

8 lines
131 B
Nix
Raw Normal View History

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