* Importing package-overlay-for-Nix - How?
@ 2020-10-20 8:48 Danny Milosavljevic
2020-10-21 12:59 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Danny Milosavljevic @ 2020-10-20 8:48 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 750 bytes --]
Hi,
since the Raspberry Pi open firmware effort has unstalled
https://github.com/librerpi/rpi-open-firmware/
I want to eventually package it in Guix.
It turns out that there are already config files for nix in the project above.
And we have a nix importer in Guix.
How do I use it
guix import nix
in order to import those packages?
See
https://github.com/librerpi/rpi-open-firmware/blob/master/bcm2835.nix
https://github.com/librerpi/rpi-open-firmware/blob/master/bootloader.nix
https://github.com/librerpi/rpi-open-firmware/blob/master/default.nix
https://github.com/librerpi/rpi-open-firmware/blob/master/netboot.nix
https://github.com/librerpi/rpi-open-firmware/tree/master/nix
for what I want to import.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Importing package-overlay-for-Nix - How?
2020-10-20 8:48 Importing package-overlay-for-Nix - How? Danny Milosavljevic
@ 2020-10-21 12:59 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-10-21 12:59 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
Hi,
Danny Milosavljevic <dannym@scratchpost.org> skribis:
> How do I use it
>
> guix import nix
>
> in order to import those packages?
This importer has bitrot; it could probably be salvaged with some effort
from someone knowledgeable about today’s Nix (i.e., not me :-)):
https://issues.guix.gnu.org/32339
Another option would be to delete it altogether: it only contributes a
tiny bit to the packaging effort. Only a tiny bit because the difficult
part is written as Bash and/or Nix functions, which the importer cannot
“translate”.
Let’s look at the examples you give:
> https://github.com/librerpi/rpi-open-firmware/blob/master/bcm2835.nix
Could be imported, minus ‘preConfigure’.
> https://github.com/librerpi/rpi-open-firmware/blob/master/bootloader.nix
This is not a package but a NixOS “module” (akin to a Guix service
type).
> https://github.com/librerpi/rpi-open-firmware/blob/master/default.nix
This looks like a package collection (obfuscated, though).
> https://github.com/librerpi/rpi-open-firmware/blob/master/netboot.nix
Not a package but a “module” for a custom initrd.
> https://github.com/librerpi/rpi-open-firmware/tree/master/nix
Not sure what that is.
In short, the importer would save you 2mn of typing for the first file,
little more.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-10-21 13:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-20 8:48 Importing package-overlay-for-Nix - How? Danny Milosavljevic
2020-10-21 12:59 ` Ludovic Courtès
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).