all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: cdelia@dc.uba.ar
To: help-guix@gnu.org
Subject: Re: How to install an old package version?
Date: Thu, 27 Dec 2018 16:34:43 -0300	[thread overview]
Message-ID: <e196aac709fff318b8db3d1981a37236@dc.uba.ar> (raw)

Hi!

real newbie to guix here!

> You have to make your own package for this version, that would look 
> like
> this:
> 
> (define-public python-2.7.10
>  (package
>    (inherit python)
>    (version "2.7.10")
>    (source (origin
>              (inherit (package-source python-2.7))
>              (uri (string-append "https://www.python.org/ftp/python/";
>                                  version "/Python-" version ".tar.xz"))
>              (sha256 (base32 "some-letters-and-numbers"))))))
> 
> and to put it to a file from GUIX_PACKAGE_PATH.
> See (info "(guix) Package Modules") for details.
> 

This brings me some doubts.

How does guix resolves de dependency tree in those cases? Say I need a 
previous package X version, that depends on an earlier package Y version 
that the one that is defined on the "main" guix.

Do I have to do the sema that Alex suggests so guix can resolve it? I 
guess that'll be the answer. But in that case I'll maybe find myself in 
a time consuming recursive package definition.

> Alternatively, you can use a guix git checkout on a specific commit 
> that
> still has python-2.7.10, but it's probably not what you want.

So, to avoid recursive definition of packages: Could I checkout an 
earlier guix revision, install the package and then checkout the latest 
guix version?
Would that work or it will bring other kind of dragons?

If that's the case, it could be done automatically. Does anybody try to 
do it, so we can simple specify the version of the package to install in 
"guix package" cmd?

             reply	other threads:[~2018-12-27 19:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-27 19:34 cdelia [this message]
2018-12-28 15:03 ` How to install an old package version? Ricardo Wurmus
  -- strict thread matches above, loose matches on Subject: below --
2016-08-11 19:16 Hartmut Goebel
2016-08-12  9:18 ` Alex Kost
2016-08-12 13:20 ` 宋文武

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e196aac709fff318b8db3d1981a37236@dc.uba.ar \
    --to=cdelia@dc.uba.ar \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.