From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Video Documentation for GNU GUIX (an Outreachy project) Date: Tue, 23 Oct 2018 20:22:11 +0200 Message-ID: References: <20181017084521.29579a72@alma-ubu> <20181018134637.25c82e09@alma-ubu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF1K9-0000PJ-5o for guix-devel@gnu.org; Tue, 23 Oct 2018 14:22:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gF1K7-0003WB-VP for guix-devel@gnu.org; Tue, 23 Oct 2018 14:22:37 -0400 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]:35723) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gF1K4-00038H-99 for guix-devel@gnu.org; Tue, 23 Oct 2018 14:22:34 -0400 Received: by mail-oi1-x230.google.com with SMTP id 22-v6so1946546oiz.2 for ; Tue, 23 Oct 2018 11:22:23 -0700 (PDT) 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: Lakshmi Prasannakumar Cc: Guix-devel Hello Lakshmi, Lakshmi Prasannakumar ezt =C3=ADrta (id=C5=91pont: 2018. okt. 23., K, 14:35): > > Hi G=C3=A1bor and Bj=C3=B6rn, > > I was trying to install the new packages with the documentation mentioned= in the Outreachy site as below > https://www.gnu.org/software/guix/manual/en/html_node/Defining-Packages.h= tml > > Here I see a code to define a package for 'Hello' and I assume in order t= o define a package for Anaconda I just need to change this code with source= , url details of Anaconda something like this as mentioned in the bold. > I suggest leaving packaging this for later. I assume we are talking about this package here: https://github.com/Anaconda-Platform/anaconda-project > (define-module (gnu packages Anaconda) I believe we already have a module where this would fit, so please look around in gnu/packages for filenames where you could add this. > #:use-module (guix packages) > #:use-module (guix download) > #:use-module (guix build-system Anaconda) There is no such build system, most probably you will need python-build-system here. > #:use-module (guix licenses) > #:use-module (gnu packages gawk)) > I don't think you will need gawk here... > (define-public Anaconda I believe 'anaconda' would be better. > (package > (name "Anaconda") Also here. > (version "3.10") > (source (origin > (method url-fetch) > (uri (string-append "Anaconda's Website URL" version > ".tar.gz")) Most probably you should fetch from some python package repository. > (sha256 > (base32 > "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i")))= ) > (build-system gnu-build-system) Also python-build-system here. > (arguments '(#:configure-flags '("--enable-silent-rules"))) > (inputs `(("gawk" ,gawk))) These well need adjustment, as needed for the given package. > (synopsis "Hello, GNU world: An example GNU package") > (description "Guess what GNU Hello prints!") > (home-page "http://www.gnu.org/software/hello/") > (license gpl3+))) > > Request you to guide me to get a better understanding here as I saw one m= ore page in this url, that uses some pull commands to run some build etc. > https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-pull.= html#Invoking-guix-pull > > Thanks, > Lakshmi Prasannakumar > Bangalore > With all that said, what I recommend is to try either: 1. use guix import to get the metadata for this package, if it is available in pypi. 2. use guix import to generate a definition for some package from the cran repository instead. (These are easy to package, the importer does most of the job). I would try #2 first, as it is a good way to get a contribution fast. Best regards, g_bor