From: David Craven <david@craven.ch>
To: "José Miguel Sánchez García" <jmi2k@openmailbox.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] gnu: Add nim.
Date: Sun, 8 Jan 2017 14:47:55 +0100 [thread overview]
Message-ID: <CAL1_imnt0oAi08-aR_qCmWJLoKth7GkTv3sYuRq7MQmdn61VLA@mail.gmail.com> (raw)
In-Reply-To: <9dd319dec66e1f4e5d4eff5289941115@openmailbox.org>
+ (add-before 'install 'create-dest-dirs
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (mkdir out)
+ (mkdir (string-append out "/bin")))))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (system (string-append "./install.sh " out "/opt"))
+ (symlink
+ (string-append out "/opt/nim/bin/nim")
+ (string-append out "/bin/nim"))))))))
> Done. Nim is installed in /opt because it's the easiest and recommended
> way of installing it.
What do you think about patching install.sh to not create a nim subfolder?
Then you could replace these two phases with
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (system* "./install.sh" out))
next prev parent reply other threads:[~2017-01-08 13:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-06 16:27 [PATCH] gnu: Add nim José Miguel Sánchez García
2017-01-07 0:37 ` José Miguel Sánchez García
2017-01-07 16:41 ` José Miguel Sánchez García
2017-01-07 23:50 ` José Miguel Sánchez García
2017-01-08 13:47 ` David Craven [this message]
2017-01-09 16:23 ` José Miguel Sánchez García
2017-01-09 17:09 ` David Craven
2017-01-09 17:21 ` José Miguel Sánchez García
2017-01-09 17:37 ` David Craven
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_imnt0oAi08-aR_qCmWJLoKth7GkTv3sYuRq7MQmdn61VLA@mail.gmail.com \
--to=david@craven.ch \
--cc=guix-devel@gnu.org \
--cc=jmi2k@openmailbox.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.