<pie_[bnc]>
im not surprised either, this wouldnt be the first time
<pie_[bnc]>
the only way i ever manage to understand any of this stuff is to reinvent it myself..which is kind of frustrating
<MichaelRaskin>
You do not know how my LFS setup looked like before I switched to NixOS…
<pie_[bnc]>
uh i think i just repasted the same thing from ealier hold on
<pie_[bnc]>
well, the highlighting is screwed, but the end uses a variant of recursiveUpdate for overriding in the nested functors https://bpaste.net/EXCQ
<pie_[bnc]>
a lot of nixpkgs guts feel write-only
<pie_[bnc]>
^unrelated coment
<pie_[bnc]>
i should make a minimum example of this style the paste is inscrutable
<MichaelRaskin>
pie_[bnc]: it gets better re: write-only
<pie_[bnc]>
i have GHC envy
<MichaelRaskin>
A drawback of this as a demo is that you need large chunks of Python verbatim
<MichaelRaskin>
(also, poor bpaste highlighter, it was not ready for such language nesting)
<pie_[bnc]>
i actually only have like one line of python
<pie_[bnc]>
but heh :D
<pie_[bnc]>
oh no. my code it _full_ of functors. error: '__functor' at default2.nix:64:20 called with unexpected argument '__functor', at undefined position
<MichaelRaskin>
All the way down.
<pie_[bnc]>
nevermind, removed my single use of with
<pie_[bnc]>
figured i'd try adding `{ ... } // { __functor = self: args: with self//args; ... }` at the top level for callpackage compatibility...
<pie_[bnc]>
actually...might not make sense to have a functor at the top level.