Subject: [bug#31668] [PATCH 2/2] gnu: Add qtwebglplugin.

From: [email-masked] (宋文武)
Date: Sun, 10 Jun 2018 10:55:18 +0800

Hartmut Goebel <[email-masked]> writes:

> * gnu/packages/qt.scm (qtwebglplugin): New variable.
> ---
>  gnu/packages/qt.scm | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>
> diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
> index 894269515..a65e08e05 100644
> --- a/gnu/packages/qt.scm
> +++ b/gnu/packages/qt.scm
> @@ -1058,6 +1058,32 @@ between the host (QML/C++ application) and the client (HTML/JavaScript
>  application).  The transport mechanism is supported out of the box by the two
>  popular web engines, Qt WebKit 2 and Qt WebEngine.")))
>  
> +(define-public qtwebglplugin
> +  (package (inherit qtsvg)
> +    (name "qtwebglplugin")
> +    (version "5.11.0")
> +    (source (origin
> +             (method url-fetch)
> +             (uri (string-append "https://download.qt.io/official_releases/qt/"
> +                                 (version-major+minor version) "/" version
> +                                 "/submodules/" name "-everywhere-src-"
> +                                 version ".tar.xz"))
> +             (sha256
> +              (base32
> +               "1al7dv7i9rg4z4p8vnipbjbbgc6113lbfjggxxap3sn6hqs986fm"))))
> +    (native-inputs
> +     `(("perl" ,perl)
> +       ;; The package is implemented badly, thus these need to be native-inputs
> +       ("mesa" ,mesa)
> +       ("qtwebsockets" ,qtwebsockets)))

Hello, what’s “implemented badly” means?  I think ‘mesa’ and
‘qtwebsockets’ belongs to the ‘inputs’ nicely, since after build
‘qtwebglplugin’ does keep references to them.