bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49122: gobject-introspection and not finding cairo


From: Raghav Gururajan
Subject: bug#49122: gobject-introspection and not finding cairo
Date: Tue, 7 Sep 2021 20:07:31 -0400

Hi John!

Something like this:

```
(define-public gobject-introspection+cairo
   (hidden-package
    (package
      (inherit gobject-introspection)
      (arguments
      (substitute-keyword-arguments (package-arguments gobject-introspection)
         ((#:configure-flags flags ''())
          `(cons* "-Dcairo=true" ,flags))))
      (inputs
       `(("cairo" ,cairo)
         ,@(package-inputs gobject-introspection))))))
```

Or, something like this:

```
(define-public gobject-introspection+cairo
  (hidden-package
   (package
     (inherit gobject-introspection)
     (arguments
(substitute-keyword-arguments (package-arguments gobject-introspection)
        ((#:configure-flags flags ''())
         `(append
           (list
            "-Dcairo=true"
            (string-append "-Dcairo_libname="
                           (assoc-ref %build-inputs "cairo")
                           "/lib/libcairo-gobject.so"))
           ,flags))))
     (inputs
      `(("cairo" ,cairo)
        ,@(package-inputs gobject-introspection))))))
```

Regards,
RG.

Attachment: OpenPGP_0x5F5816647F8BE551.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]