<gchristensen>
Ankhers: can you fetch the patch-darwin branch and try that?
jrolfs has joined #nixos
<Ankhers>
gchristensen: That works.
<gchristensen>
great
<andromeda-galaxy>
is there any way on nixos to set up dhcpd and named so that dynamic dns works?
<gchristensen>
Ankhers: you may need another patch ...
<gchristensen>
Ankhers: for some reason, my system can't find nix-build at run time, let me know if that is a problem for you
jrolfs has quit [(Ping timeout: 264 seconds)]
<Ankhers>
gchristensen: Where do I go about getting some credentials?
<gchristensen>
didn't I already send you some? I can make you some if you need
<Ankhers>
I think you sent me some test ones when you were trying to debug Erlang.
<gchristensen>
Ankhers: (just a note, you can only run the builder right now)
<Ankhers>
Though, I really don't remember what they were.
otherjrolfs has joined #nixos
marsam has quit [(Ping timeout: 252 seconds)]
illinit has quit [(Quit: Connection closed for inactivity)]
jrolfs has joined #nixos
<Ankhers>
I'm still new to this project. What other apps are there in it?
<gchristensen>
a few binaries, the evaluator and then some "plumbing": the thing that filters events, the thing that posts results
<gchristensen>
also {^_^} is in ircbot/
dan_b has quit [(Ping timeout: 240 seconds)]
<Ankhers>
and panic
<gchristensen>
want to join #nixos-borg to debug?
<Ankhers>
Can do.
otherjrolfs has quit [(Ping timeout: 252 seconds)]
jrolfs has quit [(Ping timeout: 260 seconds)]
otherjrolfs has joined #nixos
jrolfs has joined #nixos
asymmetric has quit [(Ping timeout: 268 seconds)]
alasi has joined #nixos
jrolfs has quit [(Ping timeout: 264 seconds)]
otherjrolfs has quit [(Ping timeout: 260 seconds)]
laggy_wifi_ has quit [(Read error: Connection reset by peer)]
laggy_wifi has joined #nixos
iqubic has joined #nixos
<iqubic>
Are there any good utilities/programs for getting a bluetooth headset up and running on NixOS?
marsam has joined #nixos
elninja44 has joined #nixos
jrolfs has joined #nixos
{^_^} has quit [(Remote host closed the connection)]
otherjrolfs has joined #nixos
{^_^} has joined #nixos
otherjrolfs has quit [(Ping timeout: 252 seconds)]
jrolfs has quit [(Ping timeout: 252 seconds)]
bennofs has quit [(Ping timeout: 252 seconds)]
<samueldr>
iqubic: I don't want to be rude by linking the wiki page, only that I reviewed it on the current wiki iteration → https://nixos.wiki/wiki/Bluetooth
<samueldr>
using blueman works well enough
<samueldr>
though, ensure you use the proper pulseaudio!
<iqubic>
I see.
<iqubic>
I think I am using pulseaudio full.
<samueldr>
if you have any questions, ask away
<samueldr>
by default it's not
<samueldr>
the default is `pkgs.pulseaudioLight`
<iqubic>
Oh, I may not actually be using full than.
otherjrolfs has joined #nixos
<iqubic>
Is there a way to run a query to see what I am actually using?
<iqubic>
Like a command line query.
pkill9 has quit [(Quit: WeeChat 2.0)]
<samueldr>
it would be handy, I'm not sure though
<iqubic>
so I have hardware.pulseaudio.enable = true;
<iqubic>
is that good enough, or do I need something more?
jrolfs has joined #nixos
<samueldr>
for audio, that should be enough
<iqubic>
How do I ensure that I am actually using pulseaudio full?
<samueldr>
though yes, `hardware.pulseaudio.enable = true;` is needed
<samueldr>
and then, for bluetooth to work, `hardware.bluetooth.enable = true;`
<samueldr>
you will either want to add to `environment.systemPackages` `pkgs.blueman` or install it for your user, depending on your preferences, to have a GUI
<iqubic>
Do I need a GUI? Can I just use only a CLI?
<samueldr>
ah, you can also use the CLI, sure
<alasi>
I love the idea behind Nix(OS) but it seems like the package ecosystem tends to be outdated and grossly centralized (many packages have no mirrors listed?)
<iqubic>
Do I still need pkgs.blueman then?
<samueldr>
only for the GUU
<iqubic>
Even if I just want the CLI.
<samueldr>
GUI*
jrolfs has quit [(Ping timeout: 252 seconds)]
otherjrolfs has quit [(Ping timeout: 252 seconds)]
<iqubic>
Cool.
hiroshi has joined #nixos
<samueldr>
alasi: it seems to be two different issues/criticism, I'm curious as to why you're saying it tends to be outdated
<iqubic>
So now that I have done the nixos-rebuild switch, what do I do now?
<alasi>
samueldr: it's behind by months in some LTSes it looks like
<samueldr>
but yeah, package sources AFAIK mostly use the one upstream source, in the event something happens to the source, well it's toast
<samueldr>
iqubic: what you'd usually do with the CLI for bluetooth headsets
<alasi>
samueldr: for package sources is it just harder to add mirrors by design?
<samueldr>
I actually don't know and I'm curious about that
<iqubic>
this is my first time setting up a bluetooth headset for myself.
<Olgierd_>
hi, i try to package uberwriter which requires pygobject bindings for webkit, but it keeps telling me that the introspection typelib is not fonud
<Olgierd_>
found*
<alasi>
mature linuxes have tons of mirrors built up... and PGP verification built in.......
<alasi>
Maybe I'm missing the point
<alasi>
but as a distro it seems neither secure nor up to date
plakband has joined #nixos
<samueldr>
iqubic: I usually use blueman to pair and connect, sorry I can't really help, the steps in the wiki page should help, look also at the archlinux wiki page for bluetooth headsets
<iqubic>
Can you help me with blueman then.
<samueldr>
alasi: for the up-to-dateness, it really depends on the packages, the package maintainers sometimes have simply not got around to it
<iqubic>
pairing and connecting is what I need to do right now.
<samueldr>
It's been a while, IIRC start the applet, open the interface, put the headset in pairing mode, click search, then when it finds the device, right click and pair
mbrgm has quit [(Ping timeout: 268 seconds)]
mbrgm has joined #nixos
jrolfs has joined #nixos
otherjrolfs has joined #nixos
plakband has quit [(Quit: plakband)]
<alasi>
samueldr what about signing packages? sorry if i'm being annoying
<alasi>
does nix assume you verify the packages yourself
<iqubic>
Is this something I have to do in the GUI.
<alasi>
hmm there is sha256 but
<iqubic>
Or is it possible to do this soley from the Command Line?
<alasi>
no pgp
<gchristensen>
alasi: package updates to nixpkgs indeed doesn't have a built-in PGP check for most packages
<samueldr>
iqubic: what I described was from the GUI, but all that can be done through bluetoothctl
plakband has joined #nixos
<iqubic>
I don't know how to use bluetoothctl.
<iqubic>
I assume the GUI is easier to use though.
<gchristensen>
however, we do indeed verify and store sha256sums for every dependency in the tree. it could be done that package updates are validated by PGP and then the shasum recorded, but I wouldn't bet on it right now.
<alasi>
hmm okay
<gchristensen>
alasi: nixpkgs is updated by a community of volunteers, and indeed our updates are not always timely. however, we as a group work hard to do so especially in response to security updates.
<iqubic>
Would you recommend I learn the CLI or the GUI version of interacting with Bluetooth devices?
<samueldr>
iqubic: both, CLI will be more universal though, and easier to script for if needed
<gchristensen>
alasi: many of our packages when fetching sources do have mirroring setup, however not all of them. the fixed-output nature of Nix though means we don't need to explicitly list mirrors, our standard build mechanism pushes tarballs to the cache and can be fetched automatically.
<gchristensen>
without an explicit mirroring system.
jrolfs has quit [(Ping timeout: 248 seconds)]
otherjrolfs has quit [(Ping timeout: 248 seconds)]
<alasi>
I see
<alasi>
thanks
<alasi>
I really want to try the project on my thinkpad but it seems like the ecosystem isnt quite there for developers
<gchristensen>
alasi: the binary packages most users fetch (instead of, say, the source to the packages) are on the cache.nixos.org, and that can be mirrored either in an active or passive fashion, and users can use untrusted mirrors without compromising the security guarantees of nix.
<tnks>
ccd
drakonis_ has quit [(Read error: Connection reset by peer)]
<tnks>
(sorry)
<gchristensen>
alasi: however, most users don't mirror it, due to the fairly robust distribution and mirroring provided already by CloudFront.
<fearlessKim[m]>
jrnhmjoj I don't think any package runs a tox testsuite last time I checked so I would tend to say no
<vaibhavsagar>
alasi: the ecosystem is definitely there for developers
plakband has quit [(Quit: plakband)]
<gchristensen>
alasi: if you'd like, we can help you with setup and getting used to nix. if you don't want to, that is fine. NixOS is deployed to around 100,000 systems world wide and many developers are very happy with Nix and NixOS.
<gchristensen>
alasi: however, we're not here to force you to try it :)
<MP2E>
I use NixOS at work and at home, and it serves me pretty well. I've had to package my own things more than a couple of times, but that was the case on more popular OSes too, and I find Nix a lot more pleasant to write things in, as far as package metadata/formats go
<gchristensen>
we're always thrilled to bring on new community members and contributors who can help scratch their own itches with the OS, and can help with the problems like outdated packages you identified.
<alasi>
gchristensen: thanks, I really appreciate the explanations. I'm definitely going to keep nix in mind
<gchristensen>
sounds good :)
Arcaelyx has joined #nixos
<MP2E>
I definitely don't miss when a world rebuild on gentoo would go wrong and half my dynamic libraries would be broken. That can still happen in nix, but then you just boot from an earlier generation
Acou_Bass has quit [(Ping timeout: 248 seconds)]
<MP2E>
well it can't really happen the same way in nix, just that things can break
<gchristensen>
I love how quickly I was able to replace my NixOS router with another completely different bit of hardware, just with a simple PXE-boot and copying around a few lines of config.
jrolfs has joined #nixos
otherjrolfs has joined #nixos
<gchristensen>
indeed, alasi, that would make sense
Supersonic112 has quit [(Disconnected by services)]
<gchristensen>
I just don't like to waste my time on systems that break for no reason
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
Acou_Bass has joined #nixos
marsam has quit [(Ping timeout: 272 seconds)]
otherjrolfs has quit [(Ping timeout: 252 seconds)]
<samueldr>
most of what's not about installing and configuring the packages should be the same, so bluetoothctl and the pulseaudio stuff
Acou_Bass has quit [(Ping timeout: 260 seconds)]
otherjrolfs has quit [(Ping timeout: 252 seconds)]
<iqubic>
Do I need to install pulseaudio-bluetooth, or is gotten for me automatically?
<samueldr>
anything related to installation should already have been handled via nixos configuration.nix
endformationage has joined #nixos
<iqubic>
I told configuration.nix that I want both pulseaudioFull and I want to enable bluetooth.
<samueldr>
I believe it should be enough
jrolfs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vb7pt
<NixOS_GitHub>
nixpkgs/master cf52f8e Peter Hoeg: qsynth: 0.4.4 -> 0.5.0
NixOS_GitHub has left #nixos []
otherjrolfs has joined #nixos
<iqubic>
Well that's stupid.
<iqubic>
Failed to connect: org.bluez.Error.Failed
<iqubic>
What the heck is that.
<iqubic>
That is a stupidly short error that I don't like at all.
<iqubic>
I dual boot Windows10 and NixOS on this machine.
<iqubic>
Windows10 has bluetooth working right out of the box.
<iqubic>
On NixOS I have to piss around with stuff that won't even work at all.
<iqubic>
I successfully pair my headset, and now I can't connect to it.
<iqubic>
What else can I try to get this to work?
<iqubic>
Shall I try the GUI?
<iqubic>
Well, I can't seem to get blueman to run either.
jrolfs has quit [(Ping timeout: 260 seconds)]
otherjrolfs has quit [(Ping timeout: 252 seconds)]
<iqubic>
Alright, I got the GUI running, but this particular headset seems to hate linux.
Arcaelyx has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
pkill9 has joined #nixos
Arcaelyx has joined #nixos
<laggy_wifi>
is it true that the dynamic loader first looks for relative libs in the files directory of execution first?
<laggy_wifi>
for example, /home/r/bin/test > ld.so looks in /home/r/bin for libs first
pkill9 has quit [(Quit: WeeChat 2.0)]
jrolfs has joined #nixos
otherjrolfs has joined #nixos
Ralith_ has quit [(Ping timeout: 252 seconds)]
<gchristensen>
laggy_wifi: you could use strace to findout
<gchristensen>
are you still trying to reimplement nix without nix?
iqubic has quit [(Remote host closed the connection)]
<laggy_wifi>
example (through adding printf's to dl-load.c): 8553: i am in /arch-pkg-build/packages/glibc/repos/core-x86_64/t/bin, LINE 1539, open_verify_if_START, i am looking for name = tls/x86_64/libdl.so.2
otherjrolfs has quit [(Ping timeout: 252 seconds)]
jrolfs has quit [(Ping timeout: 264 seconds)]
<gchristensen>
laggy_wifi: why do you think #nixos is the right place to get help on this project?
<laggy_wifi>
cus it has a different filesystem hierachy?
<laggy_wifi>
or a non-standard filesystem hierachy
<gchristensen>
that doesn't make nixos-related channels an appropriate place to get help for your project. perhaps an IRc channel for your dynamic loader would be a better place, like #musl or #glibc, or even just ##linux, but not #nixos
<laggy_wifi>
ok
Steverman has quit [(Ping timeout: 252 seconds)]
mizu_no_oto has joined #nixos
jrolfs has joined #nixos
dieggsy has quit [(Read error: Connection reset by peer)]
jrolfs has quit [(Ping timeout: 252 seconds)]
orivej has quit [(Ping timeout: 252 seconds)]
proteus-guy has quit [(Remote host closed the connection)]
<laggy_wifi>
it appears that libdl.so is just a prototype for the functions
asuryawanshi has joined #nixos
qewzee has joined #nixos
jrolfs has joined #nixos
<hyper_ch>
nixos is compiling something
ssmike has quit [(Ping timeout: 272 seconds)]
leat has quit [(Quit: WeeChat 1.9.1)]
jrolfs has quit [(Ping timeout: 252 seconds)]
gondel2 has joined #nixos
ssmike has joined #nixos
<gondel2>
hi! I'm defined an overlay for emacs by leveraging emacsWithPackages.. It works fine, the emacs packages appear in the build. However, when using `emacsclient -c` to connect to the enabled emacs daemon, the packages are not present... Anyone having a similar setup? (custom emacs + emacs daemon/client)
jrolfs has joined #nixos
t0adst00l has joined #nixos
jrolfs has quit [(Ping timeout: 248 seconds)]
ma27 has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
t0adst00l has quit [(Quit: Leaving)]
t0adst00l has joined #nixos
ssmike has quit [(Ping timeout: 264 seconds)]
jrolfs has joined #nixos
asuryawanshi has joined #nixos
ssmike has joined #nixos
<hyper_ch>
building palemoon now... this will probably take also quite some time
jrolfs has quit [(Ping timeout: 252 seconds)]
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<laggy_wifi>
btw the hardcoded paths may not even be required to be modified at compile time
prometheus_falli has quit [(Quit: Leaving)]
<laggy_wifi>
or at least for hardcoded library paths
<laggy_wifi>
when DOES a hardcoded path need to be modified to be compatible with nix os?
<laggy_wifi>
like how do u determine if a hardcoded path will cause the application to fail or not
<laggy_wifi>
or behave incorrectly
gondel2 has quit [(Ping timeout: 272 seconds)]
<hyper_ch>
what are you trying to do?
<hyper_ch>
hardcoded path almost never will work
<hyper_ch>
as everything is put into /nix/store/[hash sum]-package/.....
leat has joined #nixos
<laggy_wifi>
if u want to port an application over to nix os when is it deemed nessicary for a hardcoded path to be modified
<hyper_ch>
yes
jrolfs has joined #nixos
<laggy_wifi>
wait, does nixos patch perl add-on modules aswell? since they can contain hardcoded paths
<laggy_wifi>
aswell as python add-on modules
babyflakes has joined #nixos
<hyper_ch>
yes, they'll all need to have their paths modified
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] teto opened pull request #33065: protocol: init at 20171226 (master...protocol) https://git.io/vb5Jp
NixOS_GitHub has left #nixos []
<laggy_wifi>
what if someone purposely created and loaded stuff outside of the applications directory as a add-on for an application?
jrolfs has quit [(Ping timeout: 268 seconds)]
<hyper_ch>
like?
<laggy_wifi>
like some kind of logging module of some kind
larsvm has quit [(Ping timeout: 268 seconds)]
fragamus has joined #nixos
larsvm has joined #nixos
<laggy_wifi>
or even something simple as a module that just creates, loads, then updates a configuration file from say /configfile
jrolfs has joined #nixos
jrolfs has quit [(Ping timeout: 252 seconds)]
<hyper_ch>
look at the according .nix files for those perl modules
<juhe>
Hi, couple of days ago I had an issue with making lvmcache(7) working from initrd. I looked into stage-1 nix guts, took a crash course in nix & perl and made it working - at least locally... No test on other NixOS installations were done (yet). If anybody would need this functionality, here's the related nix snippet from hardware configuration: https://paste2.org/MyW3EjYO . Note: Only the dm_* kernel modules were actually added to the end
<juhe>
of auto-detected ones in boot.initrd.*kernelModules; The boot.initrd.extraUtilsCommands* were created from scratch.
nix-gsc-io`bot has quit [(Killed (Sigyn (Spam is off topic on freenode.)))]
{^_^} has quit [(K-Lined)]
{^_^} has joined #nixos
{^_^} has quit [(Changing host)]
{^_^} has joined #nixos
jrolfs has quit [(Ping timeout: 260 seconds)]
warrickmacmillan has joined #nixos
ma27 has quit [(Quit: WeeChat 2.0)]
ma27 has joined #nixos
jrolfs has joined #nixos
srk has quit [(Ping timeout: 248 seconds)]
snajpa has quit [(Ping timeout: 240 seconds)]
raynold has quit [(Quit: Connection closed for inactivity)]
fusion809 has quit [(Remote host closed the connection)]
steshaw has quit [(Quit: Connection closed for inactivity)]
warrickmacmillan has quit [(Quit: warrickmacmillan)]
asymmetric has quit [(Ping timeout: 264 seconds)]
snajpa has joined #nixos
jrolfs has quit [(Ping timeout: 240 seconds)]
fxr has joined #nixos
nithor has joined #nixos
srk has joined #nixos
vidbina has quit [(Ping timeout: 272 seconds)]
cinimod has joined #nixos
<cinimod>
nix-shell -p python36Packages.Theano
<cinimod>
error: Package ‘python3.6-libgpuarray-0.6.9’ in /nix/store/02jckf3n6rxjnz9dfw0ad8afs85m0hna-nixpkgs-18.03pre122117.14df60d0db9/nixpkgs/pkgs/development/python-modules/libgpuarray/default.nix:76 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<cinimod>
But I can't see a check for x86_64-darwin on line 76
<cinimod>
Also theano works on macos
<cinimod>
I can use it if I install via homebrew
phreedom has quit [(Ping timeout: 248 seconds)]
ixxie has joined #nixos
phreedom has joined #nixos
jrolfs has joined #nixos
ma27 has quit [(Ping timeout: 272 seconds)]
ma27 has joined #nixos
sary has quit [(Remote host closed the connection)]
sary has joined #nixos
cinimod` has quit [(Ping timeout: 252 seconds)]
jrolfs has quit [(Ping timeout: 265 seconds)]
fusion809 has joined #nixos
<fusion809>
Hi, is it possible to install broadcom-sta on a NixOS live session? I've tried running `# nix-env -i broacom-sta` as well as `# nix-env -i nixos.broadcom-sta` after unpacking with `# nix-channel --update` and neither nix-env -i command has succeeded as they both complain they can't find such a package.
cement has joined #nixos
<fusion809>
Just ran nixos-install and it ran fine up to "updating GRUB 2 menu" after which it gave the error "mkdir: cannot create directory ‘/var/lib/os-prober’: No such file or directory"
JosW has quit [(Quit: Konversation terminated!)]
<fusion809>
Nvm found a bug report on this
asuryawanshi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vb53D
<NixOS_GitHub>
nixpkgs/master 7f91eb9 Piotr Bogdan: haskell docs: change wording in the "Miscellaneous Topics" section
NixOS_GitHub has left #nixos []
fusion809 has quit [(Quit: Konversation terminated!)]
fusion809 has joined #nixos
asuryawanshi has quit [(Ping timeout: 256 seconds)]
cinimod` has joined #nixos
<fusion809>
OK now I have an error I haven't found in a bug report 'error: cannot find a device for /boot (is /dev mounted?)' as an output for grub-install. I have my boot device defined in configuration.nix (which you can find here https://github.com/fusion809/NixOS-configs/blob/master/configuration.nix
<fusion809>
That's when grub-install is run by nixos-install
<seba_>
Hello #nixos! Can I ask a question regarding installing Haskell packages with Nix here?
fxr has quit [(Ping timeout: 252 seconds)]
<cinimod>
Package clblas-2.12 is next
<cinimod>
And it's an oldish version of theano that has been packaged anyway :(
leat has quit [(Quit: WeeChat 1.9.1)]
ma27 has quit [(Ping timeout: 252 seconds)]
leat has joined #nixos
sary has joined #nixos
cinimod` has quit [(Read error: Connection reset by peer)]
cinimod` has joined #nixos
ma27 has joined #nixos
<cinimod>
So saying that this package can also build on a Mac (Darwin) didn't work - I get a compiler error - but surely the compiler is the same as the one on linux?
<sevcsik>
any ideas? I have working VMs in VirtualBox, and I could deploy earlier to a real NixOS box - just the two of them together don't seem to get along
cinimod` has quit [(Remote host closed the connection)]
fxr has joined #nixos
jrolfs has quit [(Ping timeout: 240 seconds)]
drakonis has joined #nixos
pkill9 has joined #nixos
the has joined #nixos
the has quit [(Changing host)]
the has joined #nixos
cement has quit [(Ping timeout: 240 seconds)]
seba_ has quit [(Ping timeout: 265 seconds)]
proteus-guy has joined #nixos
cinimod` has joined #nixos
ma27 has quit [(Ping timeout: 255 seconds)]
sigmundv has joined #nixos
ma27 has joined #nixos
drakonis_ has joined #nixos
drakonis has quit [(Ping timeout: 252 seconds)]
fxr has quit [(Ping timeout: 252 seconds)]
jrolfs has joined #nixos
jrolfs has quit [(Ping timeout: 263 seconds)]
ixxie has quit [(Ping timeout: 248 seconds)]
ma27 has quit [(Ping timeout: 252 seconds)]
ma27 has joined #nixos
<zarel>
I'm looking at https://github.com/NixOS/nixpkgs/issues/33018 and I'm wondering: do nixos-generate-config set allowUnfree to true in the generated config when it pulls in nonfree drivers?
<gchristensen>
no
jrolfs has joined #nixos
asymmetric has joined #nixos
jrolfs has quit [(Ping timeout: 264 seconds)]
berce has joined #nixos
<zarel>
thank you gchristensen, so the fact that the installer pulls in nonfree and then the user is faced with the nonfree warning when installing clementine is a pragmatic approach to have a working machine but try to avoid tons of proprietary applications?
<gchristensen>
right, I think the unfree redistributable firmware is part of the linux kernel source
<cinimod>
nix-build -A cmdstan gives me error: Package ‘cmdstan-2.9.0’ in /Users/dom/nixpkgs/pkgs/development/compilers/cmdstan/default.nix:31 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<cinimod>
So it seems that a package called cmdstan already exists (but 2.9 is very old - I am trying to package 2.17)
<cinimod>
But if I do nix-env -qa | grep -i stan, I see no mention of cmdstan
ixxie has joined #nixos
asuryawanshi has joined #nixos
<cinimod>
Also it seems to me that the existing cmdstan is mis-classified - it's a package for doing statistical inference so it should *not* be categorised as a compiler
<joncfoo>
cinimod, fork your own copy of nixpkgs and edit the cmdstan/default.nix file
<cinimod>
Ah that's what I forgot
<joncfoo>
build it locally and the file a issue/PR
<cinimod>
Sorry
asuryawanshi has quit [(Ping timeout: 256 seconds)]
<cinimod>
joncfoo: There must be something that I missed but I already have a copy of nixpkgs
<cinimod>
I will move the existing file
<joncfoo>
did you edit the cmdstan's default.nix?
<joncfoo>
to updated it to the latest version and remove the meta.platforms attribute?
<joncfoo>
so you can build it on OSX
mojjjo has quit [(Remote host closed the connection)]
<joncfoo>
nix-env -f '/path to nixpkgs' -i cmdstan # I think
* andi-
wonders if he can recompile the kernel with charging support before the battery runs out..
<andi->
trains are fun..
sigmundv has quit [(Ping timeout: 240 seconds)]
marsam has quit [(Ping timeout: 252 seconds)]
Steverman has joined #nixos
<samueldr>
andi-: good luck
<andi->
samueldr: thanks, the pocket is a nice device, when charging works :)
<samueldr>
I can imagine
sigmundv has joined #nixos
<gchristensen>
orivej: can you try checking out master w.r.t. 6e2df0aed83f79ff600f39060a32df6e2069837c and how master is currently failing to eval for the same problem? :/
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vb5R4
<NixOS_GitHub>
nixpkgs/master b0047e7 Vladimír Čunát: linux: 4.9.71 -> 4.9.72 (security)...
NixOS_GitHub has left #nixos []
<cinimod>
How do I submit a change for a package?
<cinimod>
Do I create a branch?
sary has quit [(Ping timeout: 252 seconds)]
<cinimod>
Or a fork?
<gchristensen>
a fork
<cinimod>
Shame
<cinimod>
Ok
<Yaniel>
fork, push your changes there, make a pull request to upstream
<gchristensen>
shame?
sary has joined #nixos
Yotam has joined #nixos
<Yotam>
I'm trying to build a project and I get the error "GL/glx.h not found" but can't seem to find a package with it, is there one?
seba_ has quit [(Ping timeout: 240 seconds)]
drakonis has quit [(Read error: Connection reset by peer)]
fusion809 has joined #nixos
<fearlessKim[m]>
yotam use nix-locate glx.h to find the package that has it then add it to buildinputs
<fusion809>
Hi, how does one install 0ad? nix-env -qa 0ad doesn't return any results, but a package for it does exist in https://github.com/NixOS/nixpkgs. I have tried cloning the repository and running nix-build -A 0ad from its root but it doesn't build it, it returns `error: attribute ‘0ad’ in selection path ‘0ad’ not found`
LexLeoGryfon has joined #nixos
vcunat has joined #nixos
<Yotam>
fearlessKim[m] what do I need to do if I don't have nix-locate?
<cinimod>
Someone beat me to it on GitHub and on irc so I ended up with two handles
<fearlessKim[m]>
cinimod: someone hacked your github icon, the picture is taken outside
<cinimod>
lol
<Yaniel>
cinimod: it's not easier when you don't have commit access to the repo, like most people
<cinimod>
Sure
<Mic92>
Does somebody has a copy'n'paste nixos configuration for kubernetes for me?
<Mic92>
never mind I can just re-use the test
<Yotam>
I get attribute "nix-locate" in selection path "nix-locate" not found :(
<Yotam>
for all of the options you gave me
<bennofs>
Yotam: the package is called nix-index, not nix-locate :)
<Yotam>
bennofs: same
<fearlessKim[m]>
my bad, I should have run nix-locate on nix-locate :O
<fearlessKim[m]>
Yotam: run nix-channel --update and retry maybe ? also try to intall nox, it might help you find packages later on ( "nox pkgNAME")
<ixxie>
how does one deal with confidential info such as passwords, when storing config files publically?
<Yotam>
ixxie: .gitignore?
<bennofs>
ixxie: put them in /etc/secrets or something and `builtins.readFile` at appropriate places? Note that passwords may end up world-readable in the nix store though
<Yaniel>
separately
<ixxie>
thanks
<Yotam>
Still not working, maybe I',m missing something in my NixOS?
<bennofs>
Yotam: on what version are you?
* bennofs
is not sure how long nix-index is already in nixpkgs
nuncanada has joined #nixos
<Yotam>
how do I check that?
<Yotam>
1.11.14
<bennofs>
Yotam: what does nix-instantiate --eval --strict --expr '(import <nixpkgs> {}).lib.nixpkgsVersion' print?
<bennofs>
As for upgrading your system, you'll have to look at the manual, I've always used the unstable nixos release which is rolling so there's no upgrade process
<manveru>
anyone able to get stack to work with ghc 8.2.2?
<ixxie>
symphorien: but then everything is build locally right?
ariutta has joined #nixos
dywedir has joined #nixos
<symphorien>
no
asuryawanshi has quit [(Remote host closed the connection)]
<symphorien>
anyway, try
marsam has quit [(Ping timeout: 272 seconds)]
<ogle>
\part
ogle has left #nixos []
cinimod` has joined #nixos
<fusion809>
I think I asked this before so this time I will write it down to make sure I do not forget but how does one build and install a package in a local git repository? I know nix-build -A builds the package and installs it to result but it is not found in one's system PATH and if you build a different package later from the same repository you'll loose the package you built at first from the result directory
<gchristensen>
it means master was broken when the check ran
<ixxie>
so, not my fault?
<gchristensen>
yeah, sorry
<ixxie>
okay cool
<ixxie>
btw, is the procedure to wait for the code owner to approve the PR?
<ixxie>
FRidh[m] - maybe you are around?
<gchristensen>
I don't know
bennofs has quit [(Ping timeout: 272 seconds)]
<fusion809>
I have a GNOME extension I'd like to build locally, along with some C++ projects I use make to build. nix-env -qa make doesn't reveal any make package so I'm stuck for how to install it.
<gchristensen>
ixxie: ok now it is on you: you need to rebase against master :)
<deltasquared>
trying to do something similar to nix with arch linux's packages, just installed without root to a prefix then overlayed with a generated /etc, but it's just not designed for it... I give up. I guess if I wanted nix-like perks there was only one place I was going to get it.
<simpson>
deltasquared: Nix probably works fine on Arch, doesn't it?
<deltasquared>
I think part of it was a slight annoyance with the absolute level of functional purity in nix, to the detriment of things like cross compilation
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] markus1189 closed pull request #32451: doc: Warn about the classpath hook and required jdk buildInput (master...jdk-warning) https://git.io/vb8cj
NixOS_GitHub has left #nixos []
<gchristensen>
laggy_wifi has been trying to reimplement nix in a similar way
<deltasquared>
though for this particular use case I guess that matters little.
<deltasquared>
gchristensen: I've always been this nick, we've spoken before.
<deltasquared>
I've never been anyone else I swear :P
<gchristensen>
I know, just seemed suspicious :P
acarrico has quit [(Ping timeout: 264 seconds)]
<gchristensen>
anyway, Sonarpulse has put a ton of work and improvement in to cross compilations lately
<deltasquared>
gchristensen: the way I see it, fundamentally you would have to take the compiler's hash out of the derivation equation, so to speak, to get a sane cross compilation setup
<gchristensen>
deltasquared: you may not be seeing it properly :)
<deltasquared>
that is, say an ARM system where you use mostly cached packages but you use a "CPU server" locally to compile new ones, which would more than likely be x86 for economical reasons
<gchristensen>
ahh I see, yes, that is a bit of an annoying case
<deltasquared>
annoying is a bit of an understatement.
<gchristensen>
* for large values of "bit"
cinimod` has quit [(Ping timeout: 240 seconds)]
jrolfs has quit [(Ping timeout: 252 seconds)]
otherjrolfs has quit [(Ping timeout: 240 seconds)]
<deltasquared>
gchristensen: I guess at the end of it, it'd just be a "can't beat em, so join em" and then try and fix it when I actually use the relevant thing on a daily basis. :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 16 new commits to master: https://git.io/vb528
<NixOS_GitHub>
nixpkgs/master 63a6644 Tuomas Tynkkynen: fsmon: 1.4 -> 1.5
<NixOS_GitHub>
nixpkgs/master c1ed492 Tuomas Tynkkynen: fio: 3.2 -> 3.3
<NixOS_GitHub>
nixpkgs/master d6cc334 Tuomas Tynkkynen: picocom: 2.2 -> 3.0
NixOS_GitHub has left #nixos []
<deltasquared>
there *is* an argument of whether a native compiler and a cross targeting the same would actually produce the same output, even with reproducability taken into account
<deltasquared>
( /me thinks this'd be far easier to check in LLVM/clang than GCC, for instance )
<Dezgeg>
well you also have autoconf and things affecting the result
<earldouglas>
How can I escape '${foo}' in a Nix string? It's for Nginx config, so I don't want Nix to try to interpolate the foo variable here.
<simpson>
If the compiler's built from a specific formalism, then yes; what you need is for the compiler to witness the same Futamura projection regardless of what hardware it's compiled to.
otherjrolfs has joined #nixos
<lassulus>
earldouglas: ''${foo}
<earldouglas>
Two apostrophes before the dollar sign?
<deltasquared>
autoconf... fae phaken saken
bgamari has joined #nixos
<lassulus>
yes, that escapes ${
* deltasquared
wonders why mostly everything about autoconf has to suck
<ixxie>
gchristensen: do you know about these node-packages thingies? I get the feeling that in a few days I will have to rebase this once again due to node-packages and maintainers.nix
otherjrolfs has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to mariadb-10.2: https://git.io/vb5VL
<NixOS_GitHub>
nixpkgs/mariadb-10.2 085ee23 Robin Gloster: luaPackages.luadbi: libmysql -> connector-c
NixOS_GitHub has left #nixos []
warrickmacmillan has joined #nixos
<sphalerite>
BTW anyone in the area of Gothenburg (Sweden) and would care to meet up? I'm up here until the 7th
<ixxie>
sphalerite: we can meet halfway in stockholm or you can come crash here in Helsinki xD
<Yaniel>
Göteborg?
<sphalerite>
Yaniel: yep
<adisbladis[m]>
ixxie: I'm sadly confined to mobile atm. Will have a look once I have power
<ixxie>
cheers adisbladis[m] :)
<ixxie>
sphalerite: I think teozkr is in Stockholm
<deltasquared>
quad core in your pocket and yet you cannae use it for much more than media consumption still :/
<deltasquared>
(well, for the better devices at least)
<sphalerite>
deltasquared: you Scottish? :D
<etu>
ixxie: I think you're right because I've met him here (I am as well)
<sphalerite>
Heh, we could put together a proper little meetup!
<etu>
teozkr (or anyone around really): If you're in Stockholm the coming days you're welcome to join us for streaming of CCC and talk stuff and nix. Hit me up for more information :)
<etu>
34C3 starts tomorrow and we will stream the entire thing :)
<deltasquared>
sphalerite: no, british actually
<deltasquared>
I like to take the p- err, biscuit sometimes
<deltasquared>
I find angry scots amusing
<deltasquared>
(unless one is yelling at you with a bottle that is)
<>
changed the topic of #nixos to: Topic set by gchristensen!~gchristen@unaffiliated/grahamc on 2017-12-20 13:45:48 UTC
<ixxie>
etu: tempting; I should technically be working the next few days though, but I think I could get away with remote work
cinimod` has quit [(Remote host closed the connection)]
<etu>
ixxie: There's a blogpost up on https://ix.ufs.se/ all in Swedish (I hope that works for you otherwise you're a bit on your own :p) that is updated with new opening hours soon :)
<sphalerite>
deltasquared: hah ok. I live in Scotland normally, but I'm not from there and didn't acquire the accent as I had hoped to :p
cinimod` has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #33042: darwin stdenv: Make stdenv.cc, not stdenv itself, bring in libcxx (staging...darwin-cxx) https://git.io/vb73x
NixOS_GitHub has left #nixos []
<ixxie>
etu: I can deal with a lil Svenska
<etu>
:D
<deltasquared>
sphalerite: well my dad's side is southern english, mother's is nothern, and somehom I ended up with somewhat recieved pronounciation.
<ixxie>
etu: how is UFS with sleeping?
<ixxie>
xD
<hyper_ch>
scotland - home of haggies and fried mars bars
<etu>
ixxie: That's doable
<etu>
ixxie: We're allowed to host people :)
<deltasquared>
hyper_ch: and a couple of regenerations of Docwor Who.
<deltasquared>
*doctor. oops
<sphalerite>
hyper_ch: deep fried mars bars are great
<hyper_ch>
last night's xmas special was nice
<deltasquared>
indeed.
<etu>
ixxie: Gotta go now though, but I'll be on mobile in half an hour or so :)
<hyper_ch>
didn't think Hartnell would rise from the dead
<ixxie>
sphalerite: when would you go to stockholm if you go?
<ixxie>
etu: I will need to check some things
<ixxie>
not sure I can pull this off but I will try xD
<sphalerite>
ixxie: no particular preference, I don't have any plans really
<hyper_ch>
it's been a long time since I've watched allt he doctors
<sphalerite>
Would be cool!
cinimod` has quit [(Ping timeout: 248 seconds)]
<hyper_ch>
stockholm? there's also a curl meetup planned in march IIRC
Guest87420 has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
asuryawanshi has joined #nixos
<bgamari>
How does one go about debugging lacking parallelism in a nix expression?
<bgamari>
I have a derivation which depends upon several other derivations which ought to be evaluable in parallel, yet nix doesn't seems to notice this
<deltasquared>
I would assume you'd need some way to print out the percieved dependency ordering tree for a given operation
<deltasquared>
sorta like a hypothetical make --print-dependency-graph
Yotam has quit [(Quit: Leaving)]
berce has quit [(Ping timeout: 248 seconds)]
<sphalerite>
bgamari: nix-store -q --graph?
<bgamari>
sphalerite, well, I'm quite certain that there is no actual data dependency between the affected derivations
<deltasquared>
speaking of data dependencies... not nix related but, /me makes a note to get his head around haskell's IO monad.
<bgamari>
I suspect that the way I am depending upon them is hiding the parallelism
<bgamari>
nix's operational semantics are quite unclear to me
<ixxie>
sphalerite, etu - I am still not sure I could go, but if I could go I think Friday/Saturday would be most likely
berce has joined #nixos
<deltasquared>
bgamari: to take a guess, very lazily evaluated for starters.
<ixxie>
anyhoo, gnight
ixxie has quit [(Quit: Lost terminal)]
<deltasquared>
bgamari: I think what would actually be useful would be debugging of reasons why an ordering dependency was detected
<deltasquared>
"x ordered before y because y depends on x" etc.
<bgamari>
I guess my question would be, if I have `deps: mkDerivation { buildCommand = concatMapStringsSep "\n" (x: "echo ${x}") deps; }`, should I expect `deps` to be evaluated in parallel?
Neo-- has quit [(Ping timeout: 272 seconds)]
<sphalerite>
bgamari: oh, evaluated in parallel?
<bennofs>
pretty sure that nix's evaluator is single-threaded
<sphalerite>
I don't think nix does parallel evaluation at all?
<bgamari>
sphalerite, -j, no?
<sphalerite>
bgamari: that affects building (instantiation), not evaluation
romildo has quit [(Quit: Leaving)]
<bennofs>
bgamari: nix has parallel building (turning a .drv into a build output) but not parallel evaluation (turning a nix expression into a .drv)
tg has quit [(Read error: Connection reset by peer)]
<sphalerite>
But in the example you gave, yes, they should indeed build in parallel
<sphalerite>
Providing they don't depend on each other
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] apeyroux opened pull request #33081: jmeter: 2.11 -> 3.3 and fix java command not found (master...up-jmeter) https://git.io/vb5rq
NixOS_GitHub has left #nixos []
<bennofs>
sphalerite: i'm not sure if it should build in parallel... does the nix evaluator block on building or not?
contrapumpkin has quit [(Ping timeout: 252 seconds)]
<bennofs>
it depends on evaluation order i think
<sphalerite>
bennofs: no, usually building and evaluation are completely separate
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/vb5r3
<NixOS_GitHub>
nixpkgs/staging 47c782f Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/master' into staging
NixOS_GitHub has left #nixos []
<sphalerite>
The only exception is if you have IFD stuff going on
nix-gsc-io`bot has joined #nixos
<bgamari>
bennofs, right, this is more or less my question
<>
changed the topic of #nixos to: Topic set by gchristensen!~gchristen@unaffiliated/grahamc on 2017-12-20 13:45:48 UTC
<bgamari>
and I'm observing serialised building
<bennofs>
sphalerite: i think this is similar to IFD
<sphalerite>
bgamari: barring IFD and interdependencies between the deps, they should build in parallel
<bennofs>
sphalerite: if you have "${x}" + "${y}" + "${z}", I am not sure if nix is smart enough to build x/y/z in parallel
<bennofs>
actually, I can easily test that
pie_ has joined #nixos
<sphalerite>
bennofs: but they don't need to be built for that to evaluate
<sphalerite>
Only evaluated
<bennofs>
oh you're right
<sphalerite>
It's only when you have evaluation depending on the outputs that it'll block evaluation for a build
<bennofs>
bgamari: what happens when you run nix-instantiate on that? does it do any building?
deltasquared has left #nixos ["my internets, no!"]
<bennofs>
if it does, then your evaluation depends on the contents of build outputs (i believe the only way that happens if you use import-from-derivation (IFD)) and building will be serialized because the nix evaluator is not concurrent and building is only triggered by the evaluator
zarel has joined #nixos
<bennofs>
bgamari: if it is a true build-time problem, then you can look at the references of the .drv's that nix-instantiate generates to analyze the dependency graph
pie_ has quit [(Ping timeout: 248 seconds)]
jb55 has joined #nixos
* bgamari
is trying to extract a subset that can be easily tested
tg has joined #nixos
jrolfs has joined #nixos
otherjrolfs has joined #nixos
vidbina has joined #nixos
cinimod` has joined #nixos
<teozkr>
etu: hey :P
<teozkr>
yeah, I don't really have time atm :/
<teozkr>
just got home from the family, and preparing for going away again in a few days
<teozkr>
but it sounds really fun, and I would probably have come if I had known about it (much) earlier :/
<bgamari>
Dezgeg, not quite due to the request above
<bennofs>
bgamari: if you write that logic in bash instead of nix it should work
<bgamari>
bennofs, alright, good to know
<bennofs>
the problem is the builtins.readDir, as that will force building to happen at evaluation time
<bgamari>
I see
<bgamari>
bennofs, thanks!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to mariadb-10.2: https://git.io/vb5KV
<NixOS_GitHub>
nixpkgs/mariadb-10.2 9461c01 Robin Gloster: Merge remote-tracking branch 'upstream/master' into mariadb-10.2
NixOS_GitHub has left #nixos []
dieggsy has joined #nixos
ottidmes has joined #nixos
<gchristensen>
my system running most of the ofborg evals is in my office, which is like 6 degrees warmer than the rest of my house :D this is great!
otherjrolfs has quit [(Ping timeout: 264 seconds)]
jrolfs has quit [(Ping timeout: 264 seconds)]
<etu>
teozkr: You was at one of our events like a year ago :)
<etu>
adisbladis[m]: jealous much now.
[0x4A6F] has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] johbo opened pull request #33084: libvirt: Avoid patchShebangs in the darwin build (master...libvirt-darwin) https://git.io/vb56w
<gchristensen>
you're welcome :) they have a great community, and everybody I know at Packet is great too
<teozkr>
etu: yeah.. wondered if you remembered me :P
<teozkr>
etu: I still feel bad about getting sick before the third night :(
<toogley>
does someone have an idea what i could do about http://nixpaste.lbr.uno/5MVIsySW?nix ? or is that out of scope for nixos and i should ask on #haskell ?
<etu>
teozkr: Yeah I do. I was happily surprised when I found you in nix as well. I didn't run NixOS when we last med though.
<teozkr>
:D
marsam has quit [(Remote host closed the connection)]
<drakonis>
i had a witty retort if it was some overengineered multi piece config
<yegortimoshenko>
concatime: i think you'll need to add `boot.extraModprobeConfig = "options snd-hda-intel index=1,0";`
cement has joined #nixos
<concatime>
That will change the card, no?
<concatime>
I want to dynamicly change the "device"
<yegortimoshenko>
this is what has fixed the problem for me once on a MacBook Air with ALSA-only setup, but i highly suggest to use PulseAudio instead
dywedir has quit [(Remote host closed the connection)]
sary has quit [(Ping timeout: 246 seconds)]
<concatime>
I will try and tell you if it works
<yegortimoshenko>
sure, you also might have luck with googling "<your computer name or audio card name> modprobe"
<concatime>
It's not working. I'm having: "cannot find card 0". That's what I though.
<yegortimoshenko>
well, it was worth a try. unfortunately, modprobe config is highly hardware-dependent. try looking for what specific modprobe setting works for you.
<yegortimoshenko>
maybe archwiki?
<concatime>
On your config, when you plug headphones, does the sound change from speakers to headphones?
qewzee has quit [(Ping timeout: 268 seconds)]
justanotheruser has joined #nixos
sary has joined #nixos
cinimod` has quit [(Ping timeout: 248 seconds)]
<yegortimoshenko>
i use PulseAudio now, last time i had a configuration w/o PulseAudio was a half year ago. it didn't switch, of course, that's partially what sound server is for.
<concatime>
I think you're right. ALSA-only is not viable. What do you think between PulseAudio and Jack?