From: "jgart" <jgart@dismail.de>
To: help-guix@gnu.org
Subject: Gentoo like use-flags implemented as an experimental guix third-party lib?
Date: Wed, 20 Jan 2021 01:06:23 +0000 [thread overview]
Message-ID: <3485ac04e472c86d64faf3a0e2c6e453@dismail.de> (raw)
Hi Guix! I have a proposal:
It would be cool to offer gentoo like use-flags for guix as a third-party guix library.
See here for attempts in nixpkgs to get something similar upstream:
https://github.com/NixOS/nixpkgs/issues/12877
https://discourse.nixos.org/t/gentoo-like-use-flags/2210
I think this would be a perfect use case to put in practice the guix thesis and to showcase the freedom of extensibility it offers users without disrupting upstream project directions. For example, the guix-use-flags library could be offered in a guix channel.
guix-use-flags would allow users to add global filters to packages triggering rebuilds under those filters (e.g. disable sound, disable gui/xorg across all packages, etc...)
USE="ldap mbox sasl imap apache2 -png -jpeg -X -kde -gnome -gtk -gtk2 -gif -qt -opengl php -truetype"
would translate to a guix api as:
(use-flags '(ldap mbox sasl imap apache2 -png -jpeg -X -kde -gnome -gtk -gtk2 -gif -qt -opengl php -truetype))
I imagine this can be a global configuration setting that could be implemented via macros to rewrite (package ... '(#:configure-flags ... with the appropriate flags across all stated packages in a system configuration.
I think this would be especially useful for configuring guix system servers.
What are your thoughts on this? Is there an alternative way to do what I have described above that I am not thinking of?
next reply other threads:[~2021-01-20 1:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-20 1:06 jgart [this message]
2021-01-20 9:40 ` Gentoo like use-flags implemented as an experimental guix third-party lib? Pierre Neidhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3485ac04e472c86d64faf3a0e2c6e453@dismail.de \
--to=jgart@dismail.de \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).