unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Phil Beadling <phil@beadling.co.uk>
To: Edouard Klein <edou@rdklein.fr>, bjoern.hoefling@bjoernhoefling.de
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Find location of installed package in /gnu/store
Date: Sat, 15 May 2021 17:27:21 +0100	[thread overview]
Message-ID: <CAOvsyQsH=6WibtJ-Bmg5itdM5H53yfgF+t+yKrvSut50QeFcaw@mail.gmail.com> (raw)
In-Reply-To: <87h7j4ieoq.fsf@rdklein.fr>

>
> Thanks for both answers on this - it's been an interesting rabbit hole.
> Edouard's script gave me the version of icedtea-8 exactly as sourced by:
>
guix environment --ad-hoc icedtea:jdk

I managed to simplify the script down to a one-liner - giving the same
version as Edourard's:
(display (run-with-store (open-connection) (package-file icedtea-8 #:output
"jdk")))

Bjoern was correct that this was not the version I was looking for - but
having rethought my dependency issue - I managed to solve it a different
way using substitute* to patch the relevent files at build-time.

Still, I learnt quite a bit about the gexps, the store, and patching - so
time well spent - thanks again :-)

  reply	other threads:[~2021-05-15 16:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-15  2:28 Phil Beadling
2021-05-15  8:28 ` Edouard Klein
2021-05-15 16:27   ` Phil Beadling [this message]
2021-05-15  9:17 ` Björn Höfling
2021-05-16  2:58 ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOvsyQsH=6WibtJ-Bmg5itdM5H53yfgF+t+yKrvSut50QeFcaw@mail.gmail.com' \
    --to=phil@beadling.co.uk \
    --cc=bjoern.hoefling@bjoernhoefling.de \
    --cc=edou@rdklein.fr \
    --cc=help-guix@gnu.org \
    --subject='Re: Find location of installed package in /gnu/store' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

unofficial mirror of help-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git