unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* `guix install protobuf:static` headers?
@ 2019-10-31 15:52 zimoun
  2019-11-03 17:19 ` Marius Bakke
  0 siblings, 1 reply; 5+ messages in thread
From: zimoun @ 2019-10-31 15:52 UTC (permalink / raw)
  To: help-guix

Dear,

When I run `guix install protobuf:static -p path/to/profile` then I
expect that the headers are in "path/to/profile" but they are not.
However, they appear without the ":static" flag.

I am confused.

Moreover, the static libraries are even copied without the flag ":static".

--8<---------------cut here---------------start------------->8---
         (add-after 'install 'move-static-libraries
           (lambda* (#:key outputs #:allow-other-keys)
             ;; Move static libraries to the "static" output.
             (let* ((out    (assoc-ref outputs "out"))
                    (lib    (string-append out "/lib"))
                    (static (assoc-ref outputs "static"))
                    (slib   (string-append static "/lib")))
               (mkdir-p slib)
               (for-each (lambda (file)
                           (install-file file slib)
                           (delete-file file))
                         (find-files lib "\\.a$"))
--8<---------------cut here---------------end--------------->8---


What should be the correct behaviour of "out" vs "static"?


All the best,
simon

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-11-18 10:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-31 15:52 `guix install protobuf:static` headers? zimoun
2019-11-03 17:19 ` Marius Bakke
2019-11-04 15:34   ` zimoun
2019-11-15 18:50     ` Marius Bakke
2019-11-18 10:14       ` zimoun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).