makefu changed the topic of #nixos-wiki to: Welcome to the *unofficial* nixos wiki | https://nixos.wiki | chat logs: https://logs.nix.samueldr.com/nixos-wiki/
nixoswikibot has quit [Remote host closed the connection]
nixoswikibot has joined #nixos-wiki
orivej has quit [Ping timeout: 260 seconds]
Reaktor|krebs has quit [Read error: Connection reset by peer]
lassulus has quit [Ping timeout: 265 seconds]
orivej has joined #nixos-wiki
orivej has quit [Ping timeout: 248 seconds]
Reaktor|krebs has joined #nixos-wiki
lassulus has joined #nixos-wiki
Reaktor|krebs0 has joined #nixos-wiki
lassulus_ has joined #nixos-wiki
Reaktor|krebs has quit [Ping timeout: 256 seconds]
lassulus has quit [Ping timeout: 240 seconds]
Reaktor|krebs0 has quit [Read error: Connection reset by peer]
lassulus_ has quit [Read error: Connection reset by peer]
Reaktor|krebs has joined #nixos-wiki
lassulus has joined #nixos-wiki
lassulus has quit [Read error: Connection reset by peer]
Reaktor|krebs has quit [Read error: Connection reset by peer]
ixxie has joined #nixos-wiki
Reaktor|krebs has joined #nixos-wiki
lassulus has joined #nixos-wiki
lassulus has quit [Read error: Connection reset by peer]
Reaktor|krebs has quit [Read error: Connection reset by peer]
Reaktor|krebs has joined #nixos-wiki
lassulus has joined #nixos-wiki
ixxie has quit [Quit: Lost terminal]
ixxie has joined #nixos-wiki
orivej has joined #nixos-wiki
ixxie has quit [Quit: Lost terminal]
ixxie has joined #nixos-wiki
nixoswikibot has quit [Remote host closed the connection]
<fadenb> argh, broke the bot, will return soon(ish)
<fadenb> Hmm, i moved the mwikiircbot stuff into an overlay but it no longer find the ircbotframework dependency
<fadenb> (at runtime)
<fadenb> (rollback)
nixoswikibot has joined #nixos-wiki
<fadenb> If anyone has an example overlay adding new pythonpackages I would appreciate a link
<ixxie> hmm no clue
ixxie has quit [Quit: Lost terminal]
<nixoswikibot> [[Special:Log/newusers]] create  * Palik * New user account
<nixoswikibot> [[NixOS]] ! https://nixos.wiki/index.php?diff=2265&oldid=2122&rcid=2286 * Palik * (+7) /* Channels */ replace "nixos rebuild --upgrade" by "nixos-rebuild --upgrade switch"
ixxie has joined #nixos-wiki
<fadenb> I am experimenting a bit more with the overlay. Bot might leave for some time
nixoswikibot has quit [Remote host closed the connection]
ixxie has quit [Quit: Lost terminal]
<Mic92_> fadenb: I think the python nixpkgs documentation had something about overwriting python package sets.
<fadenb> 9.11.3.8. How to override a Python package using overlays? :)
<fadenb> To be honest I do not completely understand the python construct in nixpkgs
<fadenb> I am quite sure I understand the idea of overlays but combining both did not yet work for me :P
<Mic92_> fadenb: yes, should be that one
<fadenb> I am having trouble with the packageOverride. I do not want to override any package but add one
<Mic92_> fadenb: do you really need an overlay then?
<fadenb> At the moment I was using a fork of nixpkgs for the wiki deployment. I wanted to move the additional packages into an override
<fadenb> in order to be able to use upstream nixpkgs
<fadenb> (final goal is to finally publish nixos.wiki deployment code)
<makefu> fadenb: awesome!
<Mic92_> hard to say, what your problem is without seeing code
<fadenb> Those 2 packages are required for the wiki bot
<samueldr> and uh, upstreaming those to nixpkgs and using nixpkgs, is there a reason not to?
<samueldr> it wouldn't be the first thing added that's used by almost no-one :)
<makefu> thinking abut 2048 on the console
<makefu> but an overlay would be absolutely fine
<fadenb> The gist shows the basic idea of the overlay
<fadenb> I can actually deploy that but....
<fadenb> The bot will not start as it can not find the ircbotframework dependency
<fadenb> I checked the resulting wrapped mwikiircbot file, the ircbotframework is no longer in the path
<samueldr> I'm assuming `self: super:` got lost when gisting?
<fadenb> yes, it is in the file :p
<samueldr> could it be because you're using `super` instead of `self` with `callPackage`?
<samueldr> I'm still fuzzy with those, but AFAIUI, wouldn't super *not* use whatever you're adding to the overlay?
<fadenb> let's try :P
<fadenb> Apr 29 18:05:04 wiki mwikiircbot-start[14382]: File "/nix/store/06r8y9nmkcrggz5mdy7fjxc3ll9yci15-mwikiircbot-2015-01-07/bin/.mwikiircbot.py-wrapped", line 19, in <module>
<fadenb> ups
<fadenb> Apr 29 18:05:04 wiki mwikiircbot-start[14382]: import ircbotframe
<fadenb> Apr 29 18:05:04 wiki mwikiircbot-start[14382]: ModuleNotFoundError: No module named 'ircbotframe'
<fadenb> Still the same error
<samueldr> hmm, anyway it would've probably failed if what I said was right, since you're using one of the overlay's attributes there
<fadenb> https://gist.github.com/fadenb/1307960132f370b0e7849d9aff9abac1#file-gistfile1-txt-L15 is the wrapped file when adding the ircbotframework in pkgs/top-level/python-packages.nix
<makefu> can you add an "echo $pythonPath" to the installPhase?
<makefu> i've actually never seen wrapProgramsIn
ixxie has joined #nixos-wiki
<fadenb> $pythonPath seems to be emptry
<Mic92_> I added some comments for the first one
<Mic92_> I will fixup both I guess
<Mic92_> this wraps it correctly
<Mic92_> propagatedBuildInputs is the key here
<fadenb> cool, will try it right now :)
<Mic92_> fadenb: given that it is part of our nixos wiki infrastructure, we can add it as well to nixpkgs
<makefu> what is `format = "other";` i've never seen this magic before!
<Mic92_> makefu: in case there is no setup.py
<Mic92_> there are also other python buildsystems
<Mic92_> by default it tries to inject code into setup.py and fails if that does not exists.
<fadenb> Hmm, now i ran into another issue: error: attribute 'ircbotframework' missing, at /home/fadenb/code/nixos.wiki/overlays/mwikiircbot/pkgs/mwikiircbot/default.nix:22:52
<fadenb> It is not found in python3Packages?
<Mic92_> fadenb: have you removed it again?
<Mic92_> the patch worked for me.
<Mic92_> I applied both commits you gave me
<fadenb> you patched the version that is in the nixpkgs fork. There it was working fine
<fadenb> It is not in the overlay ?
<Mic92_> Again, without code it is hard to say.
<fadenb> I know :P
<fadenb> I will start aggressivly removing anything that should not be public (not much left) and put it up somewhere for others to take a look
<samueldr> I dare you to do it :)
<fadenb> I have been postponing it for way to long
<fadenb> Just to make sure: This is not intended as a "released" version. I just removed anything that was still left that is not public :p
nixoswikibot has joined #nixos-wiki
<fadenb> (no, not fixed, just deployed version with working bot)
ixxie has quit [Ping timeout: 240 seconds]
ixxie has joined #nixos-wiki
<nixoswikibot> [[Python]] ! https://nixos.wiki/index.php?diff=2266&oldid=2005&rcid=2287 * Krey * (+2) /* External Documentation */
<nixoswikibot> [[Overlays]] !N https://nixos.wiki/index.php?oldid=2267&rcid=2288 * Krey * (+1453) Created page with "Overlays provide a method to extend and change nixpkgs. They replace constructs like <code>packageOverride</code> and <code>overridePackages</code>. Consider a simple example..."
<nixoswikibot> [[Overlays]] ! https://nixos.wiki/index.php?diff=2268&oldid=2267&rcid=2289 * Krey * (-21) 
<nixoswikibot> [[Overlays]] ! https://nixos.wiki/index.php?diff=2269&oldid=2268&rcid=2290 * Krey * (+142) 
<nixoswikibot> [[Overlays]] ! https://nixos.wiki/index.php?diff=2270&oldid=2269&rcid=2291 * Krey * (+136) 
<fadenb> I give up on the overlay issue for today. Perhaps some sleep will help :p
<nixoswikibot> [[Overlays]] ! https://nixos.wiki/index.php?diff=2271&oldid=2270&rcid=2292 * Krey * (+6) 
<nixoswikibot> [[Overlays]] https://nixos.wiki/index.php?diff=2272&oldid=2271&rcid=2293 * Samueldr * (+749) Adds code to use nixos configured overlays as <nixpkgs-overlays>.
<samueldr> \o/ since someone else started the overlays page, I can finally add that snippet :)
<nixoswikibot> [[Overlays]] M https://nixos.wiki/index.php?diff=2273&oldid=2272&rcid=2294 * Samueldr * (+212) Fixes + <ref>
<nixoswikibot> [[Overlays]] M https://nixos.wiki/index.php?diff=2274&oldid=2273&rcid=2295 * Samueldr * (-15) minor: references tweaks because of difference between preview and actual page
<nixoswikibot> [[Overlays]] M https://nixos.wiki/index.php?diff=2275&oldid=2274&rcid=2296 * Samueldr * (+20) Adds a sub-title as mediawiki references are hard to integrate with an existing list.
<nixoswikibot> [[Special:Log/patrol]] patrol  * Samueldr * marked revision 2267 of [[Overlays]] patrolled 
krey has joined #nixos-wiki
<krey> samueldr: going off-topic from the main channel
<krey> I was thinking of deleting the "Overlay" page
<krey> but can't seem to figure out how
<samueldr> what do you mean, removing the redirect page, and keeping "Alternative Package Sets"?
<nixoswikibot> [[Alternative Package Sets]] ! https://nixos.wiki/index.php?diff=2276&oldid=1970&rcid=2297 * Krey * (-92) 
<krey> samueldr: yep
<samueldr> (maybe it's there) I'd recommend linking Alternative Package Sets in the Overlays article
<samueldr> then
<samueldr> when you're redirected, mediawiki will tell you
<samueldr> I've highlighted the part
<nixoswikibot> [[Alternative Package Sets]] ! https://nixos.wiki/index.php?diff=2277&oldid=2276&rcid=2298 * Krey * (-19) 
<samueldr> if you click on the page name, you will access the "redirect=no" version of the page
<samueldr> allowing you to manipulate it... you can edit and change the redirect
<samueldr> (this is a mediawiki feature)
<krey> I get it, yeah
<krey> When you type "Overlay" into search it suggests both "Overlay" and "Overlays"
<krey> I don't really see the need for having both, even if one's just a redirect
<samueldr> hmmm, that's something that won't affect only the overlay page, so it should be tackled at the source...
<samueldr> which I don't know yet how to handle
* samueldr opens a github issue
ixxie has quit [Quit: Lost terminal]
<krey> oh, nice