From mboxrd@z Thu Jan 1 00:00:00 1970 From: cdelia@dc.uba.ar Subject: Re: How to install an old package version? Date: Thu, 27 Dec 2018 16:34:43 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcbQl-00060Q-Mj for help-guix@gnu.org; Thu, 27 Dec 2018 14:34:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcbQi-0004rt-4j for help-guix@gnu.org; Thu, 27 Dec 2018 14:34:55 -0500 Received: from mta1.exactas.uba.ar ([157.92.32.131]:59468) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gcbQh-0004nt-MZ for help-guix@gnu.org; Thu, 27 Dec 2018 14:34:52 -0500 Received: from antispam0.exactas.uba.ar (antispam0 [172.20.0.135]) by mta1.exactas.uba.ar (Postfix) with ESMTP id 6AA3E80194 for ; Thu, 27 Dec 2018 16:34:47 -0300 (-03) Received: from mta0.exactas.uba.ar ([172.20.0.130]) by antispam0.exactas.uba.ar (antispam0.exactas.uba.ar [172.20.0.135]) (amavisd-new, port 10024) with LMTP id mrR3os7hM1Py for ; Thu, 27 Dec 2018 16:34:44 -0300 (ART) Received: from webmail.dc.uba.ar (webmail.exactas.uba.ar [157.92.32.133]) (Authenticated sender: cdelia@dc.uba.ar) by mta0.exactas.uba.ar (Postfix) with ESMTPSA id BEC4E408B4 for ; Thu, 27 Dec 2018 16:34:44 -0300 (-03) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org 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?