Hi,

Kete <[email protected]> skribis:

> Instead of ./configure, make and make install, sbcl uses a command
> like this: INSTALL_ROOT=/home/me sh install.sh
>
> How would the build-system and inputs go?

In general, when that happens, we still use ‘gnu-build-system’ but
customize/remove some of the phases.

An example of that is ‘net-tools’ in linux.scm: it has no ./configure
script, and has specific makefile targets.

For SBCL, you would probably remove the ‘configure’ phase, perhaps the
‘build’ phase too, and replace the ‘install’ phase:

  (alist-replace
   'install
   (lambda* (#:key outputs #:allow-other-keys)
     (let ((out (assoc-ref outputs "out")))
       (setenv "INSTALL_ROOT" out)
       (zero? (system* "sh" "install.sh"))))
   (alist-delete 'configure %standard-phases))

HTH,
Ludo’.

Reply via email to