!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

354 Members
111 Servers

Load older messages


SenderMessageTime
30 Jun 2022
@qyliss:fairydust.spaceAlyssa Rossit could probably use some love08:49:59
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howThose layered imports seem wrong to me, is there a better way to do it?08:50:14
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how the chain of imports = [ ../../foo ] and then ../../foo does imports = [ ./foo/foo ] and then ./foo/foo imports ../foo 08:50:47
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how * the chain of imports = [ ../../foo ] and then ../../foo does imports = [ ./foo/foo ] and then ./foo/foo imports = ../foo 08:50:58
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how * the chain of imports = [ ../../foo ] and then ../../foo does imports = [ ./foo/foo ] and then ./foo/foo imports = [ ../foo ] 08:51:03
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howI mean, I do that in my own configs. But my own configs are not as complex as what is in nixos-hardware 08:51:31
@qyliss:fairydust.spaceAlyssa Rosshttps://github.com/NixOS/nixpkgs/pull/17968608:51:46
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how
In reply to @qyliss:fairydust.space
https://github.com/NixOS/nixpkgs/pull/179686
Awesome that there's already an example in nixos-hardware which you've linked to.
08:52:33
@qyliss:fairydust.spaceAlyssa Ross:)08:53:04
@matthewcroughan:defenestrate.itmatthewcroughan - nix.hownixos-hardware is comparable to a "bsp" in Yocto terminology. A "board support package" if anyone has ever used or dabbled with it.08:53:56
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howBasically they give you a bunch of "bitbake" code, like nix code, which you import. Then it gets rid of all the quirks, and patches software, etc. Much like an overlay in nix.08:54:27
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howAn example of what a bsp would do, is patch ffmpeg to have support for the Pi's OMX gpu. 08:54:58
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how what we do with configureFlags = [ --enable-omx ] 08:55:09
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how * what we do with configureFlags = [ "--enable-omx" ] 08:55:20
@dramforever:matrix.orgdramforever
In reply to @dramforever:matrix.org
I guess I should clarify that the thing I worry about most is not just linux_visionfive but all the other things in the PR
IMHO We're not even sure how long the VisionFive will last, and what other things StarFive will do, and what the other Linux-capable RISC-V computers in the future will be like. We already know StarFive is working on a JH7110, an even better 8-core thing (I think these two are not the same?).
Will we be updating linux_visionfive or will we need linux_visionfive_v2? Are we prepared to deal with upstream issues in github:starfive-tech/*? Will StarFive keep upstreaming their drivers or not?
08:55:39
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howhttps://github.com/agherzan/meta-raspberrypi08:55:49
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howhere's what their "BSP" looks like 08:55:54
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how So in order to patch mesa, they cannot just mesa.override since their language is simply terrifying and doesn't work like that, they do this https://github.com/agherzan/meta-raspberrypi/tree/master/recipes-graphics/mesa 08:56:45
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how Line 6 of mesa-gl_%.bbappend is basically what we could do with foo.overrideAttrs (_: { postFixup = "rm -rf someFile"'; }) 08:57:58
@dramforever:matrix.orgdramforever
In reply to @dramforever:matrix.org
IMHO We're not even sure how long the VisionFive will last, and what other things StarFive will do, and what the other Linux-capable RISC-V computers in the future will be like. We already know StarFive is working on a JH7110, an even better 8-core thing (I think these two are not the same?).
Will we be updating linux_visionfive or will we need linux_visionfive_v2? Are we prepared to deal with upstream issues in github:starfive-tech/*? Will StarFive keep upstreaming their drivers or not?
A question I've been thinking of throughout this discussion is... Why doesn't the Unmatched need all this, honestly, crap?
08:59:51
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howHas it not just been around for longer and therefore upstreamed more stuff?09:00:25
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howAnd perhaps SiFive are just faster, better, at upstreaming?09:00:35
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howIt's all down to upstreaming, etiquette, putting the work in, on behalf of the vendor isn't it?09:00:53
@dramforever:matrix.orgdramforever Upstreaming in this case means putting things into linux not linux_unmatched, right? 09:01:21
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howIt takes work and time to do the extra step of upstreaming the code, and ultimately the vendor needs to do that work09:01:24
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how
In reply to @dramforever:matrix.org
Upstreaming in this case means putting things into linux not linux_unmatched, right?
yes
09:01:29
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howtechnically anyone can do the work of upstreaming the code to Linux, but it's a lot easier for people working for the vendor to do it 09:01:49
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howAnd if it's simply not in the culture to do that, fast, and readily, then it just chugs along at a snails pace 09:02:12
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howAll of this will eventually settle, since all of the work is being done in the open 09:03:02
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howWith android phones there are genuine proprietary bits which make this a permanent problem though 09:03:30

Show newer messages


Back to Room ListRoom Version: 6