From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: Re: [PATCH] gnu: Add nim. Date: Sun, 8 Jan 2017 14:47:55 +0100 Message-ID: References: <1db124bbe9a402a81340934da1c98eb5@openmailbox.org> <7a7cfa2db2b667561bb356156ad8682e@openmailbox.org> <48b6abba5d87ed52472f92ee190d25a2@openmailbox.org> <9dd319dec66e1f4e5d4eff5289941115@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQDpH-0001Lx-CC for guix-devel@gnu.org; Sun, 08 Jan 2017 08:48:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQDpE-0006g9-B6 for guix-devel@gnu.org; Sun, 08 Jan 2017 08:47:59 -0500 Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]:33123) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cQDpE-0006g3-5Z for guix-devel@gnu.org; Sun, 08 Jan 2017 08:47:56 -0500 Received: by mail-qk0-x22b.google.com with SMTP id s140so95112852qke.0 for ; Sun, 08 Jan 2017 05:47:55 -0800 (PST) In-Reply-To: <9dd319dec66e1f4e5d4eff5289941115@openmailbox.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?UTF-8?B?Sm9zw6kgTWlndWVsIFPDoW5jaGV6IEdhcmPDrWE=?= Cc: guix-devel + (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))