Hi Gábor and Björn,

I was trying to install the new packages with the documentation mentioned in the Outreachy site as below

Here I see a code to define a package for 'Hello' and I assume in order to 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.

(define-module (gnu packages Anaconda)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system Anaconda)
  #:use-module (guix licenses)
  #:use-module (gnu packages gawk))

(define-public Anaconda
  (package
    (name "Anaconda")
    (version "3.10")
    (source (origin
              (method url-fetch)
              (uri (string-append "Anaconda's Website URL" version
                                  ".tar.gz"))
              (sha256
               (base32
                "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i"))))
    (build-system gnu-build-system)
    (arguments '(#:configure-flags '("--enable-silent-rules")))
    (inputs `(("gawk" ,gawk)))
    (synopsis "Hello, GNU world: An example GNU package")
    (description "Guess what GNU Hello prints!")
    (license gpl3+)))

Request you to guide me to get a better understanding here as I saw one more page in this url, that uses some pull commands to run some build etc.

Thanks,
Lakshmi Prasannakumar
Bangalore


On Thu, Oct 18, 2018 at 6:30 PM Gábor Boskovits <boskovits@gmail.com> wrote:
Hello Lakshmi,

Lakshmi Prasannakumar <lakshmiprasannakumaran@gmail.com> ezt írta
(időpont: 2018. okt. 18., Cs, 14:38):
>
> @Björn and @Gábor
>
> Thanks a lot. It did work fine.
>
> Now as the next step I assume, I have to add a new package.  I can see from there are lot many packages listed in the https://www.gnu.org/software/guix/packages/ in alphabetic order. So should I find a new package and add it?
>

Yes, that is correct.

> If it is to add a new package, I see the Anaconda Package missing there. And may be I could add that in the format mentioned in 4.1 defining package , is that correct?
>

Yes, that is correct. We usually recommend to add a package we have an
importer for. Anaconda could be a good candidate, if you wish to
package it, and I guess we have a lot of unpackaged dependencies of
anaconda.
Note that you have to package all the dependencies to package
something for guix. Packaging a single dependency would do for now.
Please see https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-import.html
for
more information about importers. (For example R packages from CRAN or
bioconductor have a good quality importer)

>  Or should I proceed with creating video tutorials for the steps I did until now ?
>

Not yet, we should leave that for later, if it is possible.

> Thanks,
> Lakshmi Prasannakumar
> Bangalore
>
>
> On Thu, Oct 18, 2018 at 5:22 PM Gábor Boskovits <boskovits@gmail.com> wrote:
>>
>> Hello Lakshmi,
>>
>> Björn Höfling <bjoern.hoefling@bjoernhoefling.de> ezt írta (időpont:
>> 2018. okt. 18., Cs, 13:46):
>> >
>> > Hi Lakshmi,
>> >
>> > On Thu, 18 Oct 2018 14:52:30 +0530
>> > Lakshmi Prasannakumar <lakshmiprasannakumaran@gmail.com> wrote:
>> >
>> > > Hi Gábor,
>> > >
>> > > I have followed the Binary-Installation procedures and installed the
>> > > hello package to my root.
>> > > The next step I understand is to add another package from the list in
>> > > https://www.gnu.org/software/guix/packages/
>> > > I tried following this step to install a package from the list i.e.
>> > > 4ti2 1.6.7 using the below commands:
>> > > *guix package -i 4ti2 1.6.7*
>> > >
>> > > However, I got the error as :
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > *guile: warning: failed to install localehint: Consider installing the
>> > > `glibc-utf8-locales' or `glibc-locales' package anddefining
>> > > `GUIX_LOCPATH', along these lines:     guix package -i
>> > > glibc-utf8-locales     export
>> > > GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"See the "Application
>> > > Setup" section in the manual, for more info.* Is it due my incomplete
>> > > GUIX installation or are there further steps to follow?
>> >
>>
>> It is safe to ignore these warnings for now. If it causes any problem,
>> we can return to that,
>> but unfortunalety sometimes this is hard to debug on foreign distros.
>> You could try following
>> the instuctions in the warning, but it does not help then just ignore
>> them for now.
>>
>> >
>> > I think there is no error. As it says, this is only a warning. Or is
>> > there anything else I have overseen in your message?
>> >
>> > If unsure, you can check the return code of the previous command by
>> > directly typing
>> >
>> > echo $?
>> >
>> > The return code should be 0.
>> >
>> > You can also list the installed packages in Guix and see if hello and
>> > 4ti2 are installed:
>> >
>> > guix package -I
>> >
>> > Note the CAPITAL I,
>> >
>> > You can also list the generations. As you first installed hello and in
>> > a second step you installed 4ti2, there should be at least two
>> > generations:
>> >
>> > guix package --list-generations
>> >
>> > The warning is about the locale. To get rid of it, do exactly what the
>> > warning says, and/or read the section of the manual that the warning is
>> > pointing to :-)
>> >
>> > https://www.gnu.org/software/guix/manual/en/guix.html#Application-Setup
>> >
>> > Hope this helps, otherwise feel free to ask,
>> >
>> > Björn
>>
>> Best regards,
>> g_bor

Best regards,
g_bor