all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* install --with-version?
@ 2019-05-02 15:44 pelzflorian (Florian Pelz)
  2019-05-03  0:56 ` ison
  0 siblings, 1 reply; 3+ messages in thread
From: pelzflorian (Florian Pelz) @ 2019-05-02 15:44 UTC (permalink / raw)
  To: help-guix

Hello!

I wanted to install biber 2.10 but Guix has and never had a package
for it (I think).  So I think of rewriting the existing package.

I see no --with-version option for `guix build`.

I tried

guix environment --ad-hoc -e '(begin (use-modules (guix packages) (gnu packages tex)) (package (inherit biber) (version "2.10")))'

but it still uses the source for the current biber 2.12 instead of
biber 2.10.  I suppose Guix’ record implementation is “hygienic” and
never refers to a changed version.

What to do?

Regards,
Florian

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: install --with-version?
  2019-05-02 15:44 install --with-version? pelzflorian (Florian Pelz)
@ 2019-05-03  0:56 ` ison
  2019-05-04 18:18   ` pelzflorian (Florian Pelz)
  0 siblings, 1 reply; 3+ messages in thread
From: ison @ 2019-05-03  0:56 UTC (permalink / raw)
  To: pelzflorian (Florian Pelz); +Cc: help-guix

There is a --with-source option. So you could actually specify the download location to the 2.10 version
https://www.gnu.org/software/guix/manual/en/html_node/Package-Transformation-Options.html

Also have you tried building it by specifying "biber@2.10" instead of just "biber"?

Sorry I can't say much about the environment command, other than it looks correct to me.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: install --with-version?
  2019-05-03  0:56 ` ison
@ 2019-05-04 18:18   ` pelzflorian (Florian Pelz)
  0 siblings, 0 replies; 3+ messages in thread
From: pelzflorian (Florian Pelz) @ 2019-05-04 18:18 UTC (permalink / raw)
  To: ison; +Cc: help-guix

On Thu, May 02, 2019 at 06:56:18PM -0600, ison wrote:
> There is a --with-source option. So you could actually specify the download location to the 2.10 version
> https://www.gnu.org/software/guix/manual/en/html_node/Package-Transformation-Options.html
>

I use --with-commit instead of --with-source because biber is defined
using a git-reference like

(define-public biber
  (package
    (name "biber")
    (version "2.12")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/plk/biber/")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))


florian@florianmacbook ~$ guix build --with-commit=biber=v2.10 biber
updating checkout of 'https://github.com/plk/biber/'...
guix build: error: cannot fetch commit v2.10 from https://github.com/plk/biber/: unable to parse OID - contains invalid characters


I looked up the commit ID on GitHub.



florian@florianmacbook ~$ guix build --with-commit=biber=e00ee55ced863d3c2938fe03c2da2d629842b7f1 biber
updating checkout of 'https://github.com/plk/biber/'...
retrieved commit e00ee55ced863d3c2938fe03c2da2d629842b7f1
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
[…]

This fails to build because tests fail, but looking at
`guix build -n …` I believe it is basically the right command.  Thank
you!




> Also have you tried building it by specifying "biber@2.10" instead of just "biber"?
> 

florian@florianmacbook ~$ guix environment --ad-hoc biber@2.10 
guix environment: error: biber: package not found for version 2.10

I believe all packages where the @2.10 notation works have multiple
package definitions, one for each version.

Thank you.  --with-commit helps, but it is ugly.  I had hoped there
were better options.  I will file a wishlist bug for
--with-commit=v2.10 and for --with-version=2.10.  (As for biber, I
gave up installing it because tests fail.)

Regards,
Florian

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-04 18:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-02 15:44 install --with-version? pelzflorian (Florian Pelz)
2019-05-03  0:56 ` ison
2019-05-04 18:18   ` pelzflorian (Florian Pelz)

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.