all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ekaitz Zarraga <ekaitz@elenq.tech>
To: Ekaitz Zarraga <ekaitz@elenq.tech>
Cc: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: Custom package, specifying cmake source directory?
Date: Mon, 14 Dec 2020 13:34:05 +0000	[thread overview]
Message-ID: <5ZeaDz75C2KwexCcUtZH9YmguRYU5PrfogIN5LN_zCCGQ1p-n-_xBCaOCAUnhmOo6Jt7H6bqyN4XPvUSVqFLxRprh4OYn09avbHFHh3_qnw=@elenq.tech> (raw)
In-Reply-To: <w50M2pFLeHQ_GEbqnYKNMnRnehUYqGY14Jwmek-pW9kEReOXXN0S64HFEjnJRetTbmkjR_a0wvWdYIZAqPQc2T-kgiR2wkvsQE6th8_BlVo=@elenq.tech>

Hi again,

Let me re-answer because I think I screwed in a couple of points.

So, you are not trying to use other build directory but a different source directory.

That's a little bit different. Instead of making a `chdir` you need to touch the `srcdir` variable.

In that case, you can change the current directory in a previous phase, adding a new phase before the `configure` step that just jumps to source code just like `hypre` does.
Run `guix edit hypre` to see it:

``` scheme
         (add-before 'configure 'chdir-src
           (lambda _ (chdir "src")))
```

Probably this last option is the best, I'm not sure if it works. It should.


Sorry for the misunderstanding!

Good luck,

Ekaitz


      reply	other threads:[~2020-12-14 13:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-14  2:55 Custom package, specifying cmake source directory? Matthew Brooks
2020-12-14 13:09 ` Ekaitz Zarraga
2020-12-14 13:34   ` Ekaitz Zarraga [this message]

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='5ZeaDz75C2KwexCcUtZH9YmguRYU5PrfogIN5LN_zCCGQ1p-n-_xBCaOCAUnhmOo6Jt7H6bqyN4XPvUSVqFLxRprh4OYn09avbHFHh3_qnw=@elenq.tech' \
    --to=ekaitz@elenq.tech \
    --cc=help-guix@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.