unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* foreign-distro?
@ 2022-11-20 20:54 jgart
  2022-11-20 22:08 ` foreign-distro? Julien Lepiller
  2022-11-23 10:36 ` foreign-distro? Zhu Zihao
  0 siblings, 2 replies; 5+ messages in thread
From: jgart @ 2022-11-20 20:54 UTC (permalink / raw)
  To: Guix Devel

Does Guix have a declarative Guix API way of knowing if it is installing
a package into foreign distro versus Guix System?

I'm thinking of a function like `foreign-distro?`:

```
(define-public peek
  (package
   (name "peek")
   ...
(inputs 
  `(,@(if (foreign-distro?) `(("ffmpeg" ,ffmpeg)) '())))
```

The above includes ffmpeg in the inputs only if installing peek on a
foreign distro. It could additionally patch the ffmpeg executable in
a peek package phases if foreign-distro? returns #t.

WDYT


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

end of thread, other threads:[~2022-11-23 12:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-20 20:54 foreign-distro? jgart
2022-11-20 22:08 ` foreign-distro? Julien Lepiller
2022-11-21  1:57   ` foreign-distro? Jake Shilling
2022-11-23 10:36 ` foreign-distro? Zhu Zihao
2022-11-23 12:34   ` foreign-distro? Wojtek Kosior via Development of GNU Guix and the GNU System distribution.

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).