<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/vHDGs
<NixOS_GitHub>
nixpkgs/master fb26e5c Michael Weiss: androidenv: Update all packages using fetch.sh...
NixOS_GitHub has left #nixos []
<gchristensen>
hmm -small updates regularly :) it'd be cool to graph this
jsgrant_ has quit [(Ping timeout: 255 seconds)]
taktoa has quit [(Remote host closed the connection)]
ris has quit [(Ping timeout: 260 seconds)]
vaibhavsagar has joined #nixos
Ralith_ has quit [(Ping timeout: 240 seconds)]
orivej has quit [(Ping timeout: 255 seconds)]
orivej has joined #nixos
<drakonis>
how do i update my packages?
<drakonis>
unstable still installs outdated versions of packages
<drakonis>
despote the channel already updatingg
lambdamu has joined #nixos
<spinus>
drakonis: how did you install the package in the first place?
<spinus>
and how you updating?
<spinus>
nixos config, nix-env, nix-shell?
<drakonis>
nix-env
<drakonis>
i'd actually like to get the latest version of a package but installing from nix-env doesn't get the latest release from the channel
lambdamu_ has quit [(Ping timeout: 255 seconds)]
<spinus>
how you upgrade?
<spinus>
nix-env -u ?
vaibhavsagar has quit [(Ping timeout: 255 seconds)]
<spinus>
I found that when you do nix-env -u it doesn't upgrade packages which version in the name didn't change
<spinus>
so maybe that's your case
ison111 has joined #nixos
<drakonis>
looks like it didn't upgrade
<drakonis>
still using an outdated version
<drakonis>
neat
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
zeus_ has quit [(Ping timeout: 255 seconds)]
zeus_ has joined #nixos
ertes has joined #nixos
zeus__ has joined #nixos
s33se has joined #nixos
zeus_ has quit [(Ping timeout: 246 seconds)]
Supersonic112 has quit [(Ping timeout: 260 seconds)]
s33se_ has quit [(Ping timeout: 240 seconds)]
Supersonic112 has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
byteflame has joined #nixos
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
byteflame has quit [(Ping timeout: 246 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
zeus__ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
boomshroom has joined #nixos
<boomshroom>
Hello!
<boomshroom>
I tried asking yesterday but I never got an answer. How can I access gcc7 from within a nix expression?
zeus_ has quit [(Ping timeout: 246 seconds)]
<spinus>
boomshroom: pkgs.gcc7 ?
<spinus>
I don't see gcc7, I see gcc5 and 6, maybe there is no gcc7
<boomshroom>
error: attribute ‘gcc7’ missing
<boomshroom>
pkgs.gcc6 works, but doesn't support a desired target.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/vHDCC
<NixOS_GitHub>
nixpkgs/master d17bcfc Michael Weiss: androidenv: Manually update missing packages...
NixOS_GitHub has left #nixos []
<spinus>
so looks like there is no gcc7 yet
Guest58084 has joined #nixos
eacameron has joined #nixos
<Dezgeg>
it is in master at least
byteflame has joined #nixos
isHavvy has joined #nixos
Havvy has quit [(Ping timeout: 240 seconds)]
svij3 has quit [(Ping timeout: 255 seconds)]
byteflame has quit [(Ping timeout: 240 seconds)]
johnramsden has joined #nixos
<johnramsden>
I have a question for any c programmers. When developing on nixos, what is the canonical way to include system headers? I want to be able to access certain headers from an IDE and it seems some are available and some are not. Do you have to use a nix-shell? Or is there an other way like how '/run/current-system/sw/bin' can be used to access binaries?
<nixy>
boomshroom: You mean using unstable entirely? You can cherry pick packages from unstable and mostly use the point releases
<boomshroom>
nixy: the thing is I want the latest and greatest for most non-critical, user, packages, but I don't want critical, early boot, processes to fail.
<nixy>
boomshroom: I mean you could do things the other way then, using mainly unstable and cherry picking specific stable pacakges
<boomshroom>
How would I do that within configuration.nix?
<nixy>
If you have a nixos-unstable channel which you can create with `nix-channel` you can then use that in your config. Give me a minute and I can get an example
<boomshroom>
Looking at my configuration.nix, I don't have that much that I *must* have stable.
<boomshroom>
I have my user on a different channel than the system and I think it's making it more complex than necessary.
<nixy>
That is pretty much a minimal example of how you would cherry pick stuff
<nixy>
You can then override packages to have them refer to packages in unstable
simukis has quit [(Ping timeout: 260 seconds)]
<boomshroom>
I was using ArchLinux and didn't have any stability issues, so I'm probably being overly paranoid.
<nixy>
This can cause you to have to compile way more packages as there will be less caching outside the point releases
<nixy>
I mean yeah, probably a little. You can also rollback pretty easily if anything does go wrong. It's why Nix is great ;)
<boomshroom>
If the packages have to be compiled locally, can it apply system specific optimizations and use instructions not available on the lowest common denominator.
<nixy>
I don't know. In theory it seems like it would be able to similar to Gentoo, but I have never looked into that.
<nixy>
I mostly run NixOS on cheap $5 servers without a lot of CPU cycles to spare
<nixy>
I believe that would force _everything_ to be compiled though
svij3 has joined #nixos
<boomshroom>
Switching to unstable and enabling auto updates. #LivingOnTheEdge
darlan has joined #nixos
<nixy>
A bold step into a brave new world!
boomshroom has quit [(Ping timeout: 260 seconds)]
pxc has joined #nixos
boomshroom has joined #nixos
<boomshroom>
I got booted during the switch. (from the channel, I didn't have to reboot the computer)
<boomshroom>
Low and behold: now that my computer is all on unstable, gcc7 is now available.
danl1240 has quit [(Quit: My iMac has gone to sleep. ZZZzzz…)]
Nobabs27 has quit [(Quit: Leaving)]
schoppenhauer has quit [(Ping timeout: 240 seconds)]
schoppenhauer has joined #nixos
pxc has quit [(Quit: WeeChat 1.8)]
svij3 has quit [(Ping timeout: 260 seconds)]
pxc has joined #nixos
pxc has quit [(Client Quit)]
pxc has joined #nixos
endformationage has quit [(Quit: WeeChat 1.7)]
MinceR has quit [(Ping timeout: 268 seconds)]
MinceR has joined #nixos
<boomshroom>
I was able to access gcc7, but now it's complaining that attribute langCC is missing. Looking at the derivation for gcc, it's provided as an argument, but not stored in the derivation.
<spinus>
boomshroom: I'm using unstable for almost 2 years on desktop, no major issues
<boomshroom>
spinus: That's good to hear. Do you know anything about the langCC attribute of gcc7?
spinus has quit [(Ping timeout: 260 seconds)]
jsgrant_ has joined #nixos
Rotaerk has joined #nixos
hellrazo1 has joined #nixos
pxc has quit [(Quit: WeeChat 1.8)]
hellrazor has quit [(Ping timeout: 268 seconds)]
svij3 has joined #nixos
<boomshroom>
Does anyone have experience building cross compilers with specific gcc versions?
indi_ has joined #nixos
byteflame has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
byteflame has quit [(Ping timeout: 240 seconds)]
indi_ has quit [(Ping timeout: 240 seconds)]
svij3 has quit [(Ping timeout: 240 seconds)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
roconnor has quit [(Ping timeout: 246 seconds)]
indi_ has quit [(Ping timeout: 240 seconds)]
<boomshroom>
Anyone?
<nixy>
That is a pretty specific question. It might be better to ask when more people are around. More people tend to be active during the daytime in EST.
<nixy>
You could also try the mailing lists, which might get more visibility
<boomshroom>
nixy: The problem is that I recently got my first job which leaves evenings as the little time I have on my computer. And my evening is eastern midnight.
<dash>
boomshroom: there's also a nixos mailing list
<boomshroom>
dash: I'll check it out.
<nixy>
Trust me I get it lol, I work 10PM-9AM so I am always off from other people
drakonis has quit [(Remote host closed the connection)]
<boomshroom>
nixy: graveyard? Ouch.
RayNbow`TU has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Remote host closed the connection)]
MercurialAlchemi has joined #nixos
<johnramsden>
I have a question for any c programmers. When developing on nixos, what is the canonical way to include system headers? I want to be able to access certain headers from an IDE and it seems some are available and some are not. Do you have to use a nix-shell? Or is there an other way like how '/run/current-system/sw/bin' can be used to access binaries?
<nixy>
How is the $PYTHONPATH variable generated in the package building environment
<nixy>
It seems like it should/is based on all buildInputs with a lib/${python.libPrefix}/site-packages directory, but at the same time that isn't working for me
<nixy>
johnramsden: I am not 100% since I don't do C myself, but I beleive nix-shell is the preferred way here. The headers are available when the packages are in the `-p` array of nix-shell right?
Ralith_ has quit [(Ping timeout: 240 seconds)]
<johnramsden>
nixy: I assume so
<johnramsden>
nixy: How do I use an IDE like that though?
<nixy>
That is a good question. I have always understood that nix-shell is used to create dev environments for python as well, but I never though about IDEs
<nixy>
Methinks if you included the IDE in the nix-shell `-p` array and launch it from the shell it might work?
<nixy>
Again, I will say I haven't done any of this since I don't use C or IDEs so somebody who uses an IDE regularly may have better input
<johnramsden>
Guess ill just install sstem wide. Thanks though
johnramsden has quit [(Quit: Leaving)]
byteflame has joined #nixos
byteflame has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
Ralith_ has joined #nixos
johnramsden has joined #nixos
darlan has quit [(Remote host closed the connection)]
marsel has joined #nixos
UFODivebomb has quit [(Ping timeout: 268 seconds)]
UFODivebomb has joined #nixos
johnramsden has quit [(Remote host closed the connection)]
k2s has joined #nixos
blahdodo has quit [(Remote host closed the connection)]
FRidh has joined #nixos
FRidh has quit [(Client Quit)]
marsel has quit [(Ping timeout: 240 seconds)]
k2s has quit [(Client Quit)]
blahdodo has joined #nixos
johnramsden has joined #nixos
FRidh has joined #nixos
<FRidh>
nixy: during build-time the setupHook of `python` adds indeed all $buildInput/${python.sitePackages} to $PYTHONPATH. However, for the scripts that are wrapped, $PYTHONPATH is generated differently.
<nixy>
In this case I am looking at weecaht which seems to wrap the pogram with `--prefix PYTHONPATH : "$PYTHONPATH"` so shouldn't they be the same in that case?
<nixy>
Hmmm, it seems it gets added to PYTHONPATH in my local darwin build but not on NixOS
<johnramsden>
I don't know if anyone has a better way to approach this, I'm trying to add some files that exist in 'pkgs.zfs' to the system profile so that the header files are accessible to me. Right now I've tried using 'environment.pathsToLink = [ "${pkgs.zfs}/include/libzfs/" ];', which doesn't seem to work for me, I'm not sure if this is the wrong way to use it. What I'm looking for it to do is link the libzfs directory, which contains
<johnramsden>
libzfs.h to '/run//current-system/sw</filename>' but when actually go and look, it's not there. Does anyone know what I might be doing wrong, or a better way to accomplish this?
<c74d>
johnramsden: I think `environment.pathsToLink` takes paths relative to the package, not absolute paths; i.e., try dropping ${pkgs.zfs}
<FRidh>
nixy: with scripts wrapped, I meant scripts wrapped by the function wrapPythonPrograms
<johnramsden>
c74d: How will it know which package to use then?
<c74d>
johnramsden: `environment.pathsToLink` applies to all packages (but most packages aren't going to have a `libzfs` directory)
<c74d>
all packages in `environment.systemPackages`, at least
<johnramsden>
Oh, that's not really what I want them.
<johnramsden>
c74d: Any recommendations of what I should do if I want the header file to be accessible?
<c74d>
I think `environment.pathsToLink = [ "/include/libzfs" ]` should work
<johnramsden>
I'm thinking the best thing to do might just be to make a package and copy the headers to $out.
<johnramsden>
c74d: I don't really wanted to applies every package though, all I want is headers accessible to users.
<c74d>
the headers are already in $out AIUI
<johnramsden>
c74d They are?
<johnramsden>
Why does my IDE not see them?
<c74d>
looking in my own /nix/store, it looks to me like `zfs` has only one output
boomshroom has quit [(Quit: Page closed)]
<johnramsden>
What do you mean output?
<johnramsden>
guess I want them accessible to the current system, not just the nix store
<c74d>
oh, $out is an output, and the default one; others are bin, dev, ...
<c74d>
johnramsden: an IDE (that doesn't know about Nix) wouldn't see them because they're not linked into the system environment (`environment.pathsToLink` controls what's linked in)
<c74d>
to get them into the system environment (AIUI) you will need to set `environment.pathsToLink`
<johnramsden>
c74d: Guess i'll try that
<c74d>
while it theoretically applies to all system packages, in this case the path is specific enough to apply only to ZFS
<johnramsden>
Well, that didn't work anyway.
<johnramsden>
c74d: I tried environment.pathsToLink = [ "include/libzfs" ];
<c74d>
johnramsden: I think the paths need to start with `/`
<thblt>
I'm feeling *just a bit* dumb right now :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #26497: lib-tests: fix test for isStorePath (master...fix-lib-tests) https://git.io/vHDfz
NixOS_GitHub has left #nixos []
<nixy>
Why does nix-env -i git fail? I feel like that shouldn't happen.
m0rphism has joined #nixos
<thblt>
OK, I'm feeling *much more* than a bit dumb here, I skipped the relevant line when browing the errors. The computer wasn't connected to the internet. I'm going back under my rock.
<thblt>
Thanks a lot, nixy, for getting my to re-read nix-env output :)
<nixy>
No problem, I hope its warm and comfy under your rock :)
<thblt>
Btw, from under my rock, I'm kinda happy I've been able to create a usual work environment in NixOS, especially since said environment is full of dark corners. This is my first install of NixOS (and still a test install, main machines are still on Debian), but NixOS is really a pleasure. A hard pleasure at times, but amazing.
<thblt>
*create a usual = create my usual
phinxy has quit [(Read error: Connection reset by peer)]
<inflames>
clever, can you guide me to some stuff to read that will help me understand how to enable the build options for flash that you spoke of?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] knedlsepp opened pull request #26501: Python docs: Add example for overlays (master...add-python-overlay-example) https://git.io/vHDrU
NixOS_GitHub has left #nixos []
<clever>
inflames: which program do you want to enable flash in?
<inflames>
chromium, but I more just want to understand what the hell I am doing :/
<inflames>
I eventually wanna setup a node dev environment with nix-shell
<clever>
inflames: enablePepperFlash has to be set for the chromium package
<clever>
nerdpops: one of the expressions i have in there, is for network booting not-os, with only bootcode.bin on the sdcard
<clever>
so you wouldnt even need nixops, just reboot the pi and its upgraded
<nerdpops>
wow
<clever>
every time it boots, it downloads the latest version
<clever>
and nothing is saved to the hdd, so end-users cant get any malware/breakage to persist
<clever>
it also means you cant corrupt the FS with improper shutdowns
<nerdpops>
will definitely look into that. immutable pi's :D seems like the best way to maintain 20 ticket scanner stations at our events. would be so cool to have it all powered by nixos and pi's
sigmundv_ has quit [(Ping timeout: 246 seconds)]
<clever>
yeah
<nerdpops>
did you wite not-os?
<clever>
yep
<nerdpops>
really appreciate it! all my work is based on other peoples hard work. thank you!
<clever>
your welcome :)
<nixy>
I hadn't heard of not-os. This is really neato
simukis has joined #nixos
inflames has quit [(Ping timeout: 240 seconds)]
gal_bolle has quit [(Quit: Konversation terminated!)]
inflames has joined #nixos
leat has quit [(Ping timeout: 246 seconds)]
zarel has joined #nixos
frogger_ has joined #nixos
<WinterFox[m]>
nixos has the whole system config in one file right?
<clever>
WinterFox[m]: yeah
<WinterFox[m]>
How does that work with things like nginx configs and other stuff?
<WinterFox[m]>
How do you find the right bits in the file with so much in there
<clever>
WinterFox[m]: you are free to use multiple files if you want
<clever>
WinterFox[m]: and in the case of nginx, nixos can generate the config file for you
<jophish>
makefu: I think I've got things working now, thank you very much for sharing that!
<nerdpops>
@clever knowing very little about nix, this might sound like a silly question but... how do I compile not-os?
jekor has joined #nixos
<manveru>
man... getting gitlab updated is quite a task :(
<manveru>
the grpc gem is so stubborn
<jekor>
Is there a way to reference the target nix store directory ($out in installPhase) in postPatch? I have a package that needs the path to the installation directory to be hardcoded into the shared library that's built.
<Dezgeg>
$out is always available
<jekor>
Hah, looks like I was using single quotes.
<jekor>
Thanks.
FRidh has quit [(Read error: Connection reset by peer)]
FRidh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] benley pushed 1 new commit to master: https://git.io/vHDMg
<NixOS_GitHub>
nixpkgs/master 700e22f Benjamin Staffin: nixos: Add support for scalable fonts in Grub menus (#26227)...
NixOS_GitHub has left #nixos []
<gchristensen>
manveru: Oh! I packaged the grpc one!
<gchristensen>
oh oh oh I can maybe even share the code with you ...! one sec. oh man, I am so excited. three months of working on making work more friendly with open source might pay off this instant
<manveru>
i tried like 20 different dependencies :P
<gchristensen>
hehe
<nerdpops>
@clever I'm certain the init file is at the given path
<manveru>
so i think i can finally upgrade the gitlab package, since it's quite old by now
<manveru>
will head for lunch while it's building, thanks again man :D
pie_ has quit [(Changing host)]
pie_ has joined #nixos
AndreasO has quit [(Quit: Found more important stuff than irc!)]
frogger_ has quit [(Remote host closed the connection)]
hotfuzz has quit [(Ping timeout: 246 seconds)]
leat has quit [(Ping timeout: 240 seconds)]
agjacome has joined #nixos
ris has joined #nixos
s33se has joined #nixos
<hodapp>
https://travis-ci.org/NixOS/nixpkgs/jobs/235318966 - can someone with string Darwin-fu guess if adding "++ optionals stdenv.isDarwin [ ApplicationServices ]" is likely to fix this so that I don't have to go dust off my Macbook?
nerdpops has quit [(Quit: Page closed)]
leat has joined #nixos
<hodapp>
lol... dusting off my Macbook won't help either, since I'm still on MacOS 10.9.5 >_>
<LnL>
yep, but there might be some other frameworks that are also required
<hodapp>
but nevermind since I think the Travis build just passed in the time that it took me to see your question
<hodapp>
thank you for the offer though!
eacameron has quit [(Remote host closed the connection)]
<pie_>
nix-shell messes up my shell and i dont have readline editing anymore...
<ij>
Why does it seem that nix compiles my haskell code so much slower?
hiberno_ has joined #nixos
hiberno has quit [(Quit: leaving)]
hiberno_ has quit [(Remote host closed the connection)]
aaron has joined #nixos
aaron is now known as Guest88859
<Guest88859>
anyone have any good tutorials on setting nixos up as a web server?
<dash>
"web server" is pretty general, what do you want to do with it?
<Guest88859>
yeah thats fair
<Guest88859>
apache with some basic sites, acme + letsencrypt
<Guest88859>
mail server
Guest88859 is now known as aanderse-laptop
<spinus>
Guest88859: take a look at nixops repository and manual, there is quite a few examples
<aanderse-laptop>
oh i wasn't familiar with nixops
<aanderse-laptop>
well
<aanderse-laptop>
it looks like i have some reading
<aanderse-laptop>
thanks :D
<LnL>
hodapp: looks good now
<zarel>
gchristensen: that gist is useful to me too, thank you
<grahamc>
You're welcome!
<zarel>
I discovered that ffi gem looks for libraries in hardcoded paths if it's passed a library name instead of a path
<LnL>
hodapp: are you still working on it?
goibhniu has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
deba5e12 has joined #nixos
<edef>
so, as a fish user
<edef>
every shell of mine now says
<edef>
set: Warning: $PATH entry "/etc/per-user-pkgs/edef/bin" is not valid (No such file or directory)
<edef>
set: Tried to change the read-only variable “_”
<aanderse-laptop>
edef: same issue here
<edef>
I'll go bisect it in a bit I guess
<hodapp>
LnL: not really, aside from maybe cleaning up the comments - which pertain to a separate codebase whose lineage is ambiguous but whose name is the same
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 3 new commits to master: https://git.io/vHDHa
<NixOS_GitHub>
nixpkgs/master f12b0a2 Bjørn Forsman: bcache-tools: add name to the source store path...
<NixOS_GitHub>
[nixpkgs] vdemeester opened pull request #26503: Update runc to 1.0.0-rc3 (master...update-runc) https://git.io/vHDHQ
NixOS_GitHub has left #nixos []
ertes has quit [(Ping timeout: 240 seconds)]
Rotaerk has quit [(Ping timeout: 240 seconds)]
jonte_ has quit [(Ping timeout: 260 seconds)]
<ij>
I want to make my outside-nixos haskell nix builders make the "result" files with a different name, so different builders wouldn't overwrite each other. Is there some common attribute name I could hand in?
Rotaerk has joined #nixos
<deba5e12>
hey, I'm having trouble compiling (well, linking) code that requires special ld flags, like "-lcapstone". I've installed capstone through nix-env, but am still getting this error when i try to build a rust project that relies on the library. Any thoughts at how to go about fixing this?
<deba5e12>
i've had the same issue with compiling lisp code that needs to be linked with the -lpcap flag, so it seems like a general problem, and not necessarily rust-specific.
<deba5e12>
it's been suggested here, before, that i open a nix shell before building, with something like "nix-shell -p capstone", but this doesn't seem to have any effect on the issue, since capstone (or whatever other library i'm trying to link against) is already installed in my profile.
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
ryanartecona has joined #nixos
marsel has joined #nixos
endformationage has joined #nixos
<pbogdan>
ij: for renaming the symlink you can use nix-build --out-link somename
aanderse-laptop has quit [(Quit: Konversation terminated!)]
<spinus>
deba5e12: I had similar issue recently, I was building python pillow library. What I did is:
<spinus>
installed pkg-config, exported LDFLAGS and CFLAGS, and builder cought that like (export CFLAGS=$(pkg-config --cflags zlib)), but it depends on the build mechanism, so you need to kind of inject what it needs.
<spinus>
So by default nix has some support for languages to inject that automatically, but some packages use custom stuff as I understand and you need to adjust
<deba5e12>
thanks, spinus!
<deba5e12>
I'll try that
byteflame has joined #nixos
sellout- has quit [(Quit: Leaving.)]
<deba5e12>
no luck
<deba5e12>
though i am getting somewhere with lisp now. it's just cargo that's being a pita.
markus1219 has quit [(Ping timeout: 260 seconds)]
markus1209 has quit [(Ping timeout: 260 seconds)]
AndreasO has joined #nixos
markus1189 has joined #nixos
markus1199 has joined #nixos
AndreasO has quit [(Quit: Found more important stuff than irc!)]
hellrazo1 has quit [(Ping timeout: 260 seconds)]
hellrazo1 has joined #nixos
phinxy has joined #nixos
Infinisil has joined #nixos
orivej has joined #nixos
roconnor has joined #nixos
<clever>
deba5e12, spinus: installing pkgconfig breaks a lot of what nix does to automate things working, you need to add pkgconfig to the nix-shell args
<spinus>
clever: yeah, I was not precise, I added pkg-config to buildInputs
<clever>
ah
<spinus>
is that what you meant?
<clever>
yeah
<spinus>
deba5e12: please take a look
<deba5e12>
thanks for the heads-up, clever
<deba5e12>
so I should *not* include pkgconfig in my configuration.nix?
ryanartecona has quit [(Quit: ryanartecona)]
<clever>
deba5e12: correct, you should never put build-time tools like pkgconfig/gcc in the systemPackages
<benley>
clever: is that a "never do this because it causes problems", or more of a "there's generally no reason to do this" never?
<clever>
benley: there is no real reason to do it, and the tools usualy dont work right when installed that way
<clever>
so your just going to give yourself more problems down the road
<benley>
fair enough
<benley>
I usually keep some tools like make, strip, the go compiler, python interpreter, etc. in either my user profile or in systemPackages, just for the sake of convenience
<benley>
not gcc though, that one does sound like asking for trouble on nixos
<clever>
yeah, gcc has a setup-hook that adds buildInputs to the search path for libs and headers
<clever>
so if gcc isnt in the build inputs, it wont find any other buildinput
<clever>
similiar for pkg-config, its setup hook adds all inputs to the pkgconfig search path
Rotaerk_ has joined #nixos
Rotaerk has quit [(Ping timeout: 240 seconds)]
jonte_ has joined #nixos
drakonis has joined #nixos
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
peacememories has joined #nixos
<Infinisil>
Umm, I have a problem with ssh: when doing ssh user@server echo \$PATH it doesn't contain the users /run/current-system binary paths, but doing echo $PATH via ssh user@server does have them
<Infinisil>
It may have something to do with login vs non-login shell, but I don't know how it should be solved with nixos
hotfuzz has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<deba5e12>
ah, maybe that's the trouble. gcc was one of the first packages i put in my system-wide config.
<deba5e12>
(responding to clever & benley from around 14:55 AST)
<deba5e12>
(so, about 20 minutes ago)
<deba5e12>
so compilers should just be installed locally, with nix-env -i ?
benley has quit [(Remote host closed the connection)]
benley has joined #nixos
peacememories has joined #nixos
peacememories has quit [(Client Quit)]
<drakonis>
apparently they're supposed to be used with nix-shell
danharaj has joined #nixos
jensens has joined #nixos
<Infinisil>
Ahh I found out what the problem was I had
<Infinisil>
I set the users shell to pkgs.zsh, but it's not configured to be a login shell by default, you need to do programs.zsh.enable = true for it to work
<Infinisil>
then all the env vars get set up correctly
yenzenz has joined #nixos
jensens has quit [(Read error: Connection reset by peer)]
yenzenz has quit [(Ping timeout: 255 seconds)]
mudri has joined #nixos
<LnL>
yeah, the zsh module does a bunch of stuff like that
jonte_ has quit [(Ping timeout: 240 seconds)]
jensens has joined #nixos
eacameron has joined #nixos
<zarel>
I couldn't find enough information about having NixOS as LXC guest on a Debian machine, is that possible?
<zarel>
..oh, wasn't being indexed too well by duck duck go it seems. Thank you so much :)
<Infinisil>
i believe ddg doesn't do any indexing itself, it just uses others search engines indices
<Infinisil>
(on a sidenote)
sigmundv_ has joined #nixos
<zarel>
Dezgeg, I have an olinuxino a20 lime board that I would like to run NixOS on but the more I read about ARM platforms the less I understand
<Dezgeg>
well, anything running a20 should be simple enough to get working
WilliButz has quit [(Quit: WeeChat 1.7)]
Wizek_ has joined #nixos
byteflame has quit [(Ping timeout: 240 seconds)]
jonte_ has joined #nixos
<zarel>
I read the wiki but I cannot answer to simple questions like "how do I build the final image"?
<Dezgeg>
you can download it prebuilt
danharaj has quit [(Ping timeout: 255 seconds)]
riclima has joined #nixos
Wizek_ has quit [(Ping timeout: 240 seconds)]
<zarel>
ok last time I tried downloading armv7-linux image. I put it on the SD and it didn't boot, serial port acted like dead
<Dezgeg>
yes for a20 you need to do the extra u-boot thing
<zarel>
so this means that on some memory on the board it's physically present an u-boot version that does not accept extlinux.conf and that must be changed?
DutchWolfie has quit [(Quit: Konversation terminated!)]
eacameron has quit [(Remote host closed the connection)]
iyzsong has quit [(Quit: bye)]
<Dezgeg>
yes, most likely
<Dezgeg>
it's strange that it wouldn't print anything to the serial though, I would imagine if you don't put an u-boot onto the sd card the one in the built-in nand would boot
danharaj has joined #nixos
<zarel>
I can make a test, remove the SD and boot without it
<zarel>
in debian and in arch there is a board specific part that is manually joined (or pre-joined) to the generic installer image. how does it work in NixOS?
phinxy has quit [(Quit: Leaving)]
<zarel>
anyway, I'm sorry to appear here and start talking about ARM, I don't want to bug too much
<Infinisil>
Eh, there's not much happening anyways
<zarel>
did you just compile a uboot for my board? :)
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<zarel>
let me try :)
Infinisil has quit [(Quit: leaving)]
JayVii has quit [(Quit: Bye!)]
<zarel>
copy is still ongoing... on x86 iso images I just call "cat image > /dev/sdX", I don't know if it's any different when dd is called just with if= and of=
sigmundv_ has quit [(Ping timeout: 240 seconds)]
<Dezgeg>
I think it works with coreutils cat but not necessarily with cat from other sources
<zarel>
and... it works!
<zarel>
I'm so happy! It was the only piece of hardware on which I was not running NixOS
<katyucha>
Hi ! I try to use Netflix with my firefox 53... but in Preferences => Content, I don't see "Play DRM Content" ... someone have an idea? I forget a configuration line ?
JayVii has joined #nixos
<Dezgeg>
ok I commit the u-boot expression then
<zarel>
Dezgeg, thank you a lot really!
<Dezgeg>
no problem
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vHyUq
<shlevy>
niksnut: chmod: changing permissions of '/nix/store/w728law578ladkf4nsb7qpd0kwdw8yb5-util-linux-2.29.2-bin/bin/mount': Operation not permitted
orivej has quit [(Quit: No Ping reply in 180 seconds.)]
orivej has joined #nixos
c74d has quit [(Quit: My excuse is that I want to update my kernel.)]
inflames has quit [(Remote host closed the connection)]
Itkovian has joined #nixos
inflames has joined #nixos
eacameron has joined #nixos
byteflame has joined #nixos
WilliButz has joined #nixos
marsel has quit [(Ping timeout: 255 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
c74d has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] apeyroux opened pull request #26505: grammalecte: init at v0.5.17 (master...init-grammalecte) https://git.io/vHykb
NixOS_GitHub has left #nixos []
Infinisil has joined #nixos
<LnL>
is that with a new version of nix?
<Infinisil>
Argh, I'm really frustrated, I just can't get my second display to work properly with xrandr, it's always misaligned or something
<dhess>
Strange that they don't show up immediately when one googles for "vps armv8"
<LnL>
heh
<dhess>
I guess strictly speaking it's not a VPS
<dhess>
LnL: do you happen to know any of the details on how to get NixOS installed on one of those? Unsurprisingly it's not one of their supported options out of the box.
<dhess>
presumably iPXE
<LnL>
gchristensen added support to nixops, but I'm not sure if that works for arm
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vHyLC
<NixOS_GitHub>
nixpkgs/master d402df0 Martin Wohlert: ffmpeg{,-full}: 3.3.1 -> 3.3.2...
<dhess>
It might, because he's the one who was telling me about them originally.
<LnL>
it might use clever's kexec thing
<gchristensen>
the packet support is not open source yet because it doesn't work yet
<dhess>
for aarch64
<dhess>
gchristensen: oh hi :)
<gchristensen>
hi :)
<dhess>
gchristensen: Does something like nixos-infect work?
<LnL>
oh really?
<gchristensen>
I have an iPXE image that tries to install NixOS on their aarch64 boxes
<dhess>
gchristensen: "tries." As in, sometimes works and sometimes doesn't, or... ?
<gchristensen>
right :)
<dhess>
hehe
<dhess>
gchristensen: can I get a link to that image so that I can try it?
<dhess>
I've been building fairly successfully for arm7vl for the past week or two, but even with my own Jetson TK1 build server, it's slooooooow
<gchristensen>
yeah, one moment
<dhess>
so at this point I think I'd rather move my embedded development to aarch64, deploying to rpi3's and building on something like these packet.net servers
<gchristensen>
I can appreciate that :)
<dhess>
(Unfortunately I cannot get Dezgeg's aarch64 install image to work properly on a Jetson TX1)
Neo-- has quit [(Remote host closed the connection)]
<Dezgeg>
dhess: I uploaded a newer version of the image (to the same url), maybe that helps (though I had no problems with the old image either, on a different hardware though)
<dhess>
gchristensen: hmm, so just briefly, does this cross-build from x86-64 to an aarch64 iPXE installer image? Or do I need an aarch64 running, like, Debian or something, to bootstrap it?
<dhess>
Dezgeg: ahh you're here. Let me show you what happened when I tried the image from.. last weekend I think, so roughly 7 days ago
<dhess>
then processes started dying/hanging. I eventually got to the # prompt of the installer, and was able to run 'fdisk', but so many processes were dying/hanging that I didn't go any further.
MercurialAlchemi has quit [(Ping timeout: 240 seconds)]
<clever>
dhess: basicaly, you upload a tarball to an existing linux machine (any distro), run a bash script, and within ~2 minutes, it will be running nixos from a ramdisk
<dhess>
clever: interesting. I'll try that first, seems like the simplest option if it works on aarch64
<clever>
if you set the system param for <nixpkgs/nixos> with --argstr, you should be able to create an aarch64 version of the tar
<Dezgeg>
yeah that sounds strange. it seems some nouveau problem, maybe it is fixed in the newer kernel
<Dezgeg>
or maybe nouveau can be blacklisted from the kernel command line
<gchristensen>
dhess: it has to be built on an aarch64 box, but I have several builds already available which you can try
<dhess>
gchristensen: that would be great if you have one of those publicly available
HappyEnte_ has quit [(Ping timeout: 255 seconds)]
<gchristensen>
yeah, just trying to sort them out
<clever>
gchristensen: do you happen to know how well kexec works on aarch64?
<dhess>
Dezgeg: ok, how do I do that from uboot?
<dhess>
clever: I'm reading about that right now. Seems like it used to be a problem but that was nearly 3 years ago, so maybe fixed by now
<gchristensen>
clever: I ... don't remember ... Dezgeg did the initial bootstrapping, and I didn't try kexec on these I htink.
Neo-- has joined #nixos
riclima has quit [(Client Quit)]
<gchristensen>
dhess: I'm afraid I have a few version for you to try... some may work, some may not ... I encourage trying them and looking in the SOS / Console to see how they're doing
<dhess>
gchristensen: more options is a good thing :)
<dhess>
clever: so this kexec method that runs NixOS from a ramdisk, does that include nixos-install ?
<clever>
dhess: this script will just do the entire install, with zfs for the root, in 1 command
<dhess>
Dezgeg: on a related note, I have a linux-bbone.nix that pulls Robert Nelson's BeagleBone kernel from GitHub and builds it, which gives you access to all of the nice out-of-mainline BeagleBone capemgr stuff for pinmux, capes, etc.
<dhess>
Dezgeg: is that something you'd be interested in?
<dhess>
clever: ok thanks for that.
<Dezgeg>
yeah I could try it out for the one cape that I have lying around somewhere
ryanartecona has joined #nixos
Jackneilll has quit [(Remote host closed the connection)]
<dhess>
Dezgeg: I also have a derivation which builds the bb.org capemgr overlays (from DTS files) and puts them in the firmware path so that you can load DTS overlays by echo'ing the name of the one you want to a special file in sysfs
<dhess>
Dezgeg: ok, should be relatively easy to prepare a patch against upstream nixpkgs
<dhess>
Dezgeg: I've been using it here locally and it seems to work great.
<Dezgeg>
yes. it can be also worked around by setting some variable (fdtfile I think) to match the mainline layout "nvidia/tegra210-p2371-2180.dtb"
<dhess>
Dezgeg: ok that sounds like a better fix, I'll look for that
<dhess>
that would be in the uboot environment?
<Dezgeg>
but that might break the non-nixos installation so watch out
<Dezgeg>
yes
<dhess>
Dezgeg: don't care about non-NixOS on this hardware :)
byteflame has quit [(Read error: Connection reset by peer)]
<dhess>
Dezgeg: BTW is there a NixOS equivalent to Debian's uEnv.txt?
<Dezgeg>
don't think so, that's probably some debian patches
<dhess>
Dezgeg: extlinux.conf has this: FDTDIR ../nixos/nnv962kr9nv04fm6863a5amdaq9j1zjv-linux-4.11.3-dtbs
<dhess>
that is not what you're talking about, right?
<Dezgeg>
no
<dhess>
I'm a bit confused about how DTBs work with uboot and the kernel.
<Dezgeg>
how it's supposed to work is that u-boot itself knows which dtb filename to look for and extlinux.conf provides the directory where every single possible dtb is, so things should JustWork
phinxy has quit [(Read error: Connection reset by peer)]
<Dezgeg>
but the u-boot people forgot to account for the fact that the kernel dtb_install installs to subdirectories on aarch64
<dhess>
Seems to happen fairly regularly. I think it's the NIC
drakonis has quit [(Remote host closed the connection)]
<dhess>
lots of complaints about the Realtek chipset on that board.
drakonis has joined #nixos
phreedom has quit [(Ping timeout: 258 seconds)]
<dhess>
Dezgeg: OK, I'll try to add xusb.bin to the aarch64 install image initrd
<dhess>
Dezgeg: thanks for all the help BTW!
jefdaj has quit [(Quit: Page closed)]
<Dezgeg>
I haven't had any network problems. I think it's all on 100Mbit links though
<dhess>
Dezgeg: some people have had more luck by disabling auto-neg and forcing 100mbit. That worked *slightly* more reliably for me, but still had issues.
<dhess>
Dezgeg: latest 4.11 kernels seem to have made it mostly stable at 1g with auto-neg... but every once in awhile, hangs again during a copy-closure
phreedom has joined #nixos
<dhess>
I have a USB Ethernet dongle with a different chipset. I'll try that
<dhess>
Embedded development blows.
<dhess>
The end results are pretty fun though.
<Dezgeg>
well, at least with these you aren't stuck with some 2.6 kernel
<dhess>
I sure hope all new language designers make cross-compilation a first-class feature, though.
<dhess>
(Haskell is particularly bad in that regard :\ )
<dhess>
Dezgeg: yeah, especially the BeagleBones are well supported with free kernels and drivers.
<dhess>
Dezgeg: I wish that BeagleBoard X15 had turned out better. Looked like a nice build server.
<dhess>
but seems like they're still having problems shipping it/getting it to pass U.S. FCC regulations.
<Dezgeg>
at $work I recently came across a NAS box running 2.6.x from 2009. also the userland used the old ARM OABI, which lost compilation support in buildroot in 2013