From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= Subject: Re: [outreach] Help trying to create R package Date: Thu, 18 Oct 2018 08:54:24 +0200 Message-ID: <20181018085424.541e9287@alma-ubu> References: <20181016074412.54757b18@alma-ubu> <20181016082350.75757e6b@alma-ubu> <20181017001851.71543cc9@alma-ubu> <20181017091750.1c408b8d@alma-ubu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/K+wG=wzJsvrOLruu1/wwHuw"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gD2Cc-0000jQ-7g for guix-devel@gnu.org; Thu, 18 Oct 2018 02:54:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gD2CY-0007fG-Og for guix-devel@gnu.org; Thu, 18 Oct 2018 02:54:38 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:47786 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gD2CY-0007T4-Db for guix-devel@gnu.org; Thu, 18 Oct 2018 02:54:34 -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" To: Laura Lazzati Cc: Guix-devel , Ricardo Wurmus --Sig_/K+wG=wzJsvrOLruu1/wwHuw Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Laura, On Wed, 17 Oct 2018 22:36:02 -0300 Laura Lazzati wrote: > > https://www.gnu.org/software/guix/manual/en/html_node/Contributing.html= #Contributing =20 > I have already read this chapter, but I am messed up. I have already > cloned from git, but I have some questions: > 1) Do I need to install everything from the git repo in my distro? I'm not sure if I understand you right. You ask if you "need to install everything from the git in my distro?". I don't get that. Let me tell what I mean: You cloned that one, right? git clone https://git.savannah.gnu.org/git/guix.git That is the source code of Guix. I.e. when you do a guix package -i hello then you use the binary "guix" command that you installed in the beginning. And the repository you cloned is just the source code, there is nothing in there that you need to install. Maybe you ment the list of software that is written here: https://www.gnu.org/software/guix/manual/en/guix.html#Building-from-Git When building Guix from a checkout, the following packages are required in = addition to those mentioned in the installation instructions (see Requireme= nts). GNU Autoconf; GNU Automake; GNU Gettext; GNU Texinfo; Graphviz; GNU Help2man (optional).=20 So, yeah. In order to compile Guix from source, you need all these. But wait, read the next sentence. You have guix already installed. Guix provides a VERY nice command, `guix envirionment `. With that, Guix prepares an "environment" that can be directly used to build . So, if you enter: guix environment guix then Guix will know best what software in which version it needs in order to build guix (in this case, itself, don't get trapped by that self-circularity :-)) When you are in, you can just follow the next steps described: ./bootstrap ./configure --localstatedir=3D/var make When that went all through well, you can install the "hello" application: ./pre-inst-env guix package -i hello The "./pre-inst-env" tells that you want to use the guix command that you just built, not the one that is somewhere else on your path. Now you just go on: > 2) How do I convert my template into a package? I can't figure out > that part. You don't have to CONVERT. That template IS a package: > > (define-public r-aspi > > (package > > (name "r-aspi") What you do is you just open the file gnu/packages/r.scm and add your "(define... " at the end. Ehh, wait, there is no file r.scm. It is either cran.scm or bioinformatics.scm. Then you are done. Try to build it: ./pre-inst-env guix build r-aspi Bj=C3=B6rn --Sig_/K+wG=wzJsvrOLruu1/wwHuw Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlvILiEACgkQvyhstlk+X/0daQCgh8rUEx5Y43773BCG6InytXDu x08AoIMWDkbo7JkQK5ukkRw0kyLNTDu+ =4toJ -----END PGP SIGNATURE----- --Sig_/K+wG=wzJsvrOLruu1/wwHuw--