Hello Phil,
Phil Beadling writes:
> Hi,
>
> Given a package definition, eg icedtea-8's JDK, how can can I determine the
> location of the installed package in my /gnu/store?
>
> There doesn't seem to be anything on the package module itself, presumably
> because this is static data, and what I n
>
> 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
On Sat, 15 May 2021 03:28:01 +0100
Phil Beadling wrote:
> Given a package definition, eg icedtea-8's JDK, how can can I
> determine the location of the installed package in my /gnu/store?
[..]
> The aim is to use this to derivive the JDK include directories in a
> generic way for some scripts I
Hi !
This is where G-expressions will help you :)
Basically the path you need does not exist in the same "strata" as the
code of the package.
The following code will define a build-gexp function that evaluates a
G-expression and prints the resulting directory in the store. You can
try it in "gui
Hi,
Given a package definition, eg icedtea-8's JDK, how can can I determine the
location of the installed package in my /gnu/store?
There doesn't seem to be anything on the package module itself, presumably
because this is static data, and what I need is something to calculate the
hash of the res