Can you give an example of creating hooks through a snapcraft part? Would we just copy hooks from somewhere in the git tree to $SNAPCRAFT_PART_INSTALL/meta/hooks/intstall, etc. ?
Also using environment at a global level doesn't solve the issue for snaps like this because the environment variables we need are not static, as shown in the snippet above they are runtime dependent.
Can you give an example of creating hooks through a snapcraft part? Would we just copy hooks from somewhere in the git tree to $SNAPCRAFT_ PART_INSTALL/ meta/hooks/ intstall, etc. ?
Also using environment at a global level doesn't solve the issue for snaps like this because the environment variables we need are not static, as shown in the snippet above they are runtime dependent.