home/pkgs/qrclip/default.nix

6 lines
142 B
Nix
Raw Normal View History

2022-03-10 16:32:40 +00:00
{ pkgs }:
pkgs.writeShellScriptBin "qrclip" ''
set -eo pipefail
${pkgs.pngpaste}/bin/pngpaste - | ${pkgs.zbar}/bin/zbarimg --raw -q1 -
''