all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reza Housseini <reza.housseini@gmail.com>
To: help-guix@gnu.org
Subject: G-expressions in native-search-paths
Date: Tue, 8 Aug 2023 11:01:26 +0200	[thread overview]
Message-ID: <2c0f0f92-5ca7-a5ed-4059-a98fa60962fe@gmail.com> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 1639 bytes --]

Hi List

I am trying to use g-expressions in nativ-search-paths field, but it 
fails with an error message, what is the issue her:

     (native-search-paths
      (list (search-path-specification
	    (variable "CFDEM_SRC_DIR")
	    (files #~'((string-append "share/" #$name "-" #$version))))))

and the error message:

Backtrace:
           11 (primitive-load "/gnu/store/3hbiwibrp9if0dhvyyhhdk87gb8…")
In ice-9/ports.scm:
    433:17 10 (call-with-output-file _ _ #:binary _ #:encoding _)
In guix/build/profiles.scm:
    100:23  9 (_ #<output: /gnu/store/2s49jj1sdm04zql9ivdpw5j1r5l2g41…>)
In srfi/srfi-1.scm:
    691:23  8 (filter-map #<procedure search-path-definition (spec)> . #)
In guix/search-paths.scm:
    202:22  7 (failure)
In ice-9/ports.scm:
     480:4  6 (with-error-to-port _ _)
In srfi/srfi-1.scm:
    673:15  5 (append-map #<procedure 2aaaadb2c360 at guix/build/uti…> …)
    586:17  4 (map1 ("/gnu/store/2s49jj1sdm04zql9ivdpw5j1r5l2g41b-pr…"))
    673:15  3 (append-map #<procedure 2aaaadb2c330 at guix/build/uti…> …)
    586:17  2 (map1 (quote ((string-append "share/" "cfdemcoupl…" …))))
In guix/build/utils.scm:
    601:42  1 (_ quote)
In unknown file:
            0 (string-append "/gnu/store/2s49jj1sdm04zql9ivdpw5j1r5l…" …)

ERROR: In procedure string-append:
In procedure string-append: Wrong type (expecting string): quote

which looks like he is trying to append a string to a string which 
should work in my opinion?

Best,
-- 
Reza Housseini

This message is signed with my GnuPG key:

     C0F3 0812 9AF2 80F4 0830 C2C1 C375 C6AF 0512 5C52

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 15557 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2023-08-08  9:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-08  9:01 Reza Housseini [this message]
2023-08-08  9:36 ` G-expressions in native-search-paths (
2023-08-08  9:50   ` Reza Housseini
2023-08-08 10:39     ` (

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=2c0f0f92-5ca7-a5ed-4059-a98fa60962fe@gmail.com \
    --to=reza.housseini@gmail.com \
    --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.