guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: Add nim.


From: José Miguel Sánchez García
Subject: Re: [PATCH] gnu: Add nim.
Date: Mon, 09 Jan 2017 17:23:03 +0100
User-agent: Roundcube Webmail/1.0.6

On 2017-01-08 14:47, David Craven wrote:
+           (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))
It would pollute the root directory, but as it's going to be alone in his own directory... I don't know, but here you have another patch that does exactly that. If you're going to add it, feel free to choose the one you prefer (if you
choose the first, change the version, they updated to 0.16.0 ;) )

--
José Miguel Sánchez García

Attachment: 0001-gnu-Add-nim.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]