From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Installing a custom package on Guix binary setup Date: Tue, 01 Sep 2015 08:34:50 +0200 Message-ID: <87a8t64ph1.fsf@elephly.net> References: <87613v43kv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWf9u-0003Mr-SR for guix-devel@gnu.org; Tue, 01 Sep 2015 02:35:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWf9u-0002ix-5X for guix-devel@gnu.org; Tue, 01 Sep 2015 02:35:06 -0400 In-reply-to: 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Vicente Vera Cc: guix-devel@gnu.org > Wow, thanks! It worked fine. Instead of Emacs I built a modified R > package, without texlive and icedtea6. After defining the > GUIX_PACKAGE_PATH variable I moved there "my-R.scm", which included: > > (define-module (my-r) > #:use-module ...) ; same as in statistics.scm > > (define-public my-r > (package > ...)) ; commenting out the unwanted inputs An alternative is to inherit from the “r” package in “statistics.scm”. (define-module (my own packages) #:use-module (guix packages) #:use-module (gnu packages statistics) #:use-module (srfi srfi-1)) (define-public my-r (package (inherit r) (name "my-r") ;; modify only the inputs here (native-inputs (alist-delete "texlive" (package-native-inputs r))) (inputs (alist-delete "icedtea6" (package-inputs r))))) > Then ran 'guix package -i my-r'. Some substitutes were downloaded (I > guess that's not always safe/recommended?), R 3.2.2 got compiled and > that's it! Substitutes are downloaded from hydra only if hydra has been authorized as a source for binary substitutes. You can revoke permission for hydra or temporarily disable the use of substitutes with the flag ‘--no-substitutes’. ~~ Ricardo