all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to build a package variant using another package variant as an input with 'guix build'?
@ 2024-04-13 22:40 wakyct
  2024-04-14 13:49 ` Efraim Flashner
  0 siblings, 1 reply; 3+ messages in thread
From: wakyct @ 2024-04-13 22:40 UTC (permalink / raw)
  To: help-guix

Hello all, I am new to Guix system and trying to build a package variant which depends on another package variant as 
an input, from the command line in a guix shell. I can build the variants using --with-git-url and --with-commit, but 
I can't figure out how to then add the input using --with-input.

For example, this is what I tried:

$ guix shell --container --nesting --network --development python-pivy soqt --no-grafts nss-certs
george@lucretius ~ [env]$ guix build soqt --with-git-url=soqt=https://github.com/coin3d/soqt \
> --with-commit=soqt=v1.6.2 --no-grafts --no-substitutes

updating checkout of 'https://github.com/coin3d/soqt'...
updating submodule 'build/general'...
updating submodule 'cpack.d'...
updating submodule 'data'...
updating submodule 'src/Inventor/Qt/common'...
retrieved commit 17364833049d3855f5e9e0f7908eb5ba08209318
/gnu/store/xjklc67c6bnmwjpryyx9b639vrhx2hjf-soqt-1.6.2

george@lucretius ~ [env]$ guix build python-pivy --with-git-url=python-pivy=https://github.com/coin3d/pivy \ 
> --with-commit=python-pivy=0.6.8 --with-input=soqt=soqt@1.6.2 --no-grafts --no-substitutes

guix build: error: soqt: package not found for version 1.6.2


Probably this errors because soqt is not installed and/or in a channel? But as expected I can't install soqt 1.6.2 in 
this current shell container. Is there an ad hoc way to build variants using the results of previous builds in the 
same container? Or perhaps I need to do this in a different way? Thanks for any help. 


George




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

* Re: How to build a package variant using another package variant as an input with 'guix build'?
  2024-04-13 22:40 How to build a package variant using another package variant as an input with 'guix build'? wakyct
@ 2024-04-14 13:49 ` Efraim Flashner
  2024-04-14 17:47   ` wakyct
  0 siblings, 1 reply; 3+ messages in thread
From: Efraim Flashner @ 2024-04-14 13:49 UTC (permalink / raw)
  To: wakyct; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 2150 bytes --]

On Sat, Apr 13, 2024 at 10:40:05PM +0000, wakyct@tilde.team wrote:
> Hello all, I am new to Guix system and trying to build a package variant
> which depends on another package variant as an input, from the command line
> in a guix shell. I can build the variants using --with-git-url and
> --with-commit, but I can't figure out how to then add the input using
> --with-input.
> 
> For example, this is what I tried:
> 
> $ guix shell --container --nesting --network --development python-pivy soqt --no-grafts nss-certs
> george@lucretius ~ [env]$ guix build soqt --with-git-url=soqt=https://github.com/coin3d/soqt \
> > --with-commit=soqt=v1.6.2 --no-grafts --no-substitutes
> 
> updating checkout of 'https://github.com/coin3d/soqt'...
> updating submodule 'build/general'...
> updating submodule 'cpack.d'...
> updating submodule 'data'...
> updating submodule 'src/Inventor/Qt/common'...
> retrieved commit 17364833049d3855f5e9e0f7908eb5ba08209318
> /gnu/store/xjklc67c6bnmwjpryyx9b639vrhx2hjf-soqt-1.6.2
> 
> george@lucretius ~ [env]$ guix build python-pivy
> --with-git-url=python-pivy=https://github.com/coin3d/pivy \
> > --with-commit=python-pivy=0.6.8 --with-input=soqt=soqt@1.6.2 --no-grafts --no-substitutes
> 
> guix build: error: soqt: package not found for version 1.6.2
> 
> 
> Probably this errors because soqt is not installed and/or in a channel? But
> as expected I can't install soqt 1.6.2 in this current shell container. Is
> there an ad hoc way to build variants using the results of previous builds
> in the same container? Or perhaps I need to do this in a different way?
> Thanks for any help.

Try it with combining the two parts together:

guix build python-pivy  \
--with-git-url=python-pivy=https://github.com/coin3d/pivy \
--with-commit=python-pivy=0.6.8 \
--with-git-url=soqt=https://github.com/coin3d/soqt \
--with-commit=soqt=v1.6.2 --no-grafts --no-substitutes

-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: How to build a package variant using another package variant as an input with 'guix build'?
  2024-04-14 13:49 ` Efraim Flashner
@ 2024-04-14 17:47   ` wakyct
  0 siblings, 0 replies; 3+ messages in thread
From: wakyct @ 2024-04-14 17:47 UTC (permalink / raw)
  To: help-guix

On Sun, Apr 14, 2024 at 04:49:05PM +0300, Efraim Flashner wrote:
>
>Try it with combining the two parts together:
>
>guix build python-pivy  \
>--with-git-url=python-pivy=https://github.com/coin3d/pivy \
>--with-commit=python-pivy=0.6.8 \
>--with-git-url=soqt=https://github.com/coin3d/soqt \
>--with-commit=soqt=v1.6.2 --no-grafts --no-substitutes

Thanks Efraim that worked! I thought I had tried that but I must have missed something. 


George


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

end of thread, other threads:[~2024-04-14 17:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-13 22:40 How to build a package variant using another package variant as an input with 'guix build'? wakyct
2024-04-14 13:49 ` Efraim Flashner
2024-04-14 17:47   ` wakyct

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.