<yurrriq>
can anyone help me figure out how to force my local nix to build on a different platform via nix-daemon? locally I'm on darwin, and I've got an x86_64-linux via nix-daemon, but when importing my pinned nixpkgs.nix I can't figure out how to tell it to build on linux instead of darwin..
takle has quit [(Ping timeout: 260 seconds)]
MercurialAlchemi has joined #nixos
jgertm has quit [(Ping timeout: 246 seconds)]
takle has joined #nixos
endforma1 has quit [(Quit: WeeChat 1.7)]
marsel has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
jgertm has joined #nixos
takle has joined #nixos
marsel has quit [(Ping timeout: 246 seconds)]
drakonis has quit [(Remote host closed the connection)]
dalaing_ has quit [(Remote host closed the connection)]
marusich has joined #nixos
takle has quit [(Ping timeout: 258 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
takle has joined #nixos
katyucha is now known as Guest90430
Guest94148 is now known as katyucha
takle has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 246 seconds)]
ceevusee has quit [(Remote host closed the connection)]
Isorkin has joined #nixos
Isorkin has quit [(Client Quit)]
takle has joined #nixos
FRidh has joined #nixos
takle has quit [(Ping timeout: 246 seconds)]
freusque has joined #nixos
sellout- has joined #nixos
Tucky has joined #nixos
<puffnfresh>
yurrriq: I'm working on things for this right now
<puffnfresh>
then running it and exporting the right environment variables :)
<puffnfresh>
yurrriq: exactly my motivation
<puffnfresh>
haha :)
<LnL>
if you have remote builds configured you can run nix-build '<nixpkgs>' -A hello --argstr system x86_64-linux
<yurrriq>
puffnfresh: hooray!
<yurrriq>
LnL: yeah, that works, but I'm specifically having trouble with dockerTools from daarwin
<LnL>
ah yes, that needs qemu IIRC
<yurrriq>
basically, I've got a nix expression that builds a Clojure app (.jar) and I want to take that, add a few native deps (graphicsmagick etc) and generate a lean docker image via dockerTools.buildImage
<yurrriq>
all from darwin :)
takle has quit [(Ping timeout: 260 seconds)]
Itkovian has joined #nixos
<yurrriq>
I'm also pinning a version of nixpkgs and using fetchFromGithub for that, so I think I'm messing up my top-level pkgs in there too
takle has joined #nixos
<yurrriq>
that is to say, I think with the proper config, I could probably use your nix-docker setup, LnL, and get my Docker image to build
<yurrriq>
but I don't know how that looks :)
neoo has quit [(Ping timeout: 255 seconds)]
freusque has joined #nixos
<yurrriq>
LnL, puffnfresh: This project is for work so I can't share directly, but if I pulled out the general structure into a dummy repo, would you be willing and able to take a look and try to point me in the right direction? To be clear, remote building, generally, works on my system already, just not how I want it to for this project..
<LnL>
not sure, the nixbuild users can't do things like chmod/useradd
takle has quit [(Ping timeout: 246 seconds)]
roblabla has quit [(Ping timeout: 240 seconds)]
pierron has quit [(Ping timeout: 240 seconds)]
pierron has joined #nixos
roblabla has joined #nixos
sphalerite has quit [(Ping timeout: 240 seconds)]
johnw_ has quit [(Ping timeout: 260 seconds)]
sphalerite has joined #nixos
<yurrriq>
hmmmmm ok
<yurrriq>
I'm gonna do it anyway as it might help me pinpoint the issue
freusque has quit [(Quit: WeeChat 1.7)]
takle has joined #nixos
johnw has joined #nixos
proteus-guy has quit [(Remote host closed the connection)]
frankpf has joined #nixos
freusque has joined #nixos
<LnL>
but a docker layer is just a tarball so it should be possible to create that correctly without a vm
byteflame has joined #nixos
pie_ has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<yurrriq>
right
<yurrriq>
why does dockerTools require linux then? I guess I haven't looked into that
* yurrriq
can read the issue discussion
takle has joined #nixos
byteflame has quit [(Ping timeout: 255 seconds)]
takle has quit [(Ping timeout: 246 seconds)]
<yurrriq>
I'm off to bed, but please mention me here or on GitHub (same username) when you have something for me to try out, puffnfresh. :)
Itkovian has quit [(Read error: Connection reset by peer)]
freusque has quit [(Ping timeout: 246 seconds)]
takle has joined #nixos
pie_ has quit [(Ping timeout: 255 seconds)]
takle has quit [(Ping timeout: 246 seconds)]
marsel has joined #nixos
takle has joined #nixos
freusque has joined #nixos
takle has quit [(Ping timeout: 245 seconds)]
marusich has quit [(Quit: Leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vHwAa
<NixOS_GitHub>
nixpkgs/master 6f8f50f Benjamin Staffin: libinput: 1.5.1 -> 1.7.2...
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
goibhniu has joined #nixos
<puffnfresh>
yurrriq: hey yeah I'll send you something, 2 things:
<puffnfresh>
1. dockerTools uses runInLinuxVM to run commands, so you can say "build a layer by doing: ls > /etc/wat"
<puffnfresh>
most things in dockerTools don't need that functionality, so it shouldn't use it, if not
<puffnfresh>
2. you should be able to build using (forceSystem "x86_64-linux").dockerTools - but you probably have to add "kvm" as a feature to your system list
<NixOS_GitHub>
[nixpkgs] lheckemann opened pull request #26418: mesa: add valgrind support (staging...mesa-valgrind) https://git.io/vHrT9
NixOS_GitHub has left #nixos []
simukis has joined #nixos
arianvp2 has joined #nixos
pie_ has joined #nixos
pie_ has quit [(Changing host)]
pie_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vHrkX
<NixOS_GitHub>
nixpkgs/master c0b1e8a Frederik Rietdijk: python.pkgs.pathpy: 10.1 -> 10.3.1
NixOS_GitHub has left #nixos []
arianvp2 has quit [(Remote host closed the connection)]
arianvp2 has joined #nixos
arianvp2 has quit [(Remote host closed the connection)]
simukis has quit [(Quit: simukis)]
orivej has joined #nixos
arianvp2 has joined #nixos
jensens has joined #nixos
arianvp2 has quit [(Client Quit)]
ertes-w has joined #nixos
simukis has joined #nixos
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
mpcsh has joined #nixos
ThatDocsLady has joined #nixos
subl3 has quit [(Ping timeout: 260 seconds)]
<Myrl-saki>
Can you use Nix on a different OS?
<Myrl-saki>
s/OS/kernel/
<goibhniu>
Myrl-saki: yep, it works on other Linux distros and on OsX
<sphalerite>
Can I use nixUnstable with a 1.11.8 daemon?
<Myrl-saki>
goibhniu: Oh right.
<gchristensen>
sphalerite: yeah
<Myrl-saki>
goibhniu: Thanks.
<sphalerite>
awesome
<goibhniu>
Myrl-saki: sure, np
<Myrl-saki>
Oh right. No steam games.
<Myrl-saki>
Must reconsider.
<goibhniu>
you can use steam
<LnL>
we have steam
<Myrl-saki>
On BSD, I mean.
<Myrl-saki>
Oh wow. I didn't specify what kernel I was talking about. Sorry. @_@
<goibhniu>
BSD support was dropped years ago because nobody was maintaining it
<Myrl-saki>
goibhniu: Ah. :(
<LnL>
in theory it still works, but hydra doesn't build anything for bsd so we have no idea when things break
simukis has quit [(Ping timeout: 246 seconds)]
<sphalerite>
Is there an introduction to nixUnstable
<sphalerite>
somewhere?
pie_ has quit [(Quit: Leaving)]
pie_ has joined #nixos
freusque has joined #nixos
pie_ has quit [(Changing host)]
pie_ has joined #nixos
<goibhniu>
I've been trying to get NixOS onto an RPi zero (similar to the first RPi). According to the wiki, I'll need to use a serial connection to install and configure it. Does anyone know if there's an easier way?
<goibhniu>
Perhaps using qemu-system-arm? (I couldn't get that to boot the image)
vaibhavsagar has quit [(Ping timeout: 246 seconds)]
k0001 has joined #nixos
<evangeline>
hi, is somebody else experiencing this error while rebuiling nixos: http://dpaste.com/37B5DE3 : error: 'struct net_device' has no member named 'trans_start'
afics has quit [(Ping timeout: 255 seconds)]
<jophish>
goibhniu: You might be interested in talking to clever
<jophish>
clever's doing amazing things with converting existing systems to nix
byteflame has joined #nixos
<goibhniu>
cool! I think I might be able to connect over serial anyway, so maybe it's grand ... It would be lovely to be able to test stuff out with qemu though
<joehh>
hi all, is it a bad idea to use nixos as a samba ad controller? I need to migrate an old debian samba 3 domain controller (approx 20 users) to something more modern
<joehh>
Am I venturing too far of the "well trodden path"?
<evangeline>
goibhniu: can I temporarily disable it in configuration.nix to see whether everything builds fine without it?
ThatDocsLady has quit [(Ping timeout: 255 seconds)]
<goibhniu>
evangeline: yeah, that should work, can you post your configuration?
byteflame has quit [(Ping timeout: 255 seconds)]
<evangeline>
goibhniu: I don't want to post the whole configuration, since I have sensitive stuff in there, can I only post the part which is relevant, possibly the kernelModules and such?
<goibhniu>
evangeline: sure, but I don't really know what to look for ... do you see a reference to e1000 there? ... it might be in the hardware-configuration.nix too
frankpf has quit [(Ping timeout: 255 seconds)]
samvher has joined #nixos
<samvher>
Hi. I'm trying to pip install a package in a python virtualenv but I'm getting a library import error (libgomp.so.1). I found that the library is in /nix/store/<hash>-gcc-5.4.0-lib and added its directory to my LD_LIBRARY_PATH but this doesn't solve the problem. Has anyone here had similar issues with virtualenv?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] roblabla opened pull request #26419: cyrus-sasl: Add saslauthd service and LDAP support (master...feature-sasl) https://git.io/vHrsh
NixOS_GitHub has left #nixos []
adamt has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] roblabla opened pull request #26420: postfix: Add optional LDAP support, allow changing package in service (master...feature-postfix) https://git.io/vHrGs
NixOS_GitHub has left #nixos []
darlan has joined #nixos
ThatDocsLady has joined #nixos
orivej has quit [(Ping timeout: 258 seconds)]
mudri has quit [(Ping timeout: 246 seconds)]
<makefu>
samvher: check https://nixos.org/nixpkgs/manual/#python ( develop local package ), using nix-shell instead of virtualenv is the preferred way to handle local development
<evangeline>
goibhniu: yes it's in hardware-configuration.nix
<samvher>
makefu: thanks. The problem is I have a python package for which there is no nix expression as far as I'm aware
<samvher>
now maybe I can write the expression, but I just want to try out the package
ixxie has quit [(Ping timeout: 255 seconds)]
k0001 has quit [(Ping timeout: 240 seconds)]
Myrl-saki has quit [(Ping timeout: 255 seconds)]
<evangeline>
goibhniu: http://dpaste.com/2J6VEVB : instead of using a hardcoded e1000e (I guess this was a workaround a while back when the network driver wasn't working or something), but I noticed that e1000e is in the nixpkgs: how can I reference it directly without using the e1000e variable?
k0001 has joined #nixos
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
Myrl-saki has joined #nixos
<makefu>
samvher: you only need to write a default.nix for the development, it only defines which dependencies are required
<makefu>
working with this is quite straight forward
<goibhniu>
evangeline: cool, so you could comment out the "e1000e =" section in the let
<samvher>
makefu: but if I understand this is for when I develop my own package right? I simply have a package which I can install easily via pip, but which is not in python27Packages
<makefu>
after activating the userEnv you should be able to run it
<samvher>
makefu: thanks, I will have a look at that. I'm still curious though, do you know why it doesn't find the libraries now? Because I am in a nix-shell with gcc available so I would expect the libraries to be available as well, certainly if the LD_LIBRARY_PATH is set
<niksnut>
shlevy: pong
<goibhniu>
samvher: maybe you also need to set LIBRARY_PATH?
<makefu>
combining both will be what you are looking for then :)
<noam>
functionArgs is what i wanted, thanks
<noam>
not sure what trace does
<noam>
can you also see docs of functions from the repl?
ioo has joined #nixos
<gchristensen>
using nix-shell + bundix + bundlerEnv, when I put the bundlerEnv in to the buildInputs of a shell.nix, and the bundlerEnv is based on a Gemfile with `gemspec` in it, I can run `rspec` but it says "There was an error parsing `Gemfile`: There are no gemspecs at /nix/store/0071zdad20ags7hfkpsc5dbnr7mpl0zk-gemfile-and-lockfile. Bundler cannot continue." has anyone seen this or dealt with it before?
<Isorkin>
Hi. how t- build with 32 bit mode? - error - zm2.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in
<makefu>
noam: the nix pills are one of the most complete tutorials regarding how nix works
<noam>
i'll give it a read, thanks
thc202 has joined #nixos
<pie_>
anyone remember offhand how to install 32bit graphics drivers in addition to the noral 64bit ones
<Profpatsch>
Hi pie_
<Profpatsch>
pie_: Will you be on Camp++?
<pie_>
oh wait i already have that enabled...
<pie_>
Profpatsch, i hope so but family problems :C
<Profpatsch>
Oh :(
<pie_>
thanks for the reminder though because i almost forgot
<Profpatsch>
hehe
<gchristensen>
using nix-shell + bundix + bundlerEnv, when I put the bundlerEnv in to the buildInputs of a shell.nix, and the bundlerEnv is based on a Gemfile with `gemspec` in it, I can run `rspec` but it says "There was an error parsing `Gemfile`: There are no gemspecs at /nix/store/0071zdad20ags7hfkpsc5dbnr7mpl0zk-gemfile-and-lockfile. Bundler cannot continue." has anyone seen this or dealt with it before?
<gchristensen>
oops, sorry for the double-post
<Profpatsch>
pie_: you were at Congress iirc, right?
<Profpatsch>
Oh, right, ascimoo was also there.
<pie_>
yeah
<jophish>
Shame there's no fetch ipfs
<Profpatsch>
pie_: Next congress will be a bit closer, in Leipzig.
<Profpatsch>
jophish: Would you have to have an ipfs services enabled?
<jophish>
Profpatsch: I suppose so
<Profpatsch>
jophish: afaik you don’t want to go through the http mirror, so you’d need to include an IPFS client into ni
<Profpatsch>
nix
<jophish>
my precise problem at the moment is that I'd like to write a derivation for which the source is on dropbox
<Profpatsch>
jophish: ugh
<jophish>
I don't think I can make a permalink t the file
<jophish>
to*
<jophish>
so I thought I could stick it on ipfs
<Profpatsch>
Dropbox can make public links, yes.
<jophish>
oh?
<Profpatsch>
At least last I looked, over a year ago.
<jophish>
Profpatsch: yeah, I'll do that. Was hoping that I could just stick it on "the permanent web" and forget about it
<pie_>
github is permanent enough?
<jophish>
"house 200.000 soldiers at a time"
<pie_>
>.>
<pie_>
<,<
<Profpatsch>
jophish: DB is the exact opposite of permanent
<jophish>
there are a lot of nix developers!
<LnL>
gchristensen: bundler needs the Gemfile
<jophish>
and measured to the nearest 1000th!
<gchristensen>
LnL: it has the gemfile, but I don't think it can get the gemspec?
<pie_>
Profpatsch, oh god inb4 #nixos takes over camppp :P
<Profpatsch>
So if you can come to Hungarey, it’s been hell of a time last year.
byteflame has joined #nixos
<Profpatsch>
-e
<jophish>
Profpatsch: yeah, but if it was easy to make a permalink to it I'd consider this issue solved for the time being :)
<Profpatsch>
Github is pretty okay for the moment.
<gchristensen>
I "fixed" it by using this: buildInputs = [ "${env}/${env.ruby.gemPath}" env env.ruby ]; shellHook = ''export GEM_HOME="${env}/${env.ruby.gemPath}" '';
kriztw_ is now known as kriztw
<jophish>
Profpatsch: errr, what is "Club-Mate"
<pie_>
Profpatsch, though if you really wanted exposure youd probably the mailing list :P
<pie_>
i wonder how many of us there will be this time, its kinda nice when there arent a huge amount of people
<pie_>
but hey
<pie_>
\o/
<LnL>
gchristensen: not sure, it's been a while since I used bundix
<LnL>
but that line kind of looks familiar :)
<gchristensen>
pie_: forgive me but I hope there are LOTS of people :D
<pie_>
gchristensen, im not really complaining :D
pbogdan has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<socksy_>
hellllp i updated my nixos and now i keep getting "undefined symbol: drmGetDevices2" errors launching slack and firefox
goibhniu has joined #nixos
<socksy_>
(with libGL)
ixxie has quit [(Quit: Lost terminal)]
<socksy_>
ok they are both installed in my user profile not my main one
<socksy_>
but i don't understand why that broke them
<kojiro>
Could someone please test something for me? echo your $PATH as a normal user, then echo your $PATH inside a nix-shell and see if the bash path from /etc/nix/nix.conf build-sandbox-paths is in either of those?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<danbst>
kojiro: nah, it isn't there
peacememories has joined #nixos
<kojiro>
well argh.
<kojiro>
thanks for checking, danbst
<danbst>
kojiro: I lied, it is there
<kojiro>
ooh
<kojiro>
danbst: if you execute bash in a nix-shell, which bash do you get?
<kojiro>
(iow, where is it in the PATH relative to the "real" bash?)
<danbst>
kojiro: I get bash from nix.conf
<danbst>
kojiro: it is actually different from my normal bash
<sphalerite>
Can anyone suggest a graphical file manager with image previews that will not screw stuff up if run outside of its desktop environment? Nautilus doesn't want to open any files, always complaining that no application is known for opening whatever file type, and dolphin has neither icons nor previews for any files
<hyper_ch>
dolphin has preview
<Fare>
Hi. Is there an official guide for NixOS on linode?
<sphalerite>
hyper_ch: "dolphin has neither icons nor previews for any files"
<sphalerite>
I presume this is because I'm not running KDE
<hyper_ch>
no idea
<hyper_ch>
but why wouldn't you want to run kde?
<simpson>
Fare: Not that I know of. I guess you'd use nixos-assimilate or similar?
<sphalerite>
hyper_ch: if I could set all the key bindings to use KDE like I use i3 without some stateful and hard-to-manage GUI config, I'd certainly use KDE. But I don't think I can configure KDE using nix, can I?
<hyper_ch>
sphalerite: can you translate that to english? :)
__Sander__ has quit [(Quit: Konversation terminated!)]
<sphalerite>
hyper_ch: can I configure keybindings in KDE in a way that doesn't involve a load of clicking on stuff, ideally in a nix expression?
<hyper_ch>
how is linode different from other hardware?
<hyper_ch>
sphalerite: no idea :( sorry
<sphalerite>
hyper_ch: same. That's why I'm not using it :p
<thblt>
sphalerite: I can confirm Dolphin shows no icons on Debian/Xmonad. Maybe it's just a missing icons package?
<hyper_ch>
and I even think the keybindings are saved in each programs seperate conf file
<sphalerite>
thblt: KDE is actually installed systemwide for me (I use it for my games user), so I'd guess it's more likely that it's missing some D-Bus service that provides them or something like that
s33se has joined #nixos
phinxy has joined #nixos
<sphalerite>
Fare: Given that the gist is 27 days old and the blog post is almost a year old I'd probably go with the gist. I have no experience whatsoever with linode though and I haven't looked at the contents of the guides
<thblt>
sphalerite: It may be something else. I can assign icons to items, and they persist accross Dolphin launches. It seems unable to find some kind of default set.
Sonarpulse has quit [(Changing host)]
Sonarpulse has joined #nixos
<sphalerite>
thblt: any such default set is in my system profile though, since it works fine on my games user
<niksnut>
also, why use magic when you can use a well-defined standard mechanism
johnsonav has joined #nixos
<shlevy>
It's just jargon :P
<shlevy>
The point is static construction *is* a well-defined standard mechanism
aminechikhaoui has joined #nixos
<sphalerite>
codedmart: nix-build seems to accept --pure, but I don't think it has any effect on it
kojiro has quit [(Remote host closed the connection)]
<LnL>
codedmart: nix-build always uses a pure environment (and a sandbox if you enabled it)
<codedmart>
OK thanks!
<shlevy>
"Thread-safe “magic” statics: Static local variables are initialized in a thread-safe way, removing the need for manual synchronization. Be aware that usage of these variables other than initialization is still not protected. Thread safety can be disabled by using /Zc:threadSafeInit- to avoid a dependency on the CRT." <- from the visual studio release notes, so I know I didn't make the term up :D
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ThatDocsLady has quit [(Ping timeout: 260 seconds)]
ryanartecona has joined #nixos
fnljk has joined #nixos
apeyroux_ has joined #nixos
<apeyroux_>
hello
<thblt>
Is it me, or is indenting with Emacs's 'nix-mode' completely broken? All it does when I try to reindent the whole buffer is a giant inverted staircase. (ie, each line is indented further than the line above it)
Wizek_ has quit [(Ping timeout: 240 seconds)]
simukis has joined #nixos
apeyroux_ has quit [(Remote host closed the connection)]
peacememories has joined #nixos
<dash>
thblt: yes it doesn't try to indent stuff properly at all
katyucha is now known as Guest27028
Guest90430 is now known as katyucha
JagaJaga has quit [(Ping timeout: 260 seconds)]
freusque has quit [(Quit: WeeChat 1.7)]
xadi has quit [(Ping timeout: 246 seconds)]
aminechikhaoui has quit [(Ping timeout: 246 seconds)]
xadi has joined #nixos
taktoa has joined #nixos
sellout- has quit [(Ping timeout: 246 seconds)]
aminechikhaoui has joined #nixos
drakonis has quit [(Remote host closed the connection)]
drets has quit [(Ping timeout: 240 seconds)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
peacememories has joined #nixos
peacememories has quit [(Read error: Connection reset by peer)]
<Mic92>
dtzWill_: do you have your nix expression collection for llvm somewhere?
peacememories has joined #nixos
<Sonarpulse>
has anyone *run* a cross compiled stdenv?
<Sonarpulse>
I think the gcc is broken
aminechikhaoui has quit [(Ping timeout: 240 seconds)]
<Sonarpulse>
I have patch that breaks the gcc build
<Sonarpulse>
but the log sure looks more correct than it did before
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 2 new commits to master: https://git.io/vHovg
<NixOS_GitHub>
nix/master 85e93d7 Eelco Dolstra: Always use the Darwin sandbox...
<NixOS_GitHub>
nix/master c8cc50d Eelco Dolstra: Disable the build user mechanism on all platforms except Linux and OS X
NixOS_GitHub has left #nixos []
nevermind has joined #nixos
<domenkozar>
woot :)
<domenkozar>
I wonder if copumpkin closely watches the darwin sandbox effort
<Dezgeg->
well I do know make-bootstrap-tools-cross.nix works (or used to work)
<goibhniu>
Hi Dezgeg, do you happen to know if it's possible to use qemu-system-arm to boot up an RPi (1) img? ... I get the feeling I might need a special qemu compatible kernel (?)
<domenkozar>
aight :)
<dtz>
Mic92: privately unfortunately, but that's only because I haven't pulled out things that are share-able from the bits for internal things that aren't mine to share
<dtz>
hopefully soon can make it all public, don't like it this way xD
<copumpkin>
thanks though!
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<gchristensen>
please continue keeping it quiet for a bit :)
<gchristensen>
domenkozar, sphalerite ^
<sphalerite>
oops, ok
philipwhite has joined #nixos
k0001_ has quit [(Remote host closed the connection)]
k0001_ has joined #nixos
<philipwhite>
vim user here. I've been wanting to make a nix expression representing my vim config so that I can bring it pretty much anywhere. I know there is a somewhat standard way to do that in nixpkgs, but it doesn't work with packages that aren't in its list. I was thinking that if I could leverage "fetchFromGithub" to somehow pull plugins from github, as well as pathogen, I could have a pretty simple vim dependency manager.
<philipwhite>
So my question is how I could pull repos from github and infect vim with them using pathogen (using nix of course)
mudri has quit [(Ping timeout: 255 seconds)]
<Sonarpulse>
Dezgeg: I know ed for example was being built natively
k0001_ has quit [(Remote host closed the connection)]
k0001_ has joined #nixos
<Sonarpulse>
Dezgeg: I gave you a a review request in the relevant PR
<Dezgeg>
ed doesn't seem to be included in bootstrap tools
<Sonarpulse>
oh
<Sonarpulse>
oops
<Sonarpulse>
err
<Sonarpulse>
I think it's a buildInput dependency of patch
<Sonarpulse>
which is
<Sonarpulse>
(but there is also a separate ed job and I could have been confused)
<Dezgeg>
right but it's dependant on doCheck
<Sonarpulse>
oh
<Sonarpulse>
I guess I fixed that before I fixed the doCheck issue
<Sonarpulse>
because libraries are built out of order
<Sonarpulse>
but it seems like the native compiler is being used too much for a build != host == target build
<Dezgeg>
well if the build system just calls 'gcc' regardless there's not much to do
<Sonarpulse>
err but that isn't the case
Wizek_ has joined #nixos
<Sonarpulse>
with AS AR CC LD etc defined
<Sonarpulse>
it does set them right
k0001_ has quit [(Remote host closed the connection)]
<Sonarpulse>
and there are BUILD_* ones
k0001_ has joined #nixos
Itkovian has joined #nixos
<Sonarpulse>
that can be set to the ones targeting the build platform
<Sonarpulse>
whether or not those are set, *_FOR_BUILD (used internally) are set the same
<Sonarpulse>
internally there is {CC, CC_FOR_BUILD, CC_FOR_TARGET}
<Dezgeg>
but if there's a makefile that just has plain 'gcc' hardcoded
<Dezgeg>
I mean ed is not using autotools
<aristid>
FRidh: i wonder why we can't just set the default SOURCE_DATE_EPOCH to 1980
arianvp2 has joined #nixos
pbogdan has joined #nixos
mizu_no_oto has joined #nixos
ambro718 has joined #nixos
Itkovian has quit [(Read error: Connection reset by peer)]
<Sonarpulse>
Dezgeg: err yeah ed had a broken configure script I needed to hack around IIRC
qknight_ has quit [(Remote host closed the connection)]
marsel has joined #nixos
qknight has joined #nixos
<copumpkin>
niksnut: I've wanted to instrument binary cache downloads to track how fast they are, how many hits/misses we have, etc.
<copumpkin>
is there a good way to do that on client side?
<copumpkin>
(other than parsing textual output :P)
<copumpkin>
I think there's a custom substituter hook but that's another thing I'm unclear about with 1.12
<niksnut>
don't think so
Wizek_ has quit [(Ping timeout: 255 seconds)]
<gchristensen>
on a related note, I think it'd be neat if the cache s3 bucket had GetObjectTorrent enabled for anonymous requests =]
arianvp2 has quit [(Quit: arianvp2)]
k0001_ has quit [(Remote host closed the connection)]
<copumpkin>
why not just make authenticated requests? :P
<copumpkin>
niksnut: I was thinking of NIX_SUBSTITUTERS
k0001_ has joined #nixos
<gchristensen>
copumpkin: I don't have an account able to authenticate with the nix cache? :P
spinus has joined #nixos
arianvp2 has joined #nixos
arianvp2 has quit [(Client Quit)]
ryanartecona has quit [(Quit: ryanartecona)]
petar has quit [(Remote host closed the connection)]
petar has joined #nixos
ryanartecona has joined #nixos
MichaelRaskin has joined #nixos
carlosda1 has joined #nixos
k0001_ has quit [(Remote host closed the connection)]
k0001_ has joined #nixos
toppler has joined #nixos
alx741 has joined #nixos
k0001_ has quit [(Remote host closed the connection)]
k0001_ has joined #nixos
k0001_ has quit [(Remote host closed the connection)]
k0001_ has joined #nixos
erictapen has joined #nixos
<erictapen>
hello everyone, is there a smart way to turn a list of derivations into one single derivation (just all the list elements symlinked in the $out dir)
<taktoa>
buildEnv
<taktoa>
(buildEnv { name = "combined"; paths = [ foo bar baz ]; })
<taktoa>
erictapen: ^
<erictapen>
whaa awesome! thanks
k0001_ has quit [(Remote host closed the connection)]
mudri has joined #nixos
ertes-w has quit [(Ping timeout: 240 seconds)]
k0001_ has joined #nixos
k0001_ has quit [(Remote host closed the connection)]
k0001_ has joined #nixos
Myrl-saki has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 3 new commits to 1.11-maintenance: https://git.io/vHoni
<NixOS_GitHub>
nix/1.11-maintenance 0ca9502 Eelco Dolstra: Disable the build user mechanism on all platforms except Linux and OS X...
<NixOS_GitHub>
nix/1.11-maintenance f534627 Eelco Dolstra: Fix bad cherrypick
<NixOS_GitHub>
nix/1.11-maintenance 8e298e8 Eelco Dolstra: Always use the Darwin sandbox...
NixOS_GitHub has left #nixos []
<philipwhite>
how do I get the sha256 that I need to give `fetchgit`?
ixxie has joined #nixos
<dash>
philipwhite: nix-prefetch-git
<erictapen>
philipwhite: also possible: you can enter a wrong sha256 and get the right one from the error msg...
<philipwhite>
haha, that's clever
hellrazor has quit [(Quit: WeeChat 1.8)]
<erictapen>
at first, I considered that method really hacky, but now I use it all the time. I don't think that it has any security implications compared with nix-prefetch-*
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vHoc5
<NixOS_GitHub>
nixpkgs/staging 7e02516 Frederik Rietdijk: Merge remote-tracking branch 'upstream/master' into HEAD
NixOS_GitHub has left #nixos []
k0001_ has quit [(Remote host closed the connection)]
k0001_ has joined #nixos
snikkers has joined #nixos
<sphalerite>
Is it meant to be possible for nix-store -q --referrers <path> now to output anything, but for nix-store --delete <path> to fail "since it is still alive"?
<Dezgeg>
I think that happens when a running process is using it
thc202 has quit [(Ping timeout: 240 seconds)]
<LnL>
yeah that will also keep paths alive
k0001_ has quit [(Remote host closed the connection)]
<gchristensen>
benley: *watches everyone run away in fear*
<benley>
lol
<sphalerite>
Dezgeg: can that happen without it showing up in any /proc/*/fd/*?
<benley>
This one really isn't so scary, it's just adding the ability to use a non-default font in the grub menus.
<benley>
(which I need because my laptop has a 358dpi screen and the default font is nearly invisible)
<gchristensen>
omg same problem
<benley>
OH BOY have I got a PR for you then :-D
k0001_ has quit [(Remote host closed the connection)]
leat has quit [(Read error: No route to host)]
k0001_ has joined #nixos
<sphalerite>
Same, although I use systemd-boot so this wouldn't help me :p
<dash>
i just taped a magnifying glass on a string to my laptop
<sphalerite>
Based on eyeballing, LGTM. But don't take my word for it
<sphalerite>
hahaha
carlosda1 has quit [(Ping timeout: 260 seconds)]
<benley>
I think I can't use systemd-boot quite yet because I have /boot in a luks-encrypted zfs
<benley>
(because I am crazy, I guess)
boomshroom has joined #nixos
<boomshroom>
Hello!
<sphalerite>
benley: Why would you encrypt it?
<sphalerite>
boomshroom: hi!
<benley>
I figured if I'm doing full-disk encryption I might as well encrypt as much as possible
<benley>
Eventually I would like set up secure boot (trusted boot? one of those fancy UEFI and TPM things) to make it impossible to tamper with the bootloader
<sphalerite>
Where does grub itself live?
<benley>
grub itself lives outside of the encrypted volume.
<benley>
so that's the remaining weak link
<boomshroom>
Does anyone here have experience building freestanding cross compilers? This is for my occasional dabblings in OSDev.
<benley>
I'm not super paranoid, I just want computers to be more secure in general
<sphalerite>
boomshroom: I've managed to get cross-compilers built, I presume as it's for OSDev you won't need a libc?
<benley>
for situations like border crossings where customs agents love to poke through your shit out of your sight, etc
<sphalerite>
benley: would be nice if that were actually possible with powerful modern hardware :/
<benley>
I think it is possible!
<benley>
ChromeOS does it quite effectively
<dash>
sphalerite: all it takes is several billion dollars and an army to protect your fab
<boomshroom>
sphalerite: No, but the wiki does recommend building libgcc.
<benley>
It's nearly impossible to fully protect against someone with physical access to the hardware, but you can make life harder for them. And be more resistant to nastyware.
<sphalerite>
benley: But there are nonfree blobs living in the initialisation code for most hardware, which is a very nasty place to have code you can't trust
<benley>
Right, you do have to implicitly trust the manufacturer of your devices.
<benley>
I have no idea how to even begin addressing that part.
<boomshroom>
I'm also interested in building similar compilers for other architectures like RISC-V and ARM.
<sphalerite>
benley: I'm not saying that there *is* a working backdoor in all systems with the ME, but there could be and there's no way of verifying it
<benley>
right. That's a slightly different topic, though still under the trusting trust umbrella
<sphalerite>
boomshroom: I don't know if libgcc was included in what I built but I managed to get an SH-3 compiler built with nix, and I suspect I'm the only one ever to have tried doing so
<sphalerite>
So your chances are probably pretty good
<dash>
sphalerite, benley: even that's a distraction, imagine this scenario
<benley>
court orders, attackers with guns and physical coercion, etc etc yes
<dash>
nah
<sphalerite>
Just occurred to me that a RAM module could be malicious D:
<benley>
fun fact: USB-C cables have firmware blobs in them
carlosda1 has joined #nixos
<dash>
i was gonna say: one of the new AVX instructions that takes two 256-bit operands could switch the procesor to supervisor mode on the right bit combinations
<benley>
hahaha what the heck?
<dash>
in other words, a 1024-bit backdoor
<dash>
how would you be sure it's not there?-)
<benley>
I can't be, of course
<sphalerite>
come on, that's only 179769313486231590772930519078902473361797697894230657273430081157732675805500963132708477322407536021120113879871393357658789768814416622492847430639474124377767893424865485276302219601246094119453082952085005768838150682342462881473913110540827237163350510684586298239947245938479716304835356329624224137216 possible combinations
<benley>
I'm interested in defending against scenarios like leaving my laptop on a table at a conference meeting and someone messes with it
luto__ is now known as luto
<dash>
benley: yeah i have seen people do that around their coworkers, not good
<dash>
benley: you can end up with interesting stuff added to your browser's user.css
<sphalerite>
If I leave my laptop on a table at a conference meeting I'd also be scared of it simply getting stolen
<dash>
like rotating all text by 0.1deg or something
<benley>
not against like NSA or state-level actors, I can't win that game. Just somewhat plausible real world stuff.
<benley>
sphalerite: heh yes :)
<pbogdan>
benley: gchristensen: you probably know but there is also boot.loader.grub.gfxmodeEfi to change grub screen's resolution
<pbogdan>
boot.earlyVconsoleSetup is handy too on hidpi display
<gchristensen>
pbogdan: I don't know :P
<benley>
yup yup :)
<gchristensen>
I just squint and avoid looking at it as much as possible
<benley>
I could change the grub resolution to 1024x768 but it's ugly :-P
thc202 has joined #nixos
leat has joined #nixos
erictapen has joined #nixos
Avery[m] has left #nixos ["User left"]
philipwhite has quit [(Ping timeout: 260 seconds)]
ixxie has quit [(Ping timeout: 246 seconds)]
ixxie has joined #nixos
Itkovian has joined #nixos
DutchWolfie has joined #nixos
DutchWolfie has quit [(Changing host)]
DutchWolfie has joined #nixos
Itkovian has quit [(Read error: Connection reset by peer)]
kojiro has joined #nixos
k0001_ has quit [(Remote host closed the connection)]
<boomshroom>
How do I access a specific gcc version to make into a cross compiler?
<boomshroom>
Sonarpulse: Thank you. I'm doing this as an overlay. What's the difference between final and static?
<Sonarpulse>
static has no libc
<Sonarpulse>
builds libc
<Sonarpulse>
final includes more libs
<Sonarpulse>
and is built with the libc in hand
<Sonarpulse>
that thread sort of explains it
<Sonarpulse>
it's gross
<boomshroom>
Sounds like static is what I want.
<Sonarpulse>
perhaps
<Sonarpulse>
doing os dev or something?
<boomshroom>
Yes, occasionally.
<Sonarpulse>
nice
<Sonarpulse>
I true to do that all in Rust :D but to each their own
<kojiro>
I need to apply a patch to gnupg 2.1.21 and rebuild it. Is there a blog post or document on how to do this? I guess I should use overrideAttrs, but this is my first time attempting this.
<kojiro>
(first time doing it in nixpkg, that is)
<Sonarpulse>
kojiro: yes
<Sonarpulse>
I haven't used overrideAttrs
<Sonarpulse>
but it does work something like that
<boomshroom>
I would be using Rust if LLVM supported RISC-V, until then I plan to be playing with bizare things like Nim while waiting for LLVM to support RISC-V or Jai to be released.
<Sonarpulse>
boomshroom: good answer!
<Sonarpulse>
check out the cross compiling section of the manual too
<Sonarpulse>
I've recently overhauled it a lot
<boomshroom>
It doesn't really make clear whether it's talking about compiling packages to run on other systems or building compilers that target other systems.
<Sonarpulse>
boomshroom: good to know
<Sonarpulse>
the trick is buildPackages
<Sonarpulse>
foo
<Sonarpulse>
has build =x, host = target = y
<Sonarpulse>
buildPackages.foo
<Sonarpulse>
build = host =x, target = y
<Sonarpulse>
see pkgs/stdenv/cross/default.nix in nixpkgs
<Sonarpulse>
(the last section will walk through all the code basically to that point
<boomshroom>
I don't think many packages will run on i686-elf.
<copumpkin>
niksnut: any thoughts on future viability of NIX_SUBSTITUTERS?
<copumpkin>
oh, I guess it's gone already in 1.12 :)
<copumpkin>
so that's that
<Sonarpulse>
boomshroom: hmm?
<Sonarpulse>
where did you get that?
<drakonis>
jai?
<drakonis>
oh its by jon blow
<drakonis>
video games ey?
<Sonarpulse>
the fast one
<boomshroom>
i686-elf, has no c standard library and makes sure I don't accidentally use it.
<gchristensen>
drakonis: please work to be more vigilent about being nice
<drakonis>
aight
<boomshroom>
drakonis: I completely agree with you, it's just not complete enough to be used for my purposes. I would vastly prefer using llvm than trying to build separate compilers.
<drakonis>
also i'm not being rude right now
<drakonis>
llvm is getting quite a lot of backing and more languages are adopting llvm
Myrl-saki has joined #nixos
<boomshroom>
I've played a bit with compiler development with LLVM and it does have a very nice api. Sadly most bindings are just thin wrappers an unidomatic, or incomplete.
<drakonis>
on the other hand you have clang
<drakonis>
soon flang
<drakonis>
there's going to be compiler wars soon isn't it
<boomshroom>
C is nice, but it's a bit too archaic for a personal project. I am willing to use it if I have to, but not on my own time.
<Sonarpulse>
flang?
<drakonis>
fortran instead
<kojiro>
D?
<Sonarpulse>
oh hah
<gchristensen>
Intel already won fortran, with ifort :)
<dash>
pity Fortress never caught on
<drakonis>
nvidia's pushing flang into the tree
Itkovian has joined #nixos
<drakonis>
at least working on it
<boomshroom>
D looks nice, but the gcc backend seems to be neglected. Though I recently heard something about upstreaming it.
<drakonis>
they should've called D's compiler dlang
<kojiro>
heh
<boomshroom>
I have been able to get D code running in RISC-V.
erictapen has quit [(Remote host closed the connection)]
DutchWolfie has quit [(Quit: Konversation terminated!)]
pbogdan has joined #nixos
<kojiro>
What did they call it? Phobos or something? It's been a long time since I played with Dlang
<drakonis>
its dmd
erictapen has joined #nixos
boomshroom is now known as boomshroom-away
<drakonis>
calypso is the clang interoperability fork
<kojiro>
If I got to pick what language I got paid to work with, it'd be FP, not C-like anyway
<kojiro>
Probably Idris, because I want to learn more about that.
<benley>
getting paid to write Idris sounds like a pretty sweet gig.
<drakonis>
the d-clang fork
<kojiro>
benley: yeah, fantasies are nice to have :)
<benley>
hey I currently get paid to write erlang and rust, it's not totally impossible
mudri has joined #nixos
<benley>
(in reality I'm mostly dealing with golang and bash recently, but ...)
<kojiro>
benley: heh, I am a crack bash and php programmer. Fortunately, I do not have to write PHP for work anymore, and I do get to do a bit of Python, but I would really like to do more FP.
<benley>
I have performed more bash voodoo than I care to admit too :-P
<kojiro>
I waffle between wanting to use a really really good language and wishing more developers would get good enough at the shell that they don't make terrible mistakes :)
Intensity has joined #nixos
<kojiro>
heh, some day bash will be the next compile target
<NixOS_GitHub>
[nixpkgs] dtulig opened pull request #26430: bind: add cfg options for listen-on and listen-on-v6. (master...bind-cfg-listen) https://git.io/vHoz2
NixOS_GitHub has left #nixos []
<benley>
holy crap is that idris-bash compiler fo rreal?
<benley>
*for real
<kojiro>
guess it depends on your definition of "real"
k0001_ has quit [(Remote host closed the connection)]
k0001_ has joined #nixos
<jophish>
benley: I've interviewed the guy who wrote it, he said it wasn't very performant (the generated code that is)
<gchristensen>
is bash _ever_ performant?
<boomshroom-away>
I have been curious if it's possible to write a kernel in pure FP.
<jophish>
I've got to go now, if anyone's interested in a nix+Haskell+Hardware job, email me at joe@myrtlesoftware.com :)
<MichaelRaskin>
Depends on your reference point, I guess you can make it as fast as Ruby
mizu_no_oto has joined #nixos
acarrico has quit [(Ping timeout: 240 seconds)]
Fare has joined #nixos
<dash>
boomshroom-away: It is.
<dash>
boomshroom-away: Depends on what you mean by kernel, I guess.
<niksnut>
copumpkin: yeah it's gone
<copumpkin>
niksnut: so I'm thinking that if I want to keep track of substitutes, I need to run a proxy, and HTTPS MITM is a pita so I guess I'd http to proxy, then https from there
<copumpkin>
niksnut: or possibly make a PR with some sort of tracking mechanism to nix
<copumpkin>
in time for 1.12 :)
<niksnut>
once upon a time, the download-using-manifests substituter logged all downloads to a file in /nix/var/log
<copumpkin>
if I added an option for that to 1.12 would you be receptive to that?
<copumpkin>
probably just want to log what, and a few timings
<niksnut>
well
<niksnut>
it seems a bit ad hoc
<copumpkin>
it does :)
<niksnut>
there are a zillion things somebody might want to log
<Sonarpulse>
rapid release!
<Sonarpulse>
no need to shoe horn for 1.12 or wait a year!
mog has quit [(Ping timeout: 240 seconds)]
<pie__>
<benley> holy crap is that idris-bash compiler fo rreal?
<pie__>
WAIT WHAT
<pie__>
(funny thing i was looking for bash-XXX compilers the other day
<copumpkin>
niksnut: so perhaps just a generic callback when downloads start and end? :)
<pie__>
also oh, i misunderstood, i thought it was bash -> idris
<gchristensen>
I believe it includes the entire closure of each store path specified
<copumpkin>
cool
ixxie has quit [(Ping timeout: 246 seconds)]
bennofs has joined #nixos
k0001_ has quit [(Remote host closed the connection)]
k0001_ has joined #nixos
Tipping_Fedora has joined #nixos
phinxy has quit [(Quit: Leaving)]
Guest27577 is now known as grahamc
grahamc has quit [(Changing host)]
grahamc has joined #nixos
grahamc has quit [(Changing host)]
grahamc has joined #nixos
bennofs has quit [(Ping timeout: 246 seconds)]
<Sovereign_Bleak>
Okay I’m pretty sure this is a NixOS issue.
<Sovereign_Bleak>
I can’t set pinentry program within gpg-agent.conf
jgertm has quit [(Quit: WeeChat 1.7.1)]
<Sovereign_Bleak>
If I do it complains about no ioctl.
<Sovereign_Bleak>
If I delete gpg-agent.conf, gpg will sometimes show me a pinentry-qt dialog but sometimes show me a curses one.
jgertm has joined #nixos
<Sovereign_Bleak>
I’ve tried to set it to /run/current-system/sw/bin/pinentry-qt to no avail
<kojiro>
huh, Sovereign_Bleak, I use gnupg all the time and don't have this problem...
<kojiro>
but I don't set a pinentry. My pinentry is named "pinentry"
<Sovereign_Bleak>
kojiro: Are you using a full fledged DE?
<kojiro>
yes, atm
<Sovereign_Bleak>
Pretty sure that is the crux of the issue.
<kojiro>
I can try this out on a console
<kojiro>
Sovereign_Bleak: you may be on to something here
orivej has quit [(Quit: No Ping reply in 180 seconds.)]
<kojiro>
pinentry is a symlink to /nix/store/blah/bin/pinentry-gtk-2
<Sovereign_Bleak>
For once in my life haha.
<LnL>
copumpkin: yeah it pushes everything
orivej has joined #nixos
<kojiro>
Sovereign_Bleak: do you have a command named "pinentry" on your PATH, and if so, what is it a symlink to?
<Sovereign_Bleak>
One moment.
pbogdan has quit [(Ping timeout: 240 seconds)]
<Sovereign_Bleak>
Symlinks to store blah blah/bin/pinentry
ryanartecona has quit [(Quit: ryanartecona)]
<kojiro>
Sovereign_Bleak: how did you get that? nix-env -i pinentry?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Profpatsch opened pull request #26433: Trace val seq n (master...traceValSeqN) https://git.io/vHo6J
NixOS_GitHub has left #nixos []
<Sovereign_Bleak>
kojiro: I don’t nix-env -i anything. Everything goes into my configuration.nix
marsel has quit [(Ping timeout: 260 seconds)]
jgedarovich has joined #nixos
tg has quit [(Read error: Connection reset by peer)]
mog has joined #nixos
<kojiro>
ok
<Sovereign_Bleak>
I just don’t understand why specifying the exact path of my desired pinentry results in complaints of “problem with the agent: no pinentry”
boomshroom-away is now known as boomshroom
<Sovereign_Bleak>
Ugh, aggravating.
<boomshroom>
dash: Sorry, was mowing the lawn. By kernel, I mean OS kernel.
<kojiro>
Sovereign_Bleak: yeah, I have the same experience. Setting pinentry in .gnupg/gpg-agent.conf breaks everything
Mateon3 has joined #nixos
<kojiro>
Sovereign_Bleak: have you turned up all the logging?
Fare has quit [(Ping timeout: 240 seconds)]
<Sovereign_Bleak>
kojiro: Glad I’m not the only one! :-) Forgive me I’m probably the least knowledgeable of the Nixxers here. How would I do that? Journalctl?
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 is now known as Mateon1
tg has joined #nixos
<kojiro>
Sovereign_Bleak: no, it's a gpg-agent setting. sec
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<kojiro>
debug-level advanced
mkoenig has quit [(Remote host closed the connection)]
<kojiro>
Sovereign_Bleak: you may need to look in the manpage - you'll want to set a file for the output, too
afics has quit [(Ping timeout: 246 seconds)]
<kojiro>
there's something in there specific to debugging pinentry
<Sovereign_Bleak>
kojiro: Got it. Thank you.
<kojiro>
Sovereign_Bleak: huh, actually... I just got it working with pinentry-tty over here
Wizek_ has joined #nixos
<dash>
boomshroom: the two things I know of are Mirage and Urbit
<dash>
the former is not a pure-functional language and the latter is on a VM, and doesn't do device drivers
<dash>
but both could be extended in that direction I bet
<kojiro>
Sovereign_Bleak: although I use a yubikey, so my experience may differ a little, I think my pinentry is set correctly now
<kojiro>
Sovereign_Bleak: and it's not gtk, thank you for making me change that :)
<kojiro>
Sovereign_Bleak: may I ask what your gpg-agent.conf looks like on the pinentry line?
Fare has joined #nixos
<Sovereign_Bleak>
kojiro: If I want a GUI dialog at all, the whole .conf must be non-existent. But what I have tried was both pinentry-program pinentry-qt and pinentry-grk-2 with preceding /run/current/system/sw/bin/ paths.
<kojiro>
Sovereign_Bleak: can you run those programs directly?
acarrico has joined #nixos
byteflame has quit [(Ping timeout: 240 seconds)]
<Sovereign_Bleak>
kojiro: Yes, no problem. I have some juicy logs for you, one sec.
<boomshroom>
dash: Urbit seems to be a hosted system and I can't find anything in Mirage relating to bootup, paging etc.
<kojiro>
Sovereign_Bleak: it's strange that it says "unknown option <Pinentry>"
<kojiro>
you definitely have "pinentry-program" and not "Pinentry-program" or "Pinentry" in there?
<Sovereign_Bleak>
The first half is gpg-agent displaying a prompt to me when I run the command manually. The second half are the inappropriate ioctl errors I’m getting from isync trying the same command.
<kojiro>
Sovereign_Bleak: oh, what version of gnupg are you on?
<boomshroom>
Memory management seems to be the biggest problem that I can think of in regards to a pure functional kernel.
<Sovereign_Bleak>
kojiro: 2.1
<kojiro>
ok
<dash>
boomshroom: well yeah, mirage is a unikernel so it doesn't really do either
<kojiro>
for the record, I have pinentry 0.9.7 as well
<kojiro>
and it works
<boomshroom>
dash: That said, I still couldn't find the boot process either, which I've never seen done without assembly.
<kojiro>
Sovereign_Bleak: ok, this is beyond me - it's clearly picking up your pinentry because we see the OK Pleased to meet you
<Sovereign_Bleak>
The second gist is with a pinentry-program line
<kojiro>
Sovereign_Bleak: huh, it doesn't believe that command exists. Is it a permissions issue?
<kojiro>
/run/current-system/sw/bin/pinentry-qt does not exist
<Sovereign_Bleak>
But it actually does that’s what’s crazy.
<kojiro>
I assume it does, for you
<kojiro>
Sovereign_Bleak: I wonder if strace --trace=open can help here
<kojiro>
not open...hmm
<clever>
execve
<kojiro>
yeah
mellowmaroon has joined #nixos
<kojiro>
Sovereign_Bleak: I'm going to have to go soon
<kojiro>
Good luck :/
<Sovereign_Bleak>
kojiro: Thank you very much for helping me debug. :-)
<mellowmaroon>
So, should I post my problem with the Android Studio package on the Nix github?
aminechikhaoui has quit [(Ping timeout: 255 seconds)]
<sellout->
Is there a Web browser in Nix on darwin? (Other than like eww, etc.)
<mellowmaroon>
sellout-: you mean only command-line?
<ogleb>
I have am developing on a python application with a C extension that I need to link against a library in the nix store, what is the best way to feed the library/include dirs?
<sellout->
mellowmaroon: I mean I’d like a GUI one. Thought Chrome or FF might be in there, but haven’t seen them.
<mellowmaroon>
ogleb: You might want to try looking up nix-shell, you can specify environments per-project
<mellowmaroon>
sellout-: I see. Chromium and Firefox are there, let me look up their package names for configuration.nix
<sellout->
mellowmaroon: I usually search for stuff on hydra. Is there a better way?
<sellout->
I was probably searching for “chrome”, which is one problem.
<ogleb>
mellowmaroon: I currently have a default.nix that specifies my dependencies, I am just not sure how to then propagate those paths to distutils to compile the extension
<mellowmaroon>
sellout-: I use a program called Nox
<mellowmaroon>
ogleb: Yeah, I don't really have much experience with them, I only know about the feature. Sorry :(
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<sellout->
mellowmaroon: Ah, cool. I’ll add that.
<mellowmaroon>
sellout-: I think there also might be a web interface, not 100% sure though
<ogleb>
mellowmaroon : thats alright. Anybody else have an idea how to do it?
Fare has quit [(Ping timeout: 240 seconds)]
<mellowmaroon>
sellout-: anyway, you can install them with `nix-env -iA nixos.firefox` or `nix-env -iA nixos.chromium`
<sellout->
So, re: my earlier question – nox is great, but both chromium and firefox seem to be linux-specific.
<boomshroom>
clever: I see you're importing a new nixpkgs with an additional argument. Can I still do that in an overlay which by default provides self and super?
<clever>
boomshroom: you only get a cross-compiler if you set the crossSystem when importing nixpkgs
<clever>
so it wont directly work as an overlay
<boomshroom>
clever: There's no way to build a cross compiler without creating an entirely package environment?
<clever>
boomshroom: you would need to look at how crossSystem gets passed to gccCrossStageStatic, and then manualy do those calls in your overlay
<clever>
boomshroom: all-packages.nix has that code
Itkovian_ has joined #nixos
<boomshroom>
clever: It seems to invoke nixpkgFun to generate a new pkgs environment.
Itkovian has quit [(Ping timeout: 240 seconds)]
<clever>
that seems new
<clever>
might be able to do that in an overlay then
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<Sonarpulse>
then it's pretty easy to fake a *StageStatic
sophiag has joined #nixos
markus1209 has quit [(Ping timeout: 268 seconds)]
markus1219 has quit [(Ping timeout: 246 seconds)]
astsmtl has quit [(Ping timeout: 240 seconds)]
hellrazor has joined #nixos
mizu_no_oto has joined #nixos
digitus has quit [(Quit: digitus)]
<boomshroom>
l now have an i686-elf compiler. Now I just need gcc7 in order build a riscv64-elf compiler.
astsmtl has joined #nixos
astsmtl has quit [(Changing host)]
astsmtl has joined #nixos
<Sonarpulse>
boomshroom: I'm going to merge that PR now
<Sonarpulse>
err once I rebase
<Sonarpulse>
and then tests pass
<Sonarpulse>
so < 30 minutes depending on travis backlog
<Sonarpulse>
boomshroom: you on nixos-unstable?
erasmas has quit [(Quit: leaving)]
<boomshroom>
Sonarpulse: that would be nice. Having Github actually show me the pull request would also be nice.
<Sonarpulse>
oh
<Sonarpulse>
github is lagging for me too
<boomshroom>
My user profile is on unstable. The system itself is on stable.
<Sonarpulse>
basically in binutils and gcc I get rid of that bullshit `cross` argument and just use the three plaforms
<boomshroom>
I currently have difficulty updating because I'm using a change I made that hasn't been upstreamed.
<Sonarpulse>
boomshroom: oh i can't even push github is really screwed
<Sonarpulse>
boomshroom: well i got you covered
<Sonarpulse>
I am going to rebase the commit on top of nixos-unstable
<Sonarpulse>
and then merge
<Sonarpulse>
so you and I can, instead of using the merge commit, use the original commit
<Sonarpulse>
and basically still be on nixos-unstable
drakonis has quit [(Remote host closed the connection)]
drakonis has joined #nixos
mkoenig has joined #nixos
alx741 has quit [(Ping timeout: 246 seconds)]
justin_ has quit [(Quit: Leaving)]
<boomshroom>
What does "warning: name collision in input Nix expressions, skipping ‘/home/[REDACTED]/.nix-defexpr/channels_root/nixos’" mean
<Sonarpulse>
boomshroom: no idea sounds annoying
<Sonarpulse>
one guess
<Sonarpulse>
nix-channels --list
<clever>
boomshroom: it means you added a nixos channel to your user, and not root
<clever>
or rather, you added it to both your user, and root
<Sonarpulse>
makes sense
<clever>
so you now have 2 nixos channels
<boomshroom>
I want my user to be on unstable, but critical system utilities to be on the latest release.
<clever>
then call the channel on your user nixpkgs or unstable
sellout- has quit [(Quit: Leaving.)]
<boomshroom>
That got rid of the warning. Thank you.
vaibhavsagar has joined #nixos
Rotaerk has joined #nixos
<boomshroom>
Now that I can actually take a look at the PR, it seems like it's mostly just renaming cross to targetPlatform and a few cases of stdenv to hostPlatform.
acarrico has joined #nixos
<Sonarpulse>
boomshroom: yeah
<Sonarpulse>
the PR itself is adds no functionality
<Sonarpulse>
but it means less boilerplate to worry about in your overlay
<Sonarpulse>
if you copy gccCrossStageStatic
<Sonarpulse>
but make it use gcc 7
<boomshroom>
And it's a prerequisite to the other one.
<Sonarpulse>
yeah
<Sonarpulse>
even the other one doesn't matter though for you if you need neither cc-wrapper or downstream packages
<Sonarpulse>
but indirectly I hope my recenty slew of changes will bring more people to do cross things of all sorts with nix, which I hope will help indirectly :)
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
sellout- has joined #nixos
<boomshroom>
Fun fact: The "Canadian Cross" comes from the 3 political parties in Canada, despite the fact that there currently 4 main parties.
<Sonarpulse>
oh!
<Sonarpulse>
I knew it was canadian
<Sonarpulse>
but I didn't know what
<Sonarpulse>
what's the 4th? Not Green in BC?
<boomshroom>
The main 3 are the Conservatives, Liberals (currently in power), and NDP, with Greens slowly becoming relevant. BC is lacking the conservatives.
<boomshroom>
In BC, the NDPs and Greens are actually collaborating and taking power despite the Liberals having more seats than either.
vaibhavsagar has quit [(Ping timeout: 255 seconds)]