[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Installing a wrapper guile script in <out>/bin
From: |
elaexuotee |
Subject: |
Installing a wrapper guile script in <out>/bin |
Date: |
Mon, 01 Feb 2021 20:28:34 +0900 |
User-agent: |
mblaze/1.1 |
Hello Guix,
Writing package definition, I have need of a non-trivial wrapper script that
decides how to execute the installed binary. How do I accomplish this?
With my vague understanding, I am envisioning writing a gexp directly in the
install phase and would like to somehow reify this into a guile script and
install that file under <out>/bin. Is this correct, at the high level?
More specifically, the package I have builds separate libraries for CPUs with
AVX, AVX2, and no AVX support. Since build-type isn't sufficiently specific to
distinguish such CPU features, I have, so far, opted to just build all three
libs and stuff them under <out>/lib/<foo>.
My idea is to have the linker script check CPU features at runtime (by parsing
/proc/cpuinfo or something) and executing the binary with the parameters to
load the correct binary.
Perhaps there is a better overall approach?
Appreciate your thoughts!
- Installing a wrapper guile script in <out>/bin,
elaexuotee <=
- Re: Installing a wrapper guile script in <out>/bin, Ludovic Courtès, 2021/02/01
- Re: Installing a wrapper guile script in <out>/bin, elaexuotee, 2021/02/03
- Re: Installing a wrapper guile script in <out>/bin, Maxime Devos, 2021/02/03
- Re: Installing a wrapper guile script in <out>/bin, elaexuotee, 2021/02/03
- Re: Installing a wrapper guile script in <out>/bin, Maxime Devos, 2021/02/03
- Re: Installing a wrapper guile script in <out>/bin, elaexuotee, 2021/02/03
- Re: Installing a wrapper guile script in <out>/bin, Maxime Devos, 2021/02/04