On Sun, Jan 21 2024, Felix Lechner via wrote: > Hi Lars, > > On Fri, Jan 19 2024, Lars Rustand wrote: > >> ./autogen.sh: ./configure: /bin/sh: bad interpreter: No such file or >> directory > > I would use something like this [1] > > (arguments > (list > #:phases > #~(modify-phases %standard-phases > (add-before 'configure 'provide-shell > (lambda _ > (setenv "CONFIG_SHELL" (which "sh"))))))) > (native-inputs (list bash)) > > although the (which "sh") is kind of lazy and should probably be > replaced by something like > > #$(file-append bash "/bin/sh")
I forgot to say that in this snippet #$(file-append bash ...), bash doesn't refer to the native input, it directly refers to the bash package. To refer to an input, you need to use ‘this-package-input’ or ‘this-package-native-input’.