CMCDragonkai has quit [Quit: Connection closed for inactivity]
kvda has joined #nixos
<thoughtpolice>
Does anyone know if there's a way to start a NixOS VM test with external bridge networking enabled? It would be nice to reuse the infrastructure for things that need to actually talk to 3rd party APIs, etc
<thoughtpolice>
I'm sure someone has wanted this but my searches for it are futile
lassulus has quit [Ping timeout: 265 seconds]
tv has quit [Ping timeout: 265 seconds]
tilpner has quit [Ping timeout: 265 seconds]
ts3 has quit [Ping timeout: 276 seconds]
<drakonis>
nixpkgs nearly at 200k commits now, just 379 commits to go
aaa_ has quit [Ping timeout: 268 seconds]
ts3 has joined #nixos
<drakonis>
who's our lucky winner
doyougnu has joined #nixos
tilpner has joined #nixos
mexisme has joined #nixos
tv has joined #nixos
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 245 seconds]
mbrgm_ is now known as mbrgm
sondr3 has quit [Quit: WeeChat 2.6]
halfbit has quit [Ping timeout: 265 seconds]
lassulus has joined #nixos
wildtrees has quit [Quit: Leaving]
<zeta_0>
pikajude: thanks, and what about the [] ?
<laudecay>
i heard that like.... messy multiple-project fuckton-of-languages development is nice on there
<DigitalKiwi>
and there's one about znc for irc bouncer and there's one for nginx and probably apache and there are a few things for mail servers and nixcloud...
<DigitalKiwi>
i have kde and xmonad and claws-mail there are i3 users here
<{^_^}>
[nixpkgs] @thoughtpolice pushed 3 commits to master: https://git.io/Jeuw0
<notgne2>
the only real place I see nix-things lacking greatly, is actually in the totally seperate project named home-manager, which I use instead of dotfiles
<DigitalKiwi>
i've added a few znc plugins and bitwarden-desktop and ocrmypdf and submitted multiple PRs for other projects. people here are very responsive and helpful when it comes to helping you help
<laudecay>
yeah small projects tend 2 b like that
<laudecay>
arch community, haskell community
<laudecay>
ig this is like an extreme of that
<DigitalKiwi>
i mean there are almost 800 maintainers on the nixos list...
drakonis2 has joined #nixos
<notgne2>
I also had to add a few service definitions myself, but then had to delete a lot of my own definitions when I updated to 19.09 cos NixOS added them in
<DigitalKiwi>
hehe, on more than one occasion i've started to update or add something and then i go and check open PRs and someone already did it
ts1 has quit [Ping timeout: 250 seconds]
drakonis_ has quit [Ping timeout: 264 seconds]
<drakonis>
upstreaming is magic here.
vonfry has quit [Quit: WeeChat 2.6]
ts1 has joined #nixos
<drakonis>
we need more people to help go through the issues and PRs
<laudecay>
yeah im just
<drakonis>
s/need/still need
<laudecay>
aaaaa i have so much shit to learn right now
<notgne2>
I have a lot of home-manager modules I should make PRs for
<DigitalKiwi>
i'm willing and able i'm just not sure a. that i'm qualifed and b. what i can do
<DigitalKiwi>
drakonis: ^
<drakonis>
we all have to start somewhere
drakonis1 has quit [Ping timeout: 245 seconds]
<drakonis>
there's a lot of issues and PRs you can go through and help fix/merge
<DigitalKiwi>
i'm usually the one that needs help fixing my PRs :(
<notgne2>
I got caught up on learning nix stuff when the place I work needed me to put NixOS inside docker with support for existing service definitions
<notgne2>
That was a fun learning experience
marusich has quit [Remote host closed the connection]
<notgne2>
And since then I've just done stuff like make every application be auto-base16 and work through deprecating my many old old dotfiles
<notgne2>
(I now have 1 file left to replace)
<laudecay>
god i have to learn to reverse binaries and get my OSCP and contribute to wireguard and do work work stuff and read marx and practice cello and implement libc and aaaAAAAAAA
<laudecay>
ill be back. soon. when there is less on my plate.
<drakonis>
it is always nice to admit it
ts1 has quit [Ping timeout: 245 seconds]
<drakonis>
i'm definitely in the "i'm certain i'm inadequate and unqualified"
<drakonis>
boat
<DigitalKiwi>
oh so i have a question: i can't stand plesk/cpanel/etc. and there are things like whmcs and other $random codecanyon etc. php scripts that i sometimes have to deal with... is there any way i can improve my life when i have to use those things that won't run on anything but rpm or deb distros?
<laudecay>
oh i dont know if im adequate or qualified but i could def put time towards learning
<drakonis>
have you run a container?
marusich has joined #nixos
<drakonis>
it is definitely a decent way to get around these distro specific packages
ts1 has joined #nixos
<DigitalKiwi>
i've not had a lot or good experience with containers
<drakonis>
you have a environment similar to that of the target distro
<drakonis>
i run debian on a container for specific software
<DigitalKiwi>
mostly i deal with digital ocean vps with centos or nixos
<drakonis>
java requires a specific change due to debian people being weird
<drakonis>
rpm family likes selinx it seems?
<drakonis>
selinux
<DigitalKiwi>
yea
<drakonis>
not always perfect but fixable
<DigitalKiwi>
well at least centos
<DigitalKiwi>
a lot of things make you disable it anyway :|
selfsymmetric-mu has joined #nixos
<DigitalKiwi>
of course it's php apps that do
xd1le has joined #nixos
<DigitalKiwi>
what do you use for container? and does it work with nixops?
ts1 has quit [Ping timeout: 250 seconds]
ts1 has joined #nixos
* DigitalKiwi
is reminded that the only things that work with the latest nixops (when i last checked) right now seems to be aws and hetzner
<{^_^}>
[nixpkgs] @artemist opened pull request #72211 → pythonPackages.html2text: Downgrade for old Python versions → https://git.io/Jeuw6
<drakonis>
i run other distributions on the container, rather than nixos
<drakonis>
for doing tasks that target other distributions
fusion809 has joined #nixos
leo__ has quit [Quit: leaving]
ts1 has quit [Ping timeout: 276 seconds]
<DigitalKiwi>
err i mean like do you use docker or k8s or virtualbox or iirc nixos has some sort of container?
ts1 has joined #nixos
FreshcollegeGirl has joined #nixos
<DigitalKiwi>
oh nixos containers are only nixos inside nixos
marcusr has joined #nixos
ts1 has quit [Ping timeout: 246 seconds]
toppler has quit [Ping timeout: 246 seconds]
ts1 has joined #nixos
snicket has joined #nixos
marcusr has quit [Remote host closed the connection]
marcusr has joined #nixos
wewerrr has quit [Ping timeout: 276 seconds]
wewerrr has joined #nixos
ts1 has quit [Ping timeout: 245 seconds]
ts1 has joined #nixos
toppler has joined #nixos
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 264 seconds]
<xd1le>
it failed after a change I suggested, to use ${pname} in src attribute
LoneThistle has joined #nixos
ts1 has quit [Ping timeout: 246 seconds]
<xd1le>
oh it needs rec
ts1 has joined #nixos
<lopsided98>
xd1le: also, there is no need to use string interpolation, it can just be "repo = pname;"
snicket has quit [Ping timeout: 265 seconds]
<disasm>
this is an interesting warning because it still manages to work (and my derivation requires ssh'ing into a separate host and getting something back in IFD): warning: ignoring the user-specified setting 'allow-unsafe-native-code-during-evaluation', because it is a restricted setting and you are not a trusted user
<DigitalKiwi>
replace --upgrade with --check-only and nixos-rebuild with nix-build and nix-channel --update with whatever the manual comands are
ts1 has quit [Ping timeout: 264 seconds]
ts1 has joined #nixos
domogled has joined #nixos
jlmeeker has joined #nixos
monotux has quit [Quit: WeeChat 2.6]
freeman42x has quit [Ping timeout: 245 seconds]
monotux has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
ts1 has quit [Ping timeout: 250 seconds]
marcusr has quit [Remote host closed the connection]
marcusr has joined #nixos
ts1 has joined #nixos
domogled has quit [Quit: domogled]
ts1 has quit [Ping timeout: 264 seconds]
mexisme has quit [Ping timeout: 240 seconds]
ts1 has joined #nixos
jlmeeker has quit [Ping timeout: 268 seconds]
toppler has joined #nixos
ts1 has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @jonringer merged pull request #72211 → pythonPackages.html2text: Downgrade for old Python versions → https://git.io/Jeuw6
<{^_^}>
[nixpkgs] @jonringer pushed commit from @artemist to master « pythonPackages.html2text: freeze at 2018.1.9 »: https://git.io/Jeurv
ts1 has joined #nixos
marcusr has quit [Remote host closed the connection]
marcusr has joined #nixos
ts1 has quit [Ping timeout: 264 seconds]
ts1 has joined #nixos
ts1 has quit [Ping timeout: 246 seconds]
ts1 has joined #nixos
wewerrr has quit [Ping timeout: 268 seconds]
ts1 has quit [Ping timeout: 246 seconds]
<wedens[m]>
how do I solve linker errors when doing musl builds (haskell) "(.text+0x10a): undefined reference to `SSL_CTX_new'"? I have static openssl listed in `--ghc-option=-optl=-L`
wewerrr has joined #nixos
ts1 has joined #nixos
<wedens[m]>
it's probably related to postgresql-libpq dependencies
<{^_^}>
[nixpkgs] @jonringer merged pull request #72204 → pythonPackages.isort: Add explicit setuptools dep and bin test → https://git.io/JeuaS
<{^_^}>
[nixpkgs] @jonringer pushed commit from @Shados to master « pythonPackages.isort: Add explicit setuptools dep and bin test »: https://git.io/JeuoL
rotaerk has quit [Ping timeout: 240 seconds]
ts1 has quit [Ping timeout: 252 seconds]
ts1 has joined #nixos
<{^_^}>
[nixpkgs] @tekeri opened pull request #72214 → perl5.28.2-Crypt-ECB: init at 2.21 → https://git.io/Jeuoq
<kraem>
anyone having troubles building python2.7-fonttools-4.0.2 ? I'm getting "ERROR: Package 'fonttools' requires a different Python: 2.7.17 not in '>=3.6'" while rebuilding
laudecay has quit [Ping timeout: 240 seconds]
<CMCDragonkai>
Has something been super improved in booting?
<CMCDragonkai>
I just checked the size of my initrds in /boot
<CMCDragonkai>
they are now only 12 MiB
mstruebing has joined #nixos
<CMCDragonkai>
They used be way larger at 500 MiB
<gchristensen>
nice
<CMCDragonkai>
And they don't require gunzip
<CMCDragonkai>
They are just normal CPIO archive stream
<CMCDragonkai>
that can be inspected with `cpio -it <./initrd`
<adamt>
If they were ever 500MiB for all by default, my system wouldn't have worked for the last x years. :-)
<CMCDragonkai>
no other files in the initrd
<CMCDragonkai>
well my initrd before had to have zfs in it
<CMCDragonkai>
in order to mount the zfs filesystem for stage e2
<CMCDragonkai>
where did all the stuff in the initrd go?
dansho has quit [Ping timeout: 246 seconds]
<CMCDragonkai>
and i did check every single initrd i have in /boot/EFI/nixos
<mstruebing>
I've installed nix on my arch setup and in my home directory is a broken symlink from `/home/maex/.nix-profile -> /nix/var/nix/profiles/per-user/maex/profile` how do I repair that? How to create that file? I've used the multi user installation with daemon
dansho has joined #nixos
<CMCDragonkai>
they are all just 12 MiB, containing only that single file
<mstruebing>
the service and socket is running
<CMCDragonkai>
for comparison the netboot initrd is 687 MiB
<CMCDragonkai>
generated by `nix-build -A netboot.x86_64-linux nixos/release.nix`
<CMCDragonkai>
im super confused, where did all the stuff inside initrd before disappear to
<gchristensen>
do you have a separate /boot partition?
<CMCDragonkai>
nope
<CMCDragonkai>
i mean yea, `/boot` is mounted
<CMCDragonkai>
only 1 disk
wfranzini has joined #nixos
<CMCDragonkai>
i know something has changed significantly, cause i remember i used to have this issue https://github.com/NixOS/nixpkgs/issues/23926 and that's why my boot partition ESP was partitioned to 1GiB to avoid those problems, but now i checked total usage of my boot partition is now under 50 MiB
<{^_^}>
#23926 (by joepie91, 2 years ago, open): When /boot is full, system rebuilds fail
<CMCDragonkai>
i know something has changed significantly, cause i remember i used to have this issue https://github.com/NixOS/nixpkgs/issues/23926 and that's why my boot partition ESP was partitioned to 1GiB to avoid those problems, but now i checked total usage of my boot partition is now under 50 MiB
<{^_^}>
#23926 (by joepie91, 2 years ago, open): When /boot is full, system rebuilds fail
<CMCDragonkai>
nowhere near the 1 GiB limit i had to set before
wfranzini has quit [Client Quit]
lsix has joined #nixos
lsix has quit [Client Quit]
<CMCDragonkai>
what are you initrd sizes?
__monty__ has joined #nixos
lsix has joined #nixos
jgt1 has joined #nixos
<DigitalKiwi>
15MB
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite>
dminuoso: sorry, wasn't looking anymore when you asked… is it cleared up now, or do you still want an explanation of how the runCommand hack works?
<sphalerite>
What's the right way to get /dev/i2c-* nodes for the i2c devices on my laptop? I figure udev should create them if I tell it to, but how do I do that?
jgt1 has quit [Read error: Connection reset by peer]
<raboof>
if I want to use 'basically nixos-unstable', but cherry-pick say 2 packages from other branches that have not been merged yet (but that I hope get merged at some point) - is there a typical setup to achieve that?
<FRidh>
raboof: as you wrote yourself, just cherry-pick
<DigitalKiwi>
I just clone a nixpkgs and checkout the commit that's cached (as per manual) and then cherry-pick and nixos-rebuild with -I nixpkgs=~/nixpkgs
<DigitalKiwi>
or possibly nix-review pr
eppa has joined #nixos
<raboof>
ok, so I create a third branch that contains all changes I like to test
jgt1 has quit [Ping timeout: 252 seconds]
<sshow>
I think I've found a documentation error in nixpkgs manual @ 2.6.1: it states that to run custom envs from ~/.config/nixpkgs/config.nix you run `nix-env -iA nixpkgs.myPackages`, but for me it is `nix-env -iA nixos.myPackages`. Is this an error? In which case, I'd be happy to make a PR
<gchristensen>
yeah, start with the branch nixos-unstable and cherry-pick on to it
<DigitalKiwi>
it's possible to change the nixpkgs in your config if you want to make it more permanent
<raboof>
with that approach, when I want to tweak one of the branches, I have to tweak both the o
fendor has quit [Ping timeout: 276 seconds]
<raboof>
'original' branch and my branch with the cherry-picks - that seems a bit unweildy
<DigitalKiwi>
sometimes i forget if i need to rebuild with my git version or not :<
<DigitalKiwi>
well yeah it can be tedious that's why you only do it temporarily if you can :)
<eppa>
hey all I’m running 19.09 on my laptop here and am wondering how to go about installing Firefox 70? The firefox and firefox-bin derivations on stable all appear to be 69.02
<raboof>
DigitalKiwi: sure, that's the goal ofc ;)
<DigitalKiwi>
depending on what it is you can add it as a channel
* DigitalKiwi
has also done that
JAMES_KHAN has joined #nixos
<DigitalKiwi>
i wasn't able to get that to work if it's a module but for a program it was fine...i think
<{^_^}>
#72126 (by andir, 1 day ago, open): [19.09] firefox: mark as insecure and remove myself as maintainer
<gchristensen>
colemickens: I don't think that is quite the goal of that PR
JAMES_KHAN has quit [Ping timeout: 260 seconds]
<eppa>
oh!
worldofpeace_ has quit [Ping timeout: 268 seconds]
<colemickens>
gchristensen: my understanding is that in lieu of completing #71714, firefox will be marked broken in stable and users will be recommended to use firefox-esr or firefox-bin on stable channels ?
<colemickens>
but I don't want to spread inaccurate info and I'm sort of reading between lines I guess, since 71714 is still open?
<colemickens>
also, I just saw your reply... I think I understand your point.
<FRidh>
just posted about this on Discourse as well
<eppa>
Well, fair enough? It sounds like the binary version will still be installable, which is fine by me as I need the cursor theme fix that went in a little while ago so I can stop squinting at the mouse pointer on my HiDPI screen
<gchristensen>
my understanding is we could build it with the bundled dependencies just fine
<gchristensen>
and what about using the bundled sqlite?
<aanderse>
** we don't want to update sqlite in STABLE
<DigitalKiwi>
oh hey if that's what i think it is thank you for finding it!
<FRidh>
gchristensen: that's an option, or nix-building a newer sqlite specifically for firefox
<aanderse>
we don't need you get all riled up about precedent in this case (IMO) because a) Firefox is one of the most important desktop packages we provide so exceptions are ok, b) in the case of security exceptions are ok
<FRidh>
then there's also I think a nss minor update, but I guess that would be fine
<DigitalKiwi>
raboof: doing that i think is only necessary if it has something you're supposed to enable or w/e because it's a module . if a regular program that gist should be enough
<gchristensen>
right
is_null has joined #nixos
<gchristensen>
firefox isn't going to be irresponsible about a sqlite cve
<FRidh>
it's not the cve
<FRidh>
that one is already dealt with in a separate PR if I am correct
<aanderse>
just include the required copy of sqlite into the firefox package (instead of bumping in all-packages.nix) and we're good?
<gchristensen>
I know, just saying that in the context of their bundled dependencies are probably fine
<raboof>
DigitalKiwi: aah the `channel.packagename` syntax should work in `configuration.nix`?
<FRidh>
aanderse: right
<aanderse>
even easier, great
<FRidh>
aanderse: right
<aanderse>
even easier (re: what gchristensen said about bundled versions)
<colemickens>
raboof, DigitalKiwi, if you want it in configuration.nix you can just do custompkgs = import "<url or path to nixpkgs>" and then do custompkgs.mypackage in place of where you would normally do mypackage.
<DigitalKiwi>
that's what i had...so that might be right
<FRidh>
aanderse: the security issue was here with sqlite, for which we now have a patch in 19.09 so we did not have to update it. The newer firefox however seems to require a newer version. This is therefore just a regular update, however, of an important package.
<aanderse>
FRidh: ah, ok. i see.
cosimone has joined #nixos
<DigitalKiwi>
anyone a link to the sqlite cve/issue/w.e.
<Ariakenom>
my virtualbox looks broken. it may be because i changed stateVersion when I shouldnt have? I changed it months ago, should I change it back?
<DigitalKiwi>
oh. Get the Firefox Extended Support Release or Rapid Release browser for comprehensive data security and data protection.
<raboof>
DigitalKiwi: yes, this is very helpful to understand things better. just noticed notion is a bit more difficult though, since that's not simply installing a package but enabled by setting `services.xserver.windowManager.notion.enable = true`
laudecay has quit [Ping timeout: 276 seconds]
jgt1 has joined #nixos
<DigitalKiwi>
yeah if it's a module there's more to it than what i had :< i think that link you sent earlier might have the method
<DigitalKiwi>
oh wait that's the same one but alias isn't it
ubert has joined #nixos
<DigitalKiwi>
might work still...
<DigitalKiwi>
just drop the -
<gjabell>
hmm
<DigitalKiwi>
my 2 cents
<gjabell>
so do I do that in the overrides.nix file then?
<gjabell>
bc manually editing the generated.nix won't work since it's autogen
positronicbrain has quit [Remote host closed the connection]
foxmean has joined #nixos
<gjabell>
ah no, guess it's in alias.nix (duh)
<DigitalKiwi>
i don't think that's right
<gjabell>
thinking that still won't work though, since there end up being two packages w/ the same name in generated, so it won't know which to alias
sigmundv has joined #nixos
<DigitalKiwi>
i think overrides is right
* DigitalKiwi
keeps loooking
<foxmean>
hello, I have some question about info file. Is there any methode declaratively to install info file for reading with info (or in info-mode in Emacs)? I'd like to read the sicp with info-mode in Emacs. The file was download from this site: https://www.neilvandyke.org/sicp-texi/ .
<DigitalKiwi>
it's been a while since i did a vim-plugin
alexherbo2 has joined #nixos
<DigitalKiwi>
gjabell: did you see the section about it in the manual?
<gjabell>
DigitalKiwi: I think the problem is still that there will be two plugins with the same name in generated.nix; I could add it only to overrides.nix but then it won't get autoupdated by the script which sort of defeats the purpose
<gjabell>
DigitalKiwi: the `Adding new plugins to nixpkgs` section?
<raboof>
DigitalKiwi: hmm, should I be able to load `file:///home/aengelen/nixpkgs-diffoscope` with `builtins.fetchurl`? I'm getting `unexpected $end, at /nix/store/7k2glpffikj062rwcxnvmqs3vv4vynk3-nixpkgs-diffoscope:1:1`
<DigitalKiwi>
# do not auto-update this one, as the name clashes with vim-snippets
<gjabell>
ah there's a name-clash example in overrides.nix; guess it's alright to not auto-update it then
<gjabell>
^ thanks
sigmundv has quit [Ping timeout: 240 seconds]
boolman has quit [Ping timeout: 264 seconds]
<DigitalKiwi>
np
<foxmean>
I've installed it with rewrite dir menu in the past when I am in Debian. But now, the dir file seem to be read-only with the files in info directory are all symlinks.
wewerrr has quit [Ping timeout: 240 seconds]
<DigitalKiwi>
raboof: i'm not great at nix but i'm pretty sure you don't want to use fetchurl like that?... you can just use the file path
jgt1 has quit [Ping timeout: 250 seconds]
<DigitalKiwi>
(and not fetchurl)
barrucadu is now known as BOOrucadu
<raboof>
DigitalKiwi: aaah doh. that indeed appears to work. thanks a lot!
<DigitalKiwi>
gjabell: the one you're adding, and, well, it seems like most vim-plugins i've looked at...hasn't been updated in over a year, so it's not the worst thing in the world if it's not auto updated :P
<adisbladis>
I'd love it if we could use an auto-formatter
<adisbladis>
Also great work!
<adisbladis>
I love it
Zer0xp has quit [Quit: Bye!]
work_ has joined #nixos
<DigitalKiwi>
but why python
<adisbladis>
DigitalKiwi: Because it's easy for a lot of people to hack on tests when it's python?
<adisbladis>
Also maps really well to the old perl code
<adisbladis>
Let's not bikeshed this
<DigitalKiwi>
"easy"
<DigitalKiwi>
python is horrible
<sshow>
I have a working python package built, that supplies binaries to bin/. Works great with `nix-build mypypackage/default.nix`, but I don't understand how I can include it into environment.systemPackages.
<adisbladis>
sshow: I imagine you have a default.nix? Could you pastebin it?
<gchristensen>
DigitalKiwi: be kind. a lot of people like python, and it is okay to like python
<DigitalKiwi>
see my previous blow up while packaging ocrmypdf to understand how horrible it is ;_;
<{^_^}>
[nixpkgs] @raboof opened pull request #72239 → diffoscope: add dependency on python xattr package → https://git.io/JeuX1
* adisbladis
has a complicated relationship with python
<adisbladis>
But imho, it's 100% the correct choice for this use case.
<adisbladis>
Pragmatically speaking
<DigitalKiwi>
i mean yeah it's everyone's perrogative to like horrible things. but that doesn't make them good
<gchristensen>
DigitalKiwi: I asked you to be nice
<adisbladis>
DigitalKiwi: I'm not a fan of this attitude :/
sigmundv has joined #nixos
<DigitalKiwi>
pragmaticism has been the cause of so many failures
<adisbladis>
DigitalKiwi: If you have actual technical concern try to be constructive
<adisbladis>
Not just "this is awful"
<gchristensen>
adisbladis++
<{^_^}>
adisbladis's karma got increased to 19
<DigitalKiwi>
yeah, python is technically horrible, i don't know how this is controversial, but i'll drop it
<aanderse>
as someone who has to maintain an uncountable number of perl files... i can't possibly understand how anyone would ever not want to approve that PR 😉 lol
wewerrr has quit [Ping timeout: 264 seconds]
<aanderse>
to clarify... out of those uncountable number of perl files i wrote zero of them
<aanderse>
adisbladis: so what sort of fun things will you do once you can talk to dbus inside the vm? sounds like high potential
foxmean has quit [Ping timeout: 268 seconds]
<adisbladis>
For one we can query things and get structured data :)
<aanderse>
well this is exciting
<sshow>
adisbladis: Right now, I'm trying to add it to /etc/nixos/configuration.nix by `systemPackages [ import('/home/user/mypackage/default.nix') ]` but I'm doing something wrong
<flokli>
aanderse: there's also bugs with not being able to wait for oneshot services with remain after exit=true. I assume this gets better by subscribing to events directly
<aanderse>
ah, yeah ok, makes sense
* aanderse
still dreams of having a simple web testing framework integrated into nixos tests
<Mic92>
adisbladis: mypy would be nice.
<adisbladis>
aanderse: Hm? What would that look like?
<gchristensen>
adisbladis: thank you for mentioning the technical points part. critique of specifics isn't a problem, of course
<adisbladis>
Mic92: yeah, I intend to add that later
<adisbladis>
Mic92: But for now I just wanna get the PR through :)
<{^_^}>
[nixpkgs] @Profpatsch pushed commit from @saschagrunert to master « buildah: 1.11.3 -> 1.11.4 »: https://git.io/JeuX5
<Mic92>
adisbladis: you should also not wait to long to get a first WIP PR out, unless you already have done though.
<aanderse>
adisbladis: we have a number of web services (nextcloud, redmine, matomo, etc...) which basically only test that the web site can be hit at an extremely basic level. it would be nice if it was easy to test in a little bit more detail, like "ensure this happens when you click that button"
<aanderse>
typical web testing framework stuff
<adisbladis>
gchristensen: It's something I've always admired about our community, that we can discuss things on technical merits alone
<aanderse>
not that we'd really want/need to do that in depth of testing, but definitely more than what we currently do would fill me with more confidence when some of the tests pass
<adisbladis>
Just a minor refactor, mostly comments explaining how things work :)
wewerrr has quit [Ping timeout: 245 seconds]
<adisbladis>
r
<bahamas>
I'm configuring my nginx service in NixOS configuration for my Django site. how can I refer to my service inside services.nginx config? I want to create a location that points to the dir that contains static files inside my package
toppler has joined #nixos
<earendil[m]>
How do I use a haskell package if it is currently marked as broken? I need to use z3
<niksnut>
aanderse: as to why not to approve the PR: because python is not really a better language than perl (in some respects it worse). Also rewrites don't really provide value to users but cause a huge amount of work.
<bahamas>
Twey: there was something in nix-store, but I don't know if there's an actual function in nix itself
<{^_^}>
[nixos-channel-scripts] @edolstra pushed to master « Revert "Namespace channel pushes in nixpkgs" »: https://git.io/Jeu1U
<{^_^}>
[nixos-channel-scripts] @edolstra pushed to revert-27-grahamc-patch-1 « Revert "Namespace channel pushes in nixpkgs" »: https://git.io/Jeu1k
<{^_^}>
[nixos-channel-scripts] @grahamc pushed 0 commits to grahamc-patch-1: https://git.io/Jeu1T
<Twey>
I know I can get all transitive dependencies using nix-store --requisites, and I know how I can get the licence of a derivation from within Nix, but I don't know how to combine those things
<gchristensen>
uh oh
cosimone has quit [Quit: Terminated!]
is_null has quit [Ping timeout: 240 seconds]
<bahamas>
so, does anyone know how I can refer to a service's config from another service's config? in configuration.nix, I want to use in services.nginx the path from another service
<adamt>
bahamas: config.services.foo
<bahamas>
adamt: that works. thank you
<adamt>
bahamas: Have fun :-)
wewerrr has joined #nixos
<Twey>
bahamas: Looks like derivations don't store `meta`
<bahamas>
Twey: you might need to parse the nix files yourself unless nix repl can also be called programmatically
wewerrr has quit [Ping timeout: 265 seconds]
<aaa_>
Hi, does anybody know how to solve this error when rebuilding the system with 19.09 channel (updated from 19.03): http://dpaste.com/1XRMMXQ
wewerrr has joined #nixos
andymandias has joined #nixos
<Twey>
bahamas: The Nix files don't contain the information I need — I guess I have to do it from nixpkgs. Which is okay, I'm just hoping there's a function in nixpkgs to get all the dependencies of a package for me
drakonis_ has joined #nixos
<Twey>
Maybe I want to make a derivation with exportReferencesGraph…
snicket has quit [Read error: Connection reset by peer]
<Twey>
bahamas: Well, it's not that simple… if I can evaluate the source file(s) of each dependency I could get the licence, but also there may be more than one derivation per source file. What I really need is the attribute path within nixpkgs
<Twey>
But there's definitely no way to get that from a derivation, which is the only thing I can get transitively (by making a derivation with exportReferencesGraph or similar)
lunik1213 has quit [Quit: :x]
<Twey>
(or by using nix-store --requisites)
<bahamas>
Twey: why don't you write a Nix function that takes nixpkgs and looks for what you want? then you run that function in nix repl
<Twey>
(of course, I can't even get the source file)
drewr has quit [Ping timeout: 250 seconds]
<Twey>
bahamas: I guess there's no guarantee that the expression is even exposed? It might be something like: let dep = stdenv.mkDerivation { …; meta.license = …; }; in stdenv.mkDerivation { …; buildPhase = "useDep ${dep};"; }
<Twey>
I guess I was kind of expecting this would be as simple as opening `nix repl` and writing `builtins.map (pkg: pkg.license) (lib.getRequisites my-package)`
lunik1213 has joined #nixos
<{^_^}>
[nixpkgs] @urkud opened pull request #72243 → emacs-*-rtags: use upstream package names → https://git.io/Jeu14
<tilpner>
Twey: You can probably use genericClosure to build a getRequisites
<tilpner>
Or search for usage of genericClosure and steal one if it exists
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @FRidh to nixpkgs-19.03-darwin « python35: 3.5.7 -> 3.5.8 »: https://git.io/Jeuid
<bahamas>
how does the imports attribute in configuration.nix work? in there I import a file that defines my service. can I access information from that file in **configuration.nix**?
<Twey>
This is actually quite interesting behaviour, because:
<Twey>
> hello == import hello.drvPath
<aanderse>
niksnut: it isn't always about what is better, though. sometimes it is about what is more accessible.
<tilpner>
bahamas: Yes, you can use options defined in the imported module from your configuration.nix
<{^_^}>
error: syntax error, unexpected '=', at (string):113:10
<{^_^}>
cannot import '/nix/store/lzq1bv4y9zjr75rj7b4lixkf4l3ac0lr-hello-2.10.drv', since path '/nix/store/lzq1bv4y9zjr75rj7b4lixkf4l3ac0lr-hello-2.10.drv' is not valid, at (string):269:11
<{^_^}>
cannot import '/nix/store/lzq1bv4y9zjr75rj7b4lixkf4l3ac0lr-hello-2.10.drv', since path '/nix/store/lzq1bv4y9zjr75rj7b4lixkf4l3ac0lr-hello-2.10.drv' is not valid, at (string):269:11
<infinisil>
Ah, read-only mode :)
<Twey>
Fair
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #72244 → documentation: docbook to org [WIP] → https://git.io/Jeu1E
<Twey>
Not important, point is that `x: import x.drvPath` is not the identity, even though == thinks it is
<bahamas>
tilpner: I'm actually trying to reference the package I use in a service I defined (I want to point nginx to the a dir in my package that contains static files)
<tilpner>
bahamas: Sounds possible
<bahamas>
tilpner: in my services.nginx set I'm referencing config.services.myservice, but the latter doesn't contain a reference to the package that myservice uses. it only contains `enable` and `port`
<{^_^}>
[nixpkgs] @FRidh pushed commit from @wamserma to python-unstable « python3Packages.sphinx: 1.8.3 -> 2.2.0 »: https://git.io/JeuMT
<Ariakenom>
im having some authorization issues and noticed that https://nixos.org/nixops/manual does not list AWS_SESSION_TOKEN under environment variables
toppler has joined #nixos
snicket has joined #nixos
sigmundv has joined #nixos
<v0|d>
adisbladis: thnx.
symphorien has quit [Remote host closed the connection]
<v0|d>
superbaloo: I've checked for iptables, there is only one for aarch64.
wormwood has joined #nixos
<v0|d>
superbaloo:
<{^_^}>
[nixpkgs] @NeQuissimus pushed 5 commits to release-19.09: https://git.io/JeuDA
<v0|d>
in case of sd-image, adding stuff is very easy, removing stuff is almost impossible.
<v0|d>
I mean for system dependencies.
<v0|d>
For instance when I set services.firewall.enable = false; I expect iptables to be omitted somehow, yet its a buildInput for systemD, so no config will remove it.
<Twey>
tilpner: Why does `genericClosure` exist? :-\
<Twey>
It seems like it's definable in Nix code. The hard part is getting ‘the set of all inputs’ (since they may be hidden in string contexts)
<Kim>
Is tehre a way to reference `$out` from within a script created with `writeScript`?
<Twey>
Kim: Which `$out`?
<Kim>
Exactly :P
feep_ has joined #nixos
feep has quit [Disconnected by services]
<Twey>
Kim: Do you mean you want `writeScript` to contain its own store path? Or do you mean you want to reference `$out` of some derivation that will *use* the script?
<Kim>
Specifically the derivation's $out
<Twey>
Kim: Which derivation's $out?
cosimone has joined #nixos
<Twey>
The writeScript derivation or some derivation using it?
<Kim>
The one I'm including it in. Though, I'm starting to recognize my problem
bvdw has quit [Read error: Connection reset by peer]
<Twey>
Kim: Then $out is defined in the environment
<Twey>
Kim: Just reference the environment variable $out from the script
<{^_^}>
[nixpkgs] @Scriptkiddi closed pull request #71997 → matomo: Refactor to use phpFpm settings instead of extraConfig → https://git.io/JeEIX
bvdw has joined #nixos
<Kim>
Yeah. I'll have to reference the resulting derivation from the script
<Twey>
Kim: That's the easy case :)
<DigitalKiwi>
aanderse: ^^ lol
<DigitalKiwi>
matomo is hot hot hot!
<DigitalKiwi>
that's what the...third PR for that? someone should finish the first one....
<{^_^}>
[nixpkgs] @WilliButz opened pull request #72252 → ydotool: init at 0.1.8 → https://git.io/Jeuya
toppler has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @d-goldin opened pull request #72253 → pango 1.4.3: Fixing wrong sha from #71687 → https://git.io/JeuyM
waleee-cl has joined #nixos
rauno has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @FRidh to nixpkgs-19.09-darwin « python35: 3.5.7 -> 3.5.8 »: https://git.io/JeuiH
<{^_^}>
[nixpkgs] @Kloenk opened pull request #72254 → onefetch: init at 1.7.0 → https://git.io/JeuyQ
captn3m0 has joined #nixos
<ddima>
I made a sha booboo (we forgot to run ofborg) and it's in master now. Maybe someone has a second to look at and merge the fixup; https://github.com/NixOS/nixpkgs/pull/72253
<{^_^}>
[nixpkgs] @magnetophon opened pull request #72256 → bslizr: init at 1.2.0 → https://git.io/JeuSF
<infinisil>
disasm: A haskell overlay like `hself: hsuper: { amazonka-s3 = pkgs.haskell.lib.appendPatch hsuper.amazonka-s3 (pkgs.fetchpatch { ... }); }` should do it
psyanticy has joined #nixos
worldofpeace_ has joined #nixos
worldofpeace_ has quit [Client Quit]
fendor has quit [Ping timeout: 265 seconds]
toppler has quit [Ping timeout: 240 seconds]
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
is_null has quit [Ping timeout: 240 seconds]
<ddima>
Under which circumstances can nix-prefetch-url not be relied upon? It's probably the 2-3nd time I got biten by using it in a simple case of getting a hash for a simple diff over http which then conveniently was ofc present in my store under that "wrong" hash. I might of course just switch to lib.fakeSha256 always or so, but I'd like to understand first.
seese has joined #nixos
<leo_>
what do you guys prefer for non regex split, pkgs.lib.strings.splitString or builtins.split?
<gchristensen>
I always use tofu
<gchristensen>
ddima: the problem is fetchpatch does some patch normalization stuff
<leo_>
.-.
cosimone has quit [Ping timeout: 250 seconds]
<ddima>
gchristensen: Oh, right. explains why I only saw this in some circumstances but not in others. thanks!
<sshow>
adisbladis: thanks a lot for the help with the paste I posted. I will try it out tonight :)
<Ariakenom>
im getting VERR_VERSION_MISMATCH using virtualbox :(
lordcirth has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
<lordcirth>
samueldr, any news on your Pinebook Pro? Has it shipped? October is running out :P
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
<samueldr>
it should have been shipped like during "today's" day in China
<Ariakenom>
but the nixops deploy workds ... ?
<lordcirth>
samueldr, you got an email saying so?
<lordcirth>
I got my accessories already, but no laptop ship email
<samueldr>
lukasz said they shipped today, the final end of the first batch... AFAIUI it's DHL that sends the notification e-mail, that one I haven't received
<lordcirth>
lukasz works there? How can I know what batch I am in?
fresheyeball has joined #nixos
<fresheyeball>
I am running NixOS on a Dell XPS
cosimone has joined #nixos
<fresheyeball>
and the graphics are quite glitchy with `xserver.videoDrivers = [
<fresheyeball>
"nvidia" ];`
<fresheyeball>
though it is an nvidia chip
<fresheyeball>
what can I do?
halfbit has quit [Ping timeout: 240 seconds]
<infinisil>
fresheyeball: Try a different driver is an option, nouveau seems to be liked, thought personally I haven't had much success with it and am using the nvidia driver instead because of this
<infinisil>
s/Try/trying
<fresheyeball>
infinisil: I see linuxPackages.nvidia_x11
<fresheyeball>
is there a kernel module I need to install?
<infinisil>
Nah
<infinisil>
videoDruvers does it all for you
jb55 has joined #nixos
<fresheyeball>
infinisil: ok
<samueldr>
lordcirth: probably best to ask them on the pinebook channel on their irc server, couldn't say for sure, but for the first batch it was early, and with coupons, and those already have received some form of communication; I additionally validated again with them later on
<fresheyeball>
oh no I am wrong
<fresheyeball>
its intel graphics
<fresheyeball>
infinisil: is there an alternative to "intel" as the graphics driver?
<lordcirth>
samueldr, oh ok, I will join their server
<infinisil>
fresheyeball: I think the intel-specific driver is buggy, try removing the nvididaDrivers assignment, then it will use the default list
<infinisil>
intel got removed from the defaults
<fresheyeball>
infinisil: I am trying with [ "nvidia" "nouveau" "intel" ]
<fresheyeball>
the default list is [ "radeon" "cirrus" "vesa" "vmware" "modesetting" ]
<fresheyeball>
I know its not radeon or vmware
<adisbladis>
fresheyeball: modesetting
<fresheyeball>
but I have never heard of the other 3
<adisbladis>
Is the alternative "supported" one for intel
<lordcirth>
cirrus is for VM's emulating old hardware, I believe.
<fresheyeball>
ok trying with that
<fresheyeball>
ok so it installed
<fresheyeball>
I guess I need to log out and log back in?
<adamt>
Does nix have some black magic function that takes two packages and outputs a new one with all the files from the packages merged/overlayed/linked together (while preserving the directory structure)?
<disasm>
infinisil: got it, the compiler attribute is the haskellPackages
<Twey>
adisbladis: I think nulls in `buildInputs` are always ignored? O.O
<zeta_0>
hello guys, when calculating the dpi of my laptop i got 2 results: 277.40621 and 277.0909 , should i round the dpi up to 288 or down to 277 ? i am going to change this option in configuration.nix: `services.xserver.dpi`
<adamt>
zeta_0: It's not like either option is going to brick you pc, so you could just try one (also it probably doesn't make any noticeable difference)
<Twey>
Only inputs to `derivation` are used to calculate the hash, not inputs to `mkDerivation`, so nulls have already been stripped out by the time the hash is calculated
<Twey>
Ordering changes it because it changes the order of the `buildInputs` environment variable (among other things, probably
<Twey>
)
<Twey>
Unfortunately you probably need to be able to order PATH and friends, so dependency order is going to be important
<Twey>
You probably don't want to have nixpkgs reorder your inputs
<adisbladis>
Twey: It's not a huge issue or anything, it's just a tiny papercut
<DigitalKiwi>
i have come with technical merits this time :D
jlmeeker has joined #nixos
<Twey>
adisbladis: It's just a very annoying papercut, because the only difference between those two derivations is this: https://hastebin.com/quvubimofe.txt
<Twey>
Seems like an easy patch though
fendor has quit [Ping timeout: 268 seconds]
<adisbladis>
Probably :)
<adisbladis>
Because it's just a minor annoyance I havent bothered
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
<gchristensen>
the real solution is to patch bash to support null bytes
shibboleth has joined #nixos
ng0 has joined #nixos
is_null has quit [Read error: Connection reset by peer]
<m1cr0man>
Hey folks if nixos-rebuild freezes at "updating grub2 menu" what's the right thing to do about it? It's been like this for I think 7 hours. Normally I just ctrl+c it.
b1000101 has quit [Quit: Leaving]
ThatDocsLady has quit [Ping timeout: 276 seconds]
<m1cr0man>
Ah nvm I had a broken nfs mount freezing file ops
Thra11 has quit [Ping timeout: 268 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]
snicket has quit [Read error: Connection reset by peer]
Jackneill has quit [Remote host closed the connection]
thomashoneyman has joined #nixos
toppler has joined #nixos
drakonis has joined #nixos
fusion809 has quit [Remote host closed the connection]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<aaa_>
does anybody know why I get this error:
<aaa_>
> /nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/ld: objects/if_perl.o: undefined reference to symbol 'pthread_getspecific@@GLIBC_2.2.5'
<{^_^}>
error: syntax error, unexpected ':', expecting ')', at (string):269:67
<aaa_>
> /nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/ld: /nix/store/pnd2kl27sag76h23wa5kl95a76n3k9i3-glibc-2.27/lib/libpthread.so.0: error adding symbols: DSO missing from command line
<{^_^}>
error: syntax error, unexpected ':', expecting ')', at (string):269:67
<camsbury>
oh I just do `nix copy ... -f shell.nix buildInputs`
johnnywho has joined #nixos
toppler has quit [Ping timeout: 240 seconds]
<johnnywho>
Cups seems to detect network printer with avahi.nssmdns enabled, but then it throws an error that the printer url can' t be located, although I can perfectly ping the .local address
<johnnywho>
Previous known good configuration in another distro had mdns_minimal [NOTFOUND=return] dns...
<johnnywho>
Is there a chance having the line mdns_minimal [NOTFOUND=return] dns mdns... makes mdns_minimal and mdns somehow interfere with each other?
<chloekek>
I set systemd.coredump.enable to false but core dumps still appear in my home directory. How can I completely disable the writing of core dumps?
<argc_>
Can someone point me to some documentation/tutorials/examples on how to extend the "lib" namespace with some custom attributes? I can't seem to do what I want using overlays.
<chloekek>
I have a program that segfaults when I exit it and disabling core dumps should be an easier solution than fixing the segfault.
<argc_>
i.e. i tried doing something like (self: super: { lib = super.lib.recursiveUpdate (super.lib or {}) { mythingy = "foo"; }; }) but `lib.mythingy` cannot be found in other modules, so I suspect I can't use overlays.
<{^_^}>
[nixpkgs] @magnetophon opened pull request #72267 → bshapr & bsequencer: init at v0.4 → https://git.io/JeubC
toppler has joined #nixos
<Raito_Bezarius>
Can I create a NixOS module out of nixpkgs in my local folders?
<Raito_Bezarius>
What kind of folder structure should I do for this?
<Raito_Bezarius>
Can I just do <mypkg>/{default,module}.nix ?
<tilpner>
Raito_Bezarius: Yes, you can
<Raito_Bezarius>
where default.nix contains a derivation and module.nix options attrs
Izorkin has joined #nixos
o1lo01ol1o has joined #nixos
<Raito_Bezarius>
tilpner: Awesome, in this case, how can I use them in my projet? Is it enough to just do callPackage on them?
<tilpner>
Raito_Bezarius: Folder structure is up to opinion, but profiles/... and devices/... has been working for me
<Raito_Bezarius>
tilpner: It's just for a specific package/software that I'm going to reuse in a nixops deployment
<tilpner>
Raito_Bezarius: If that is supposed to be a NIX_PATH element, you want <mypkg/default.nix>. Ignore of that was not path syntax
<Raito_Bezarius>
Alright
cosimone has joined #nixos
<tilpner>
Raito_Bezarius: To use a module, import it. { ... }: { imports = [ ./modules.nix ]; }
<Raito_Bezarius>
Perfect
<Raito_Bezarius>
I get the gist of it now
<Raito_Bezarius>
Thanks
<chloekek>
I'll just make a cronjob to delete the core dumps instead.
johnnywho has quit [Quit: Leaving]
Izorkin has quit [Client Quit]
cosimone has quit [Client Quit]
Izorkin has joined #nixos
<tilpner>
chloekek: Perhaps you can use security.pam.loginLimits to limit the core file size to 0
<tilpner>
(Similar to ulimit -c)
litschi has joined #nixos
<chloekek>
tilpner: Thanks, I'll put those on my reading list.
<o1lo01ol1o>
Raito_Bezarius: I just came across your nixops-aws issues on security groups and RDS, do you have any clarity on what it will take to get that working?
psyanticy has quit [Quit: Connection closed for inactivity]
gkmngrgn has joined #nixos
argc_ has quit [Remote host closed the connection]
<zeta_0>
hello guys, in configuration.nix i set the option: `services.xserver.dpi = 278` and it works, things are rendering much better now, i can actually see the letters now, the only other question i have is do i need to set the other option: `fonts.fontconfig.dpi` to something as well ? i want to make sure that the dpi font in emacs renders correctly ?
jbmusso has left #nixos [#nixos]
<shyim>
I have set some env vars using environment.variables. But there are not available in my php-fpm. Anyone an idea?
<symphorien>
shyim: I guess you need services.phpfpm.pools.<name>.phpEnv
<shyim>
but i want it globally
<shyim>
i have an systemd oneshot which should do database migrations
fendor has quit [Read error: Connection reset by peer]
reallymemorable has joined #nixos
<emptyfl4sk>
ah, thanks! I figured it was something simple, but it's been driving me nuts
<shyim>
symphorien, its still missing. Generated systemd config looks good. all envs are present. But still var_dump($_SERVER); is empty...
<symphorien>
ah I don't really know the internals of php
toppler has joined #nixos
<symphorien>
you can check the environment of your php process with htop
<reallymemorable>
how can i open a .app file on nixos? i downloaded what should be an executable but nixos perceives it as a folder that i can click into
<symphorien>
if htop tells you that the environment is correctly set then it's a php problem
ckauhaus is now known as ckauhaus[afk]
<tilpner>
reallymemorable: Where did you get that file? Isn't .app for macOS?
<adisbladis>
etu: Ping! (someone needs php help)
<reallymemorable>
i was downloading the arduino desktop ide
<adisbladis>
reallymemorable: That's already in nixpkgs
<reallymemorable>
let me double check i grabbed the right one
<reallymemorable>
how do i start it?
<reallymemorable>
oh i need to add it to my config file
<niso>
reallymemorable: you are aware that the arduino ide is in the repos right?
cosimone has joined #nixos
<DigitalKiwi>
macos .app are actually folders too
chloekek has quit [Ping timeout: 264 seconds]
logzet has joined #nixos
<DigitalKiwi>
and in macos you can right click or w/e and do 'show package contents' or something to that effect
<DigitalKiwi>
unless they've really changed something in catalina to keep the illusion...
<infinisil>
Oh neat, there's the dig option `+ttlunitl` displaying ttls much more nicely
Jackneill has joined #nixos
domogled has joined #nixos
snicket has joined #nixos
<infinisil>
And you can put "+ttlunits" in ~/.digrc to have it be used for all digs!
Neo-- has quit [Ping timeout: 264 seconds]
<infinisil>
Neato
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #72269 → gtk3: only build docs on linux → https://git.io/JeuNv
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to staging-next: https://git.io/JeuxP
<kraem>
i was just about to ask how long time it usually takes from that a build is completed on hydra for it to be pushed out, then came the notification.. guess ~30min is the answer ;)
snicket has quit [Read error: Connection reset by peer]
mexisme has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
FreshcollegeGirl has quit [Ping timeout: 250 seconds]
FreshcollegeGirl has joined #nixos
Thra11 has quit [Ping timeout: 276 seconds]
acarrico has joined #nixos
<DigitalKiwi>
bhipple: what happens if someone does `dropbox update`
Jackneill has quit [Remote host closed the connection]
erasmas has quit [Quit: leaving]
Guest15573 has quit [Read error: Connection reset by peer]
edwtjo has quit [Ping timeout: 268 seconds]
wewerrr has joined #nixos
<DigitalKiwi>
(after `unset DISPLAY` as it won't work at all without it)
<{^_^}>
[nixpkgs] @bhipple closed pull request #72087 → dropbox: add version to package name → https://git.io/JeEN6
<DigitalKiwi>
and is `dropbox version` not accurate?
lordcirth__ has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
lordcirth__ has joined #nixos
<DigitalKiwi>
and it also shows in the settings
toppler has quit [Ping timeout: 264 seconds]
<DigitalKiwi>
s/settings/preferences/
Thra11 has joined #nixos
fendor has quit [Read error: Connection reset by peer]
<bhipple>
DigitalKiwi: If you run `dropbox update` on the old version, it starts the chroot on the outdated version, downloads the new version, and starts successfully using the old version to bootstrap.
<bhipple>
DigitalKiwi: However, future starts of `dropbox` still do not work, because it always starts with the old version; so effectively all cmdline options except `dropbox update` are invalid
<bhipple>
DigitalKiwi: at least, as far as I can tell from playing with it. This makes sense since it's running in a tmp chrootEnv that gets thrown away on shutdown I presume
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<DigitalKiwi>
hmm
thomashoneyman has joined #nixos
<DigitalKiwi>
Dropbox daemon version: 83.4.152
<DigitalKiwi>
dropbox is one of the only things i haven't had many problems with lately lol... :|
nixtacular has joined #nixos
thomashoneyman has quit [Remote host closed the connection]
<bhipple>
I use SyncThing personally, but was helping a new contributor to NixOS with dropbox not working. He got it working with the updated package, though; it's possible you might not need the update if you just start it with `dropbox update` all the time
<aaa_>
does anybody know why I get the following error: /nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/ld: /nix/store/pnd2kl27sag76h23wa5kl95a76n3k9i3-glibc-2.27/lib/libpthread.so.0: error adding symbols: DSO missing from command line
<DigitalKiwi>
i have only used that like once a long time ago
<nixtacular>
how do you write an overlay that overrides a package's version? i've naively tried using the attribute `version`, but i get a `called with unexpected argument 'version'` error
thomashoneyman has joined #nixos
<philipp[m]>
Comment on sbd seing my $PATH in a nix shell:
<philipp[m]>
>Is that welsh linux?
toppler has joined #nixos
<infinisil>
nixtacular: Well just changing the version won't do anything, you need to override the source of it with the new version
<philipp[m]>
gchristensen: Can we codename nixos 20.03. welsh linux, please?
<nixtacular>
infinisil: i was hoping that the version would filter down to the tarball or github url. i see a lot of derivations that interpolate `version` into the src URL's
mexisme has quit [Ping timeout: 246 seconds]
<infinisil>
nixtacular: Unfortunately it doesn't, and even if it did, you'd still need to put a new sha256 in
<nixtacular>
infinisil: yeah that was gonna be my next step, but i figured i'd get the version working first ;-)
<nixtacular>
infinisil: do you have any insight into the best way to do overlays for stuff like Ruby gems, NPM packages, etc.? for example, i'm trying to create an overlay to update the Ruby gem `bundler` version to 2.0.2, but the Nix expression for `bundler` makes use of a function called `buildRubyGem`
<nixtacular>
should i simply use `buildRubyGem` and override the entire expression in my overlay?
<{^_^}>
[nixpkgs] @ajs124 opened pull request #72276 → python3.pkgs.cherrypy: 18.1.2 -> 18.3.0 and fix tests → https://git.io/Jeup6
<infinisil>
nixtacular: The same .overrideAttrs should work
<infinisil>
Oh
<infinisil>
Maybe not, lemme take a closer look
<nixtacular>
infinisil: thank you. bundler expression is in `pkgs/development/ruby-modules/bundler/default.nix`
<Raito_Bezarius>
how to properly escape '' in a multiline string?
<Raito_Bezarius>
\'\' ?
<infinisil>
> lib.functionArgs bundler.override
<{^_^}>
{ buildRubyGem = false; ruby = false; }
<nixtacular>
Raito_Bezarius: ''' (three ' marks)
<Raito_Bezarius>
nixtacular: wow thakns
<Raito_Bezarius>
thanks *
<infinisil>
,escape'' For more escaping goodness
<{^_^}>
For more escaping goodness: '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
ddellacosta has quit [Quit: WeeChat 2.2]
<infinisil>
nixtacular: Hm, that's not good, how it's currently set up you can't override buildRubyGem arguments easily
<infinisil>
If at all
<nixtacular>
infinisil and {^_^}: not sure how to use those...?
<nixtacular>
infinisil: not sure how to use that...?
<nixtacular>
oh sorry you were replying to someone else maybe
<infinisil>
nixtacular: {^_^} is a bot fyi :)
<nixtacular>
haaaa ok lol
bhipple has quit [Remote host closed the connection]
hmpffff has quit [Quit: nchrrrr…]
<infinisil>
nixtacular: Okay I guess you can't override buildRubyGem arguments directly, but you can still use bundler.overrideAttrs
<infinisil>
nixtacular: Nope they're different: .override is for overriding arguments of some function (buildRubyGem and ruby in the bundler/default.nix expression)
<infinisil>
Whereas .overrideAttrs overrides attributes in the call to mkDerivation
<nixtacular>
infinisil: aha. so this will override the attributes of whatever expression is generated by `buildRubyGem`?
<nixtacular>
got it
<nixtacular>
hmm i definitely saw `override` use somewhere
<infinisil>
Yeah .override does have its uses. Technically it could be used here too, but that would be a bit hacky
kvda has joined #nixos
<nixtacular>
is `overrideAttrs` considered best practice then for overlays?
<infinisil>
nixtacular: When you see a package expression like `{ foo, bar, baz }: <something>` you can use `.override { foo = ...; }` on it
drakonis_ has joined #nixos
<infinisil>
nixtacular: Yeah overrideAttrs is pretty standard for changing mkDerivation attributes
<infinisil>
There's no alternative really
<infinisil>
(usually at least)
<nixtacular>
sigh. the Nix documentation drives me insane.
<nixtacular>
i have been writing a Nix book, actually. slowly.
<infinisil>
Hehe
<infinisil>
Nice
thomashoneyman has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @globin pushed 2 commits to structured-attrs: https://git.io/JeupH
<infinisil>
Unfortunately to understand how overrides work in all their glory (or not) you currently need to dig into the source
<infinisil>
And there's a bunch of problems with them
<nixtacular>
infinisil: what kind of problems? is there a current better practice for achieving the same thing? i'm trying to collect all these things for my book ;-)
<{^_^}>
[nixpkgs] @Ericson2314 pushed 3 commits to bash-no-undef-vars: https://git.io/JeupF
<infinisil>
Well the problem we just encountered for example, that you can't override buildRubyGem arguments. This is because even though `buildRubyGems` is defined in terms of `lib.makeOverridable` which adds a `.override` that could override the arguments, this `.override` is overridden because the bundler expression itself is called with `callPackage` which calls *another* `makeOverridable`. This means the
<infinisil>
old `.override` got replaced with one that overrides the arguments { buildRubyGem, ruby }
mexisme has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
<infinisil>
You can think of this as a stack of functions (the one in bundler/default.nix -> buildRubyGem -> mkDerivation) where only the top-most one that calls `makeOverridable` can have the final `.override` that overrides its own argumennts
<infinisil>
nixtacular: Or actually rather (callPackage -> buildRubyGem -> mkDerivation), and both callPackage and buildRubyGem use `makeOverridable`
<infinisil>
I'd like to fix this problem in nixpkgs eventually, I'll have to think about how to do it well though
<nixtacular>
infinisil: that all makes sense. thanks for the explanation.
<Raito_Bezarius>
if I use // does it deep merge two attrsets?
wewerrr has quit [Quit: Lost terminal]
<infinisil>
Raito_Bezarius: Try it out, start `nix repl` and explore
<nixtacular>
infinisil: i think a related problem is that there isn't a standardized convenience function to do what `buildRubyGem` and its equivalents across all the different language-centric expressions do
<nixtacular>
for example, vim packages has its own thing
<nixtacular>
node packages has its own thing, etc.
<Raito_Bezarius>
infinisil: the difficult stuff with REPL is I never know how to force eval the attrsets
<Raito_Bezarius>
I just get lazy eval
<Raito_Bezarius>
,eval
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 5 commits to nixos-19.03-small: https://git.io/JeubU
<infinisil>
nixtacular: Indeed, that's a big problem
<infinisil>
And there's a whole bunch more problems with package set overriding
<infinisil>
Raito_Bezarius: Use `:p <some evaluation>`, this will make it strict
<Raito_Bezarius>
And this confirms that // do not deep merge :)
<Raito_Bezarius>
recursiveUpdate does it though it seems like
<nixtacular>
infinisil: would there be any appetite for someone to come along and standardize the `buildRubyGem`-like functions? i admit that i may not know what i'm asking for here...haha. i'd be curious about taking a stab but also wouldn't want to step on anyone's toes, it would be a potentially disruptive change if it were actually implemented.
<infinisil>
nixtacular: This would probably need an RFC (see https://github.com/NixOS/rfcs) and be well thought out. Would be awesome to have somebody work on this, but I can tell you that's no easy task, as nixpkgs is so big and there's so many different use cases.
gkmngrgn has joined #nixos
drakonis_ has quit [Ping timeout: 250 seconds]
<nixtacular>
infinisil: nice :-) . ok i'll think about it. still relatively new and doing some modest PR's to get acquainted with everything.
<{^_^}>
[nixpkgs] @Ericson2314 pushed to bash-no-undef-vars « gettext, libiconv: `dontAddExtraLibs` can be legitimately undefined »: https://git.io/JeuhJ