[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: foreign-distro?
From: |
Zhu Zihao |
Subject: |
Re: foreign-distro? |
Date: |
Wed, 23 Nov 2022 18:36:49 +0800 |
User-agent: |
mu4e 1.8.11; emacs 29.0.50 |
If you want to left the choice to user. You can just don't patch it. Or
you can always patch it because user can still use package transformer
to specify a custom ffmpeg.
jgart <jgart@dismail.de> writes:
> 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
--
Retrieve my PGP public key:
gpg --recv-keys B3EBC086AB0EBC0F45E0B4D433DB374BCEE4D9DC
Zihao
signature.asc
Description: PGP signature