Here is a trivial solution to the problem of writing a script on Guix.
#!/run/current-system/profile/bin/env -S guile -s
coding: utf-8
!#
(display "Hello, world!\n")
Notice that the path /run/current-system/profile/bin/env
will not exist in other GNU systems such as Ubuntu or Debian. So, how would we take advantage of UNIX's exec
system call without editing the script on other systems?