all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Craven <david@craven.ch>
To: guix-devel <guix-devel@gnu.org>
Subject: How to import modules into build phase
Date: Thu, 25 Aug 2016 21:36:24 +0200	[thread overview]
Message-ID: <CAL1_im=EoDq1U7+6ADGupn7Diw1nV6PBTvjBxfZX_YFNMmn4BQ@mail.gmail.com> (raw)

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)))))

             reply	other threads:[~2016-08-25 19:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-25 19:36 David Craven [this message]
2016-08-25 21:00 ` How to import modules into build phase David Craven
2016-08-28 19:53 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAL1_im=EoDq1U7+6ADGupn7Diw1nV6PBTvjBxfZX_YFNMmn4BQ@mail.gmail.com' \
    --to=david@craven.ch \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.