diff --git a/pkgs/tools/graphics/zbar/default.nix b/pkgs/tools/graphics/zbar/default.nix index 74503862785f..3574e2697c6c 100644 --- a/pkgs/tools/graphics/zbar/default.nix +++ b/pkgs/tools/graphics/zbar/default.nix @@ -34,6 +34,7 @@ stdenv.mkDerivation rec { xmlto autoreconfHook docbook_xsl + qt5.wrapQtAppsHook ]; buildInputs = [ @@ -61,6 +62,12 @@ stdenv.mkDerivation rec { "--without-qt" ]; + dontWrapQtApps = true; + + postFixup = lib.optionalString enableVideo '' + wrapQtApp "$out/bin/zbarcam-qt" + ''; + meta = with lib; { description = "Bar code reader"; longDescription = ''