home/pkgs/qrclip/default.nix

7 lines
203 B
Nix
Raw Normal View History

2022-03-10 16:32:40 +00:00
{ pkgs }:
let zbar = pkgs.mypkgs.zbar.override { enableVideo = false; };
in pkgs.writeShellScriptBin "qrclip" ''
2022-03-10 16:32:40 +00:00
set -eo pipefail
${pkgs.pngpaste}/bin/pngpaste - | ${zbar}/bin/zbarimg --raw -q1 -
2022-03-10 16:32:40 +00:00
''