Hello,
the lsof tarball contains the source in a two-stage process: After
unpacking, one is left with lsof_4.87_src.tar, which needs to be unpacked
as well. I tried the following:
(arguments
`(#:phases
(alist-replace
'unpack
(lambda* (#:key source name version #:allow-other-keys)
(let ((unpack (assoc-ref %standard-phases 'unpack))
(inner (string-append name "_" version "_src.tar")))
(apply unpack (list #:source source))
(apply unpack (list #:source inner))))
%standard-phases)))
But apparently, NAME and VERSION are not passed through as function
arguments (they are #f). Would it make sense to changes this? Or do you see
a preferable way of doing the second stage unpacking?
Andreas