[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dependence on an old version of a package.

From: Philippe Veber
Subject: Dependence on an old version of a package.
Date: Sun, 10 Dec 2023 09:18:50 +0100

Hi all and sorry if it's a FAQ !

I would like to write a package definition for a program that expects
openmpi < 4.0.0, which is present in earlier versions of guix. If I'm not
mistaken I have to use inferiors in that case, and I tried this :

(use-modules (gnu packages mpi)
    (guix packages)
             (guix download)
             (guix build-system gnu)
             (guix licenses)
    (guix build utils)
    (guix gexp)
    (guix inferior)
    (guix channels))

(define mychannels
  (list (channel
         (name 'guix)
         (url "";)
         ;; Last commit that still has openmpi < 4.0.0

(define myinferior
  (inferior-for-channels mychannels))

(define myopenmpi
  (first (lookup-inferior-packages myinferior "openmpi")))

 (name "coevol")
 (version "1.5b")
 (source (origin
 (method url-fetch)
 (uri (string-append ""; version
 (sha256 (base32 "112kjjxwlm9m3f3wks3q86gp561l8s5gsw17zrffrhljixd8qyyp"))))
 (build-system gnu-build-system)
   #:phases #~(modify-phases %standard-phases
    (delete 'configure)
    (add-after 'unpack 'chdir (lambda _ (chdir "sources") #t)))))
 (inputs (list myopenmpi))
 (synopsis "Correlated evolution of substitution rates and quantitative
 (description "...")
 (home-page "";)
 (license gpl3+))

My problem is that when invoking guix I get this:

$ guix package --install-from-file=coevol.scm
Mise à jour du canal « guix » depuis le dépôt Git « »...
Computing Guix derivation for 'x86_64-linux'... \fetching path
substitute: updating substitutes from ''... 100.0%
substitute: updating substitutes from ''... 100.0%

and a spinning character for more than 10 hours. I can see a 'guix
substitute' process working and using quite some memory after a while (3-4
GB). My question is this: should I just be patient and wait for it to
complete or I'm doing this wrong?

Thanks for any hint!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]