zbar: copy locally and fix for macos aarch64

This commit is contained in:
2022-06-13 23:12:51 +01:00
parent d9f98ae96a
commit 82c8d78ca2
4 changed files with 94 additions and 5 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
{ pkgs }:
pkgs.writeShellScriptBin "qrclip" ''
let zbar = pkgs.mypkgs.zbar.override { enableVideo = false; };
in pkgs.writeShellScriptBin "qrclip" ''
set -eo pipefail
${pkgs.pngpaste}/bin/pngpaste - | ${pkgs.zbar}/bin/zbarimg --raw -q1 -
${pkgs.pngpaste}/bin/pngpaste - | ${zbar}/bin/zbarimg --raw -q1 -
''