qyliss has left #nixos-officehours ["WeeChat 2.5"]
psyanticy has joined #nixos-officehours
teto has joined #nixos-officehours
eyJhb has joined #nixos-officehours
<eyJhb>
How big of a PR are we talking?
<gchristensen>
eyJhb: pretty much any
<gchristensen>
what do you have in mind?
<infinisil>
We did talk about "impactful" PRs in #nixos-dev yesterday, maybe some of those?
<eyJhb>
gchristensen: I just really want to get #68850 merged, as I am currently using it without problems.. It is nothing big, just couple of lines and already reviewed by tilpner
<eyJhb>
infinisil: those sounds a lot better than mine :p
<tilpner>
eyJhb: I intentionally didn't approve it, because I'm not certain the pkgconfig removal was correct
<tilpner>
It uses pkgconfig, and it may have bubbled into availability, but you don't declare it anymore
<tilpner>
(Because I told you to, yes)
<eyJhb>
Oh, I might have misunderstood you then tilpner ! Sorry
<eyJhb>
But I am using it as I told you, on my server without any problems as far as I remember
<eyJhb>
Yeah, using it as-is in the PR, so it seems correct
<tilpner>
eyJhb: So my problem is that pidgin propagates pkgconfig
<tilpner>
That allows your PKG_CONFIG vars to work at all
<gchristensen>
infinisil: that would be great -- could you remind me of the list?
<tilpner>
And I can't decide on whether it would be more correct to have pkgconfig declared or not
<tilpner>
It's not important though for now, and maybe not ever
<eyJhb>
Ahh okay, but is there anythin that should be done about that ? Because as you said, it might not be important at all
<gchristensen>
we can take a look during the call! :)
<eyJhb>
So, it might as well be taken at that time, IF it becomes one, right?
<eyJhb>
Will "join" or look, when I have finished somewhat burning my dinner+eaten it :p
<infinisil>
gchristensen: These are the ones I mentioned (warning: botspam incoming): #44196, #47237, #57123, #63103, #67809, #68020, #68193, #68897, #69057
<hexa->
from when infinisil said it was there until I we saw it on the stream :)
pie_ has joined #nixos-officehours
<hexa->
gchristensen: looks like your video has blue/red mixed up
<gchristensen>
thanks hexa-
erictapen has joined #nixos-officehours
<hexa->
looks good now :)
<gchristensen>
the "black screen" problem is because I have to keep Zoom focused for Obs to be able to record it :/
<infinisil>
Hm, if "unstable" is part of the version, it will get ordered before eventual stable versions for sure though
<infinisil>
Which I think is something good
<eyJhb>
I love how that while worldofpeace is doing things on Zoom, and I can see it, I get he email before the ation is done :p
<infinisil>
worldofpeace: ^
<eyJhb>
s/he/the/
<__red__>
<<--- Not familiar with most things. All info lovingly accepted.
<gchristensen>
woohoo :)
<__red__>
(still at the "cargo-cult / 20+ comments before any of my PRs are accepted" stage)
<gchristensen>
those are cool review steps
<hexa->
indeed
<samueldr>
infinisil: I think that it won't, because it won't use the `version` attribute, but the nix built-in parsing of names that splits versions and names
<samueldr>
*but* that's just an "actually technically" thing, in reality it's a bit messy
<eyJhb>
worldofpeace has such a peaceful voice, loving these review steps!
<__red__>
Question
<__red__>
How does it know which version of the expressions to build?
<gchristensen>
shoot, __red__
<aanderse>
i'm not familiar with that hub tool... but it sounds like it would save me a load of time
<eyJhb>
Curious as well, how do you change to the PR branch that quick? Didn't see that magic
<__red__>
huh, never heard of hub.
<samueldr>
anything using libpurple, so pidgin, bitlbee
<eyJhb>
Ah
<eyJhb>
Answered mine as well
<__red__>
so nix-build -A foo uses ... the nixpkgs you're in?
<__red__>
or ythe system nixpkgs?
<samueldr>
nix-build will default to building ./., so ./default.nix
<__red__>
thanks
<samueldr>
-A gets an attribute on the result of ./default.nix
<eyJhb>
Basically my usecase is that I use it with bitlbee, as a input to `services.bitlbee.libpurple_plugins`
<samueldr>
so `nix-build -A hello ./default.nix` is equivalent to `nix-build -A hello`
<aanderse>
__red__: hey, you're back again :)
<__red__>
is "hub" a part of git-hub?
<infinisil>
samueldr: I think eventually we'll want to not use builtins.parseDrvName to detect the version, that's probably why we split pname and version to begin with
<adisbladis>
Should just be `platforms = pidgin.meta.platforms`, no?
<__red__>
aanderse: I am - It took a long time for me to get over my post-defcon depression :-/
<samueldr>
infinisil: yeah, something along the line, I was just doing the annoying "well actually" bit :)
<aanderse>
__red__: sorry to hear :( but yeah sounds like you had a really good time, so coming back to the real world can be a bummer sometime
migy has joined #nixos-officehours
<__red__>
lemme try this hub magic...
<samueldr>
because having `pname` xx-yy-unstable is going to be an issue once a "first stable" version is out, how does the user upgrade to it automatically? :)
<samueldr>
infinisil: if unstable is part of pname, `xx-yy` stable is a different package than `xx-yy-unstable` for nix-env
<eyJhb>
worldofpeace: sorry for it not being easily testable! :(
<infinisil>
samueldr: Which sounds like something bad right?
<samueldr>
both situations are not ideal
<samueldr>
AFAIUI
<samueldr>
though we may want to shelve that discussion (position of "unstable") for a later time :)
* infinisil
nods
<__red__>
Is there a gentoo/"masked" equivalent in nix?
<samueldr>
you may need to explain the feature
<LnL>
does nix-env know about pname? it doesn't AFAIK
<__red__>
If you have an old version of nixpkgs - doesn't that mean you're stuck on everytyhing else?
<__red__>
removing EOL software is concerning to me were I to use NixOS in the enterprise
<samueldr>
LnL: that's it, it doesn't
<aanderse>
__red__: you can just grab it from an older nixpkgs version
<savanni>
You can have multiple nixpkgs channels at once. I typically have nixpkgs-<version> as a channel name, and my system is a mix of packages from different channels.
<__red__>
Okay - so "masked" in gentoo basically means that it will not install or build unless you put *the explicit package* in a "I know this is stupid, do it anyways" file.
<aanderse>
then you can add software with oldstable.pkgname
<__red__>
Having multiple channels nixpkgs / channels is a foreign concept to me. Might actually answer my question I was pending for in the Q/A
<samueldr>
looks like the mic broke /:
<aanderse>
__red__: definitely ask then :D if you don't know likely others don't know either
<eyJhb>
Love it, good kitty. Annoying its owner by demanding scritches :p
Shell has joined #nixos-officehours
<__red__>
oh - hub is awesome - thank you!
<__red__>
I think I'm going to learn more just watching the workflows that I will from any questions I had pending
<eyJhb>
Curious, what are the conventions when someone has opened a "conversation"? E.g. when worldofpeace has opened three conversations regarding changes, is there any good practice? E.g. currently I comment something like "I have fixed this now", and then mark it as resolved for each conversation. (also, purple-slack should be good now!)
<worldofpeace>
eyJhb: that sounds good
<__red__>
Question: My daughter is dragging me over PR #68175 (minecraft) -- It's not my PR - but all my workstations we play games on in the house are on the unstable channel
<tilpner>
worldofpeace: Resolve via UI, or resolve via UI *and* comment that it's resolved?
<__red__>
oh - nm
<worldofpeace>
tilpner: respond to all comments and mark as resolved
<infinisil>
__red__: Ah yeah, I'll take a look at that one later, thanks for the reminder
<eyJhb>
Great! Thanks worldofpeace :D I was also in doubt regarding if I should push first, and then mark, or the other way around. Thanks for clearing that up! :)
<__red__>
So then - as a more general question
<hyperfekt>
__red__: That PR is finished I think, it just needs final review and merging.
<__red__>
if I'm in a situation where something isn't ready to merge but I still want to use it
<__red__>
how would one go about getting that PR branch into my nixos-rebuild?
<__red__>
okay - thanks
<__red__>
I did the nix-build so have a ./result which I can execute like ./result/bin/minecraft-launcher
<samueldr>
an overlay could work; an overlay where you copy the minecraft/default.nix and callPackage it into
<__red__>
but I guess I'm looking to see if there is a cleaner way
<__red__>
(if there isn't - I get it - honestly - the hub pr checkout - nix-build -A was gold to me)
<__red__>
how do you nix-env a symlnk?
<samueldr>
using nix-build and result is fine too
<__red__>
(thanks btw - I feel spoiled) :-)
<infinisil>
Btw, really cool, we had a person from mojang helping us out directly
<infinisil>
(@peterix)
<__red__>
Just show me the line - you don't need to rebuild your whlle system :-)
<gchristensen>
oh nice
<infinisil>
Apparently he's the linux guy for minecraft
<gchristensen>
man, seeing this work reminds me of how magical Nix is
<__red__>
that's amazing
* mgdm
tries to package something built with cmake
<__red__>
If you want to know why nix is magic? Try doing the same in ANY OTHER distro
<savanni>
This is all a feature that is driving me rapidly back to NixOS.
<adisbladis>
You can stick that in your systemPackages
<hyperfekt>
Yeah I saw peterix post about them pushing for Linux releases and doing the AUR package so I thought I'd just ping them, very happy it worked out.
<worldofpeace>
,nix-remove
<tilpner>
worldofpeace: I think a fork is a bad-ish option here :/
<infinisil>
,fancy-uninstall
<{^_^}>
Fancy way to uninstall packages, needs fzf installed: nix-env -q | fzf | xargs -I{} nix-env -e {}
<infinisil>
That?
<eyJhb>
Really want to get some cake, but I feel like I cannot miss anything from this
<__red__>
adisbladis: that's amazing - thank you
<hyperfekt>
__red__: If it doesn't depend on any other file you can just do callPackage (fetchurl...) to get the package from a PR.
<__red__>
dang
<tilpner>
worldofpeace: Beware, that is dynamic and will fetch later expressions
<eyJhb>
How long is the officehours? Do they stop in 5 minutes?
<savanni>
Thank you, worldofpeace and gchristensen
<gchristensen>
thank you =)
<__red__>
seriously, thank you.
<eyJhb>
Thank you guys ! <3
<worldofpeace>
savanni: You're welcome, I hope we get talk together in the next edition
<savanni>
worldofpeace: only if I have something to contribute, tbgh
<savanni>
tbqh
<eyJhb>
Now, cake
<__red__>
thanks - checking the links
<worldofpeace>
To the authors of the PR's I've reviewed, I'll be merging them/doing the last checks now.
<eyJhb>
SOunds great worldofpeace !
<pie_>
yeah its nice that you can fetch a pr with a github url like that and then import it
<eyJhb>
As far as I remember though, hub is Github only, right?
<tilpner>
pie_: Careful about the one shown on stream though :c
<savanni>
__red__: I've set up a nix channel for my own things. But I've done something wrong and it doesn't behave as a channel. I have resorted to importing it into my expressions and can share that if you're interested.
<__red__>
please do
<__red__>
that's basically what I want to do
<__red__>
at a high level - I want to run unstable... with my additional packages basically
<__red__>
I tried using overlays and drowned in configuration issues
<savanni>
Folks: should I go to a direct message to avoid cluttering the channel?
<gchristensen>
maybe go to #nixos-chat instead? :)
<erictapen>
worldofpeace: Do I remember right, that you used nix-remove and that it does some cool stuff? If you could you share a link about it/where to get it?
<gchristensen>
or even #nixos
<gchristensen>
it is super on topic, interesting stuff
<pie_>
tilpner: i actually am/was not on the stream so i have no idea about all the cool things i missed
<infinisil>
This is what worldofpeace mapped to nix-remove probably
<pie_>
tilpner: but yeah use something that thakes thw sha256
<gchristensen>
nothing like swapping red/blue to make me look like a very very sick person lol
<erictapen>
infinisil: ah ok, thanks!
<samueldr>
maybe a good subject for a future office hour is a Q&A about nixos on arm, with first pre-submitted questions, and then some from the room (and hopefully other people in addition to myself to answer)
<worldofpeace>
hmm, would like to talk about nixos on arm samueldr or maybe mobile nixos :D
<gchristensen>
samueldr: I just added that to the list :) thank you (maybe we could get WorksOnArm to join too!)
<eyJhb>
worldofpeace: I don't use it with pidgin ever, I use it with bitlbee using this option - services.bitlbee.libpurple_plugins
<eyJhb>
So basically enable bitlbee, add the plugin, join it, and if it loads and lists, it is "fine". I have it up and running on my own bitlbee instance atm. but that doesn't help you much :/
<worldofpeace>
Ahh, I see the slack proto in pidgin now
<worldofpeace>
can't test slack but it sounds tested
<eyJhb>
Thanks for taking the time out, for such a small PR! :D And giving a walkthrough of everything, really is great knowing how you do reviews
<eyJhb>
Feel like I should giving you cake, instead of just eating it myself
<worldofpeace>
Our treat I guess eyJhb I was happy to do this for you ❤️
<eyJhb>
worldofpeace cake on me if you are ever in Aalborg then! ;) - Btw. I think you are one of the first people, to ever pronounce my username :D
<worldofpeace>
eyJhb: I believe I did it correctly right?
psyanticy has quit [Quit: Connection closed for inactivity]
<eyJhb>
I have never decided upon it worldofpeace , so I guess you have set the standardfor it :p I have basically chosen it because I had worked a lot with some reverse engineering of a mobile banking app, where all encryption encoded string started like "eyJhb" (`{"alg"`), and jhb are my initials :p So it just made sense
<gchristensen>
btw everybody subscribe to the channel so we can get the NixOS URL
<worldofpeace>
TBH I think i'll do that unless someone feels like fixing it better.
<worldofpeace>
I keep getting nerd sniped gchristensen :D
<gchristensen>
:D
<gchristensen>
my entire experience with NixOS started with a nerd snipe
<worldofpeace>
ooh, what detail? I'd say it's the same for me.
<gchristensen>
I was doing immutable infra with chef-solo, Packer, AMIs, and auto scaling groups and thought "Man, this probably can't be topped."
<gchristensen>
someone said "hmm.. you might try ____"
<gchristensen>
I said "mmmm I don't know, I don't believe it."
<gchristensen>
they said "well ... you might try it."
erictapen has quit [Ping timeout: 265 seconds]
<worldofpeace>
Hah, you sure did
<worldofpeace>
and substitute topped with ascended to a new haven of computing
<gchristensen>
the configuration.nix for one of my production servers at the time was like 50 lines of nix.
erictapen has joined #nixos-officehours
<gchristensen>
and I didn't have to wait for an EC2 server to boot before finding out I had a syntax error in my Chef code!
<worldofpeace>
I always find it interesting, how programs can influence the way we think about thing and the program itself. Just because of the experience it gave us.
<gchristensen>
that is so true
<worldofpeace>
like if you even watched David Heinemeier Hansson talk about ruby, it's not a perfect language, but they feel it's really impacted their life in a meaningful way. and dispite the tools flaws you'd really just like to share that experience because you can.
<worldofpeace>
(I think I'm on a TED talk idea here or something :D)