unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Adonay Felipe Nogueira via <help-guix@gnu.org>
To: help-guix@gnu.org
Subject: Re: Is there something similar to nix overlays in guix?
Date: Thu, 11 Mar 2021 08:05:02 -0300	[thread overview]
Message-ID: <08bd745a-74c1-af03-20af-2458f1001e93@hyperbola.info> (raw)
In-Reply-To: <CAK9RveKVsewhmybK+O6r2H1PEsXjiWzKwwgeRa4a_0N9C7UPeQ@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2642 bytes --]

Em 05/03/2021 16:20, Vinícius dos Santos Oliveira escreveu:
> You don't want to be a slave to upstream developers' decisions and
> want to apply out-of-tree patches that automatically propagate to the
> rest of the packages ecosystem.

I don't know the specifics of the non-free software Nix, but by experience I think that one of those might suit your case:

a) the (package (source (origin (patches …) …) …) …) definition, where stuff is applied right after being unpacked/extracted, before configuring and building. If you are dealing with GNU FSDG issues or things which will be upstreamed, this would be the perfect place for the patch since you wouldn't be forcing the source package to use Guix's store paths or Guix-specific changes. It also means that people who do guix build -S will receive the source with patches applied;

b) an invocation of GNU patch from (package (arguments (modify-phases …) …) …), allowing you to do as (a) but for Guix-specific changes;

c) use of (package (replacement …) …) to your own package definitions to provide grafts (see `info guix "Security Updates" ` for the requirements and caveats), but note that, since I don't use this option, I don't know much about how to implement it;

d) invoking guix build — or those with support for its transformation options — with --with-patches=PACKAGE=FILE, to do it like (a);

e) same as (d), but with --with-grafts=PACKAGE=REPLACEMENT, to do it like (c);

f) same as (d), but with --with-latest=PACKAGE, to force a given build/install/upgrade to use the latest known version of PACKAGE instead of the one from the built package's definition. This of course comes at a price, as can be read on `info guix "Package Transformation Options" `


-- 
* Ativista do software livre
	* https://libreplanet.org/wiki/User:Adfeno
	* Membro dos grupos avaliadores de
		* Software (Free Software Directory)
		* Distribuições de sistemas (FreedSoftware)
		* Sites (Free JavaScript Action Team)
	* Não sou advogado e não fomento os não livres
* Sempre veja o spam/lixo eletrônico do teu e-mail
	* Ou coloque todos os recebidos na caixa de entrada
* Sempre assino e-mails com OpenPGP
	* Chave pública: vide endereço anterior
	* Qualquer outro pode ser fraude
	* Se não tens OpenPGP, ignore o anexo "signature.asc"
* Ao enviar anexos
	* Docs., planilhas e apresentações: use OpenDocument
	* Outros tipos: vide endereço anterior
* Use protocolos de comunicação federadas
	* Vide endereço anterior
* Mensagens secretas somente via
	* XMPP com OMEMO
	* E-mail criptografado e assinado com OpenPGP


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2021-03-11 11:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-05 19:20 Is there something similar to nix overlays in guix? Vinícius dos Santos Oliveira
2021-03-11 11:05 ` Adonay Felipe Nogueira via [this message]
2021-03-11 12:04   ` Tobias Geerinckx-Rice

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=08bd745a-74c1-af03-20af-2458f1001e93@hyperbola.info \
    --to=help-guix@gnu.org \
    --cc=adfeno@hyperbola.info \
    /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).