guix-devel
[Top][All Lists]
Advanced

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

Re: Pinning package inputs using inferiors?


From: david larsson
Subject: Re: Pinning package inputs using inferiors?
Date: Sat, 22 Oct 2022 14:33:49 +0200

On 2022-10-21 23:08, Phil wrote:
[..]

In the meantime I was wondering if anyone else had a similar use-case
for Guix and if they had tried something similar or different to handle
many versions in an automated way in the same channel commit?

To handle many versions in an automated way, I once wrote this: https://gitlab.com/methuselah-0/guix-cigmon/-/tree/master

It's a schedulable script that will check for updates in certain git repos (specified branches if you want), and create inherited package versions for the new commits which it can commit and push to a guix channel repository. Probably doesn't solve your problem completely, but might be useful.

Example contents of a new file python-nbdev-org-babel-rev.scm with versions of python-nbdev-org-babel, automatically added to a guix channel:

(define-module (python-nbdev-org-babel-revs) #:use-module (python-extras) #:use-module (guix packages) #:use-module (guix git-download)) (define-public python-nbdev-org-babel-4f195e9 (package (inherit python-nbdev-org-babel)(properties '(("generated-by" . "cigmon")))(name "python-nbdev-org-babel-4f195e9")(source (origin (method git-fetch) (uri (git-reference (commit "4f195e915eefe5cd4deec3c6aea27e4b61233f33")(url "https://github.com/methuselah-0/nbdev-org-babel.git";)))(sha256 (base32 "0ayfxnw1s9rzs1qpqqyqwhf21xk6g8psffsqzfvvl0w5k1j88dqn")))))) (define-public python-nbdev-org-babel-66079a5 (package (inherit python-nbdev-org-babel)(properties '(("generated-by" . "cigmon")))(name "python-nbdev-org-babel-66079a5")(source (origin (method git-fetch) (uri (git-reference (commit "66079a59aa9ee5e4479bdce597aac0f42f7fb565")(url "https://github.com/methuselah-0/nbdev-org-babel.git";)))(sha256 (base32 "0krdpc6zbdljriw6s80g08fywy0d1nq8wi3q07v3qs0b6rfz68n4")))))) (define-public python-nbdev-org-babel-master (package (inherit python-nbdev-org-babel-66079a5)(name "python-nbdev-org-babel-master")))


This way you can pin some packages to have an input like mypackage-<1234567>

Would that be useful?

Best regards,
David



reply via email to

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