<samueldr>
gchristensen: trying it on 18.03 on my test machine
<gchristensen>
cool!
__Sander__ has quit [Quit: Konversation terminated!]
phreedom has joined #nixos-dev
<niksnut>
seeing code like '${if ff ? overrideAttrs then "overrideAttrs" else null} = fdrv: ...' makes me realize Nixpkgs has become one hack piled on top of another
<gchristensen>
:$
<niksnut>
really, everything in lib/customisation.nix
<gchristensen>
the overrides are all weird, and frequently don't work as people expect. I totally agree
<niksnut>
otoh, TIL attribute names can be null
<gchristensen>
you must be kidding
<niksnut>
it causes the attribute to be deleted
<niksnut>
e.g. { ${null} = 123; } => {}
<gchristensen>
huh
<gchristensen>
it'd be a real magic trick if ({ foo = 123; } // { ${null} = 123; }) == {}
<gchristensen>
samueldr: any results?
<samueldr>
ah, doing it through the normal work day
<samueldr>
it should be finished building
<gchristensen>
oh cool
orivej has quit [Ping timeout: 260 seconds]
<samueldr>
on 18.03 at least (haven't had time to track down) it seems that $font in the perl script is empty even though cfg.conf isn't null (as traced in the lib.optional condition) in the nix file
<gchristensen>
cfg.conf?
<samueldr>
cfg.font*
<samueldr>
I shouldn't write when thinking :)
<samueldr>
lib.optional seems to be for lists
<samueldr>
using a clumsy if instead of lib.optional seems to work on my end
<gchristensen>
oohhh
<gchristensen>
nice
<samueldr>
I would assume the same holds true for unstable
<gchristensen>
you're quite likely right
<gchristensen>
testing a new patch
phreedom has quit [Ping timeout: 250 seconds]
<gchristensen>
samueldr: how about that
phreedom has joined #nixos-dev
<samueldr>
looks right (in the conf
<samueldr>
boots with an image and font as expected, now let's try null
<samueldr>
builds and boots right
<gchristensen>
:) <3 :D
<samueldr>
(replied with the gisted diff just in case)
<gchristensen>
I'mma merge & backport
<gchristensen>
thank you!
<samueldr>
in the nixos modules system, is there a precedent for adopting another scripting language than perl (I'm not talking about porting existing modules, but for new modules)
<samueldr>
I see there may be two python scripts
<samueldr>
oh, only 6 .pl scripts
<gchristensen>
I think there is reason to stick to perl for the core modules all systems have in their closure
jtojnar has quit [Read error: Connection reset by peer]
<samueldr>
that's what I assumed
<gchristensen>
which is, all the other ones are perl, and we care about closure size. ... but that is all I think.
<gchristensen>
it would be very cool if filterSource emitted an info line about files / directories which were omitted
<clever>
gchristensen: you can sort of do that by just wrapping the function with another "filter" that uses builtins.trace any time the real filter returns false
<gchristensen>
that would be a good start
orivej has quit [Ping timeout: 248 seconds]
<gchristensen>
yeah so two things about that, though: it would be nice to be able to emit a message once, like "files were filtered, re-run with --show-skipped-files to see which ones` (or something)
<gchristensen>
or, not print per-file inside a dir if an entire dir is filtered out
jtojnar has joined #nixos-dev
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 260 seconds]
jtojnar_ has joined #nixos-dev
jtojnar has quit [Ping timeout: 264 seconds]
jtojnar_ is now known as jtojnar
orivej has joined #nixos-dev
xeji has joined #nixos-dev
<xeji>
anyone have a spare mac ? ofborg darwin queue is growing with zero builders online :)
<gchristensen>
oh no
<gchristensen>
thanks xeji let me kick mine
<xeji>
great, thanks
<gchristensen>
this old mac is really showing its age