all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to import modules into build phase
@ 2016-08-25 19:36 David Craven
  2016-08-25 21:00 ` David Craven
  2016-08-28 19:53 ` Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: David Craven @ 2016-08-25 19:36 UTC (permalink / raw)
  To: guix-devel

Hi,

So I'm getting a lot of weird errors and tried a bunch of different things.

I have a wrap-qt-program in (gnu packages qt) and would like to make
it available on the build side.

The snippet I'm trying to use doesn't work:

       #:modules ((gnu packages qt)
                  ,@%cmake-build-system-modules)

For reference wrap-qt-program looks like this:

(define (wrap-qt-program out program)
  (define (suffix env-var path)
    (let ((env-val (getenv env-var)))
      (if env-val (string-append env-val ":" path) path)))

  (let ((qml-path        (suffix "QML2_IMPORT_PATH"
                                 (string-append out "/qml")))
        (plugin-path     (suffix "QT_PLUGIN_PATH"
                                 (string-append out "/plugins")))
        (xdg-data-path   (suffix "XDG_DATA_DIRS"
                                 (string-append out "/share")))
        (xdg-config-path (suffix "XDG_CONFIG_DIRS"
                                 (string-append out "/etc/xdg"))))
  (wrap-program (string-append out "/bin/" program)
    `("QML2_IMPORT_PATH" = (,qml-path))
    `("QT_PLUGIN_PATH" = (,plugin-path))
    `("XDG_DATA_DIRS" = (,xdg-data-path))
    `("XDG_CONFIG_DIRS" = (,xdg-config-path)))))

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-28 19:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-25 19:36 How to import modules into build phase David Craven
2016-08-25 21:00 ` David Craven
2016-08-28 19:53 ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.