<gchristensen>
cacert the package has a ca-bundlee
<gchristensen>
which I think is the same thing
<exarkun>
I still don't understand how nix-env works I guess
<exarkun>
why can't I `nix-env -i cacert`?
eacameron has joined #nixos
<gchristensen>
can you describe the problem you're trying to solve?
<exarkun>
I need the stuff that is in /etc/ssl/certs on Debian
<gchristensen>
that's not a problem, that is a solution to a problem
<exarkun>
Without food and shelter I die of exposure and/or starvation
<puffnfresh>
nix-build '<nixpkgs>' -A cacert
<exarkun>
Also I am biologically programmed to reproduce my genome
<puffnfresh>
ls result/
<exarkun>
gchristensen: Can you help now?
<puffnfresh>
exarkun: ^
<gchristensen>
no, I'm no longer willing to try and offer assistance.
<exarkun>
gchristensen: Sorry. I don't understand why "I don't have any certificates on my system" isn't a problem worthy of getting help with.
<puffnfresh>
exarkun: nix-build '<nixpkgs>' -A cacert
<puffnfresh>
then look at result
<gchristensen>
exarkun: are you running NixOS? if so, which version?
<exarkun>
puffnfresh: Thanks. I saw. I should probably just re-read the docs for nix-env. I don't really need to interactively build the package. My question about nix-env was meant as a kind of side-issue. I thought I could use nix-env to peek inside the package and then I got confused about why I couldn't install the package with it at all.
rui1 has joined #nixos
<puffnfresh>
exarkun: nix-env only installs things for a single user
<puffnfresh>
it makes your ~/.nix-profile directory
<exarkun>
puffnfresh: But it won't install cacert for me _at all_.
<exarkun>
gchristensen: I am ... not. But I have a Docker image that probably has 16.09 in it, I think.
<puffnfresh>
it's probably in your ~/.nix-profile directory
<gchristensen>
exarkun: ah ha! now we're getting somewhere!
drasich has quit [(Ping timeout: 260 seconds)]
<exarkun>
puffnfresh: no, nix-env fails with: error: selector ‘cacert’ matches no derivations
<puffnfresh>
oh you don't even have any package information, you probably need to do: nix-channel --update
<gchristensen>
or nixpkgs.cacert
<exarkun>
I'm pretty sure that my ultimate solution is going to be to add nixpkgs...cacert to a buildInput or propagatedBuildInput in the expression defining some other package.
<puffnfresh>
that error would have been useful when you asked 14 minutes ago
<puffnfresh>
exarkun: yeah, I think so
<exarkun>
It was only 8 minutes ago
<gchristensen>
exarkun: are you building the docker container?
<gchristensen>
exarkun: to be frank, it has been difficult to extract relevant information from you.
<exarkun>
no, it's numtide/nix-builder
<exarkun>
gchristensen: Well, again, I apologize. It's late here and I still don't understand Nix well enough to even formulate particularly good questions.
<exarkun>
(which I offer by way of explanation, not excuse)
<puffnfresh>
zimbatm: you might know about this ^
<gchristensen>
"Hi, I'm using numtide/nix-builder in a docker container and am missing /etc/ssl/certs, which I found because <the actual thing you're trying to solve>. When I try and install cacert, it says "error: selector ‘cacert’ matches no derivations" .
<exarkun>
in my defense, I didn't know about cacert until after I asked my first question.
<gchristensen>
is the problem when running numtide, or when running what numtide builds?
<puffnfresh>
yeah, where is the problem?
<exarkun>
The latter. I run numtide to build another Docker image and when I run the code in that other Docker image, it fails because it really wants to find some stuff in /etc/ssl/certs.
<gchristensen>
do you see an error like "Error_Protocol ("certificate has unknown CA",True,UnknownCa)"?
<exarkun>
It manifests as: Traceback: <class 'txaws.exception.CertsNotFoundError'>: Could not find any .pem files.
<exarkun>
(and then a python stack trace)
<puffnfresh>
ah, the Docker image just needs to copy cacert in, I've done this before
<gchristensen>
I see this in the nixpkgs manual: "Note: If you see errors similar to Error_Protocol ("certificate has unknown CA",True,UnknownCa) you may need to add pkgs.cacert to contents. "
<exarkun>
I have been operating with the belief that things in buildInputs are available at build time and then go away and things in propagatedBuildInputs are available at build and runtime.
<exarkun>
(or maybe those docs are helping by showing me I'm wrong)
<avn>
exarkun: buildInputs hits bash's env in build scripts, propagatedBuildInputs hits $out/nix-support/..., and visible by as dependency for built package
<avn>
exarkun: actually any reference for /nix/store/${hash}.... recognized as dependency
<exarkun>
That makes it sound kind of like my understanding was correct (if lacking in specifics of the environment setup)? Do I understand you correctly?
<exarkun>
puffnfresh: Why did you put pkgs.cacert outside the override? Would that be a more sensible place for pkgs.dash and pkgs.coreutils that a currently included as "extraLibs"?
<exarkun>
Looking at the docs now, it seems like extraLibs is really meant for Python libraries not random things like coreutils.
AllanEspinosa has joined #nixos
<avn>
exarkun: python's buildPythonApplication function have pythonPath attr, to stuff need to be propagated to PYTHONPATH
<puffnfresh>
exarkun: I'm not sure what that extraLibs thing is doing
<NixOS_GitHub>
[nixpkgs] Profpatsch opened pull request #24638: rss2email: init at 3.9 (master...rss2email) https://git.io/vSEQ7
ndowens08 has joined #nixos
<exarkun>
Eh darn. cacert has ca-bundle.crt in it and this code isn't smart enough to understand a .crt file.
<coltfred>
I've created a few .nix files using the node2nix script. I'd like to be able to drop into a nix-shell (I think) so I can run a shell script using the specified node version (which differs from my global system version). When I try and run nix-shell default.nix I get an error about "a single derivation is required".
<coltfred>
Running nix-build tries to _do things_, but I have a shell script that is supposed to do the build (by running npm, etc).
takle has quit [(Ping timeout: 256 seconds)]
marsam has quit [(Remote host closed the connection)]
carlosda1 has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
batdog has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vSExn
barrucadu has quit [(Quit: Rebooting for kernel upgrade)]
mguentner has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
barrucadu has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 246 seconds)]
coltfred has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
newbie90 has joined #nixos
stepcut has joined #nixos
mguentner2 has joined #nixos
takle has joined #nixos
stepcut has quit [(Remote host closed the connection)]
mguentner has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 260 seconds)]
nekroze has joined #nixos
<nekroze>
The nixops options for `deployment.keys` is great and all but it creates the key directory with 0750 permissions which means many applications cannot access the keys there even if its run as a user with 666 permissions on the key. Is there a way around this?
takle has joined #nixos
batdog has quit [(Remote host closed the connection)]
justan0theruser has joined #nixos
stepcut has joined #nixos
justanotheruser has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 260 seconds)]
systemfault has quit [(Quit: Bye!)]
batdog has joined #nixos
takle has joined #nixos
MP2E has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
AllanEspinosa has quit [(Ping timeout: 246 seconds)]
eacameron has joined #nixos
endformationage has joined #nixos
eacameron has quit [(Ping timeout: 256 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
nekroze has quit [(Quit: leaving)]
ebzzry has quit [(Ping timeout: 258 seconds)]
rootnode has joined #nixos
ebzzry has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
batdog has quit [(Ping timeout: 264 seconds)]
proteus-guy has quit [(Remote host closed the connection)]
eacameron has quit [(Ping timeout: 240 seconds)]
carlosda1 has joined #nixos
cpennington has quit [(Remote host closed the connection)]
eacameron has joined #nixos
takle has joined #nixos
carlosda1 has quit [(Ping timeout: 246 seconds)]
byteflam1 has joined #nixos
byteflame has joined #nixos
eacameron has quit [(Ping timeout: 246 seconds)]
rootnode has quit [(Ping timeout: 246 seconds)]
takle has quit [(Ping timeout: 264 seconds)]
rui1 has joined #nixos
<rui1>
If anyone uses taskserver
<rui1>
have an example config?
byteflam1 has quit [(Ping timeout: 240 seconds)]
byteflame has quit [(Ping timeout: 240 seconds)]
<rui1>
Using the example on the manual { enable = true; fqdn = "server"; listenHost = "::"; sth.users = [ "alice" ]; }
<rui1>
and then doing "nixos-taskserver org add sth", or "nixos-taskserver user export sth alice"
<rui1>
gives an error "CA setup not done or incomplete, missing file /var/lib/taskserver/keys/ca.key"
newbie90 has quit [(Quit: Bye.)]
<rui1>
Anyone knows if that is expected?
ebzzry has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
ebzzry has joined #nixos
elninja44 has quit [(Remote host closed the connection)]
YellowOnion has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<YellowOnion>
are there any guides around for making a nix package that doesn't use a make system?
calvertvl has quit [(Remote host closed the connection)]
takle has joined #nixos
stepcut has quit [(Remote host closed the connection)]
<YellowOnion>
I have a binary blob I want to move out of my user directory, and make a bit more robust.
<aminechi1haoui>
is it possible to disable patchelf in buildGoPackage by doing dontPatchELF = true ? doing so produces "cycle detected in the references of X from Y" where Y is the nix-store path of the bin output
<aminechi1haoui>
so not sure what other setup is needed to fix that
bennofs1 has quit [(Quit: WeeChat 1.6)]
eacameron has joined #nixos
<avn>
aminechi1haoui: `install_name_tool -delete_rpath $out/lib -add_rpath $bin $bin/bin/drone` on darwin should fix it (your problem on darwin, right?)
eacameron has quit [(Ping timeout: 240 seconds)]
<aminechi1haoui>
avn: no, I'm using a Linux/Ubuntu machine
<goibhniu>
Isorkin: BTW, you should be able to use `cd src` instead of referring to the store path
ThatDocsLady is now known as ThatDocsLady_afk
jrolfs has joined #nixos
<Isorkin>
Now such an error - fatal: Not a git repository (or any of the parent directories): .git
<Acou_Bass>
eey folks, i just changed over to plasma 5 from xfce... i see there is a grub breeze theme + plymouth theme, how do i use those? (i tried setting plymouth.theme = breeze-plymouth and it couldnt find it)
<gchristensen>
hey domenkozar how is that laptop working for you?
byteflam1 has joined #nixos
byteflame has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 5 new commits to master: https://git.io/vSuzu
<joepie91>
sounds like "hibernation works" is still the benchmark for Linux on laptops :)
<joepie91>
level 1: it boots
<joepie91>
level 2: wifi works
<joepie91>
level 3: hibernation works
<joepie91>
:P
<gchristensen>
haha
<joepie91>
come to think of it, this is probably not an unreasonable standard for certification...
<goibhniu>
true! ... I wonder if there's a mini-distro that lets you check all of the above (and probably audio and webcam too)
* goibhniu
guesses hibernation from a usb stick could be tricky
CMCDragonkai has quit [(Ping timeout: 264 seconds)]
<gchristensen>
domenkozar: do you have key repeat issues?
<domenkozar>
what's that?
<domenkozar>
I mean how would I see it happen
<gchristensen>
you'd feel like you were making lots of typos
<domenkozar>
nope
<domenkozar>
it's pretty smooth
<domenkozar>
gchristensen: I only need to tweak power settings
<domenkozar>
I get like ~4h of battery
<gchristensen>
run powertop's autotune in a looop overnight
<gchristensen>
^ see, looop -- I didn't do that.
ixxie has quit [(Ping timeout: 256 seconds)]
<domenkozar>
gchristensen: that's a really bad thing if you have OCD
<clever>
gchristensen: pong
<domenkozar>
computer driving you literally crazy
<gchristensen>
yeah, domenkozar
<domenkozar>
gchristensen: does it auto improve?
<gchristensen>
autotune?
<domenkozar>
ye
<gchristensen>
yeah, it needs to take a few hundred samples to get good
<domenkozar>
oh
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/vSu2d
<NixOS_GitHub>
nixpkgs/release-17.03 f6558e6 Jörg Thalheim: network-manager: fix segfaults on startup...
<gchristensen>
clever: I want to talk about pxe, but can't this morning
<clever>
gchristensen: ah
<clever>
gchristensen: my schedule is clear for the next ~5 hours
<gchristensen>
mine isn't, how about tonight?
<domenkozar>
there is also --clibrate
<domenkozar>
--calibrate*
<clever>
gchristensen: yeah, i'll also have some time free tonight till about 10 or 11pm
<gchristensen>
domenkozar: ack, sorry, run the --calibrate in a loop over night
<domenkozar>
that makes more sense
<domenkozar>
hehe
<gchristensen>
then --auto-tune will be better :) your computer will be unusable when you run it. don'tbe tempted to think you need to reboot
<domenkozar>
thanks gchristensen
<domenkozar>
you're my laptop and security hero
<mg_>
is there an easy way to backport packages? I need a package that is on master but not in the 17.03 channel in a project. Simply downloading the expression and importing it in my default.nix throws errors
gk_1wm_su has joined #nixos
<gchristensen>
haha you're welcome, domenkozar :P
<gchristensen>
mg_: which package?
gk_1wm_su has left #nixos []
MoreTea has joined #nixos
<mg_>
gchristensen: guile v2.2, "guile" is 2.0.* on 17.03 it seems
iyzsong has joined #nixos
arjen-jonathan has quit [(Ping timeout: 268 seconds)]
<gchristensen>
domenkozar: what would you think about all nixos systems having an unstable channel as well as the stable/nixos channel
<clever>
mg_: try loading it with callPackage rather then import
<clever>
mg_: ah, or what gchristensen just said
<mg_>
gchristensen: wohoo, worked! Thanks :)
freusque has joined #nixos
<gchristensen>
you're welcomee!
freusque has quit [(Quit: WeeChat 1.7)]
arjen-jonathan has joined #nixos
freusque has joined #nixos
batdog has joined #nixos
<MoreTea>
@gchristensen, your point being that most people will actually use the unstable channel as well?
<gchristensen>
yeah, a mix
<gchristensen>
and the fetchTarball thing is a bad experience
jrolfs has joined #nixos
byteflame has joined #nixos
byteflam1 has joined #nixos
jrolfs has quit [(Ping timeout: 240 seconds)]
cpennington has quit [(Remote host closed the connection)]
byteflam1 has quit [(Ping timeout: 264 seconds)]
byteflame has quit [(Ping timeout: 264 seconds)]
FRidh has joined #nixos
justsomeguy has quit [(Quit: WeeChat 1.7)]
iyzsong has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
schoppenhauer has quit [(Quit: Adé)]
<joepie91>
[13:28] <gchristensen> domenkozar: what would you think about all nixos systems having an unstable channel as well as the stable/nixos channel
<joepie91>
fwiw, I'd be all for this :P
<joepie91>
it's a pretty significant papercut right now I think
<MoreTea>
gchristensen, once we get a new nix release, that should not really be a problem anymore, right?
<MoreTea>
Then we'd have a fetchTarball with a shasum
<gchristensen>
I think that is also a bad experience
<gchristensen>
because then you have another place to manually keep track of, and my bet is people won't, so they'll just be stuck on an old version for eternity
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vSuPr
<NixOS_GitHub>
nixpkgs/master 8cca37e Frederik Rietdijk: Merge pull request #24633 from xNWDD/gitkraken/2.3.1...
<Filystyn>
for the record
<Filystyn>
having in header void fun( char* ) { /*and after this in new line */ \n void fun2( void ); causes some insane compiller errors /nix/store/zyh3r1vb4lvaaahv4h6r26g44d7r1nd0-glibc-2.25-dev/include/bits/stdio2.h:209:1: error: function definition is not allowed here {
<Filystyn>
very strange
<Filystyn>
the mistake is ofc in my code not in the lib ;-)
cpennington has quit [(Ping timeout: 240 seconds)]
Svarog_ has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
<Svarog_>
What is the correct way to enable extra gcc front-ends in NixOS? For instance if I want to enable Ada.
boothead has joined #nixos
eacameron has joined #nixos
<Svarog_>
I think I managed to enable it (or at least it seems to be installing it right now) but I am fairly sure this is not how it's meant to be done since I've basically just copied the expression I found in one of the packages defining various gcc backends and using some helpers like wrapCC and so on.
<Svarog_>
Seemed like something that should be internal and not something I should be using.
<boothead>
hi folks, I have an old stack in my $PATH that I can't get rid of with nix-env -e stack.. where else might it be coming from?
<boothead>
I want to nix-env -i stack to get the newest version but it complains about needing nix-env --set-flag priority NUMBER PKGNAME rather than upgrading
sivteck has quit [(Ping timeout: 260 seconds)]
<Svarog_>
boothead, could it be something in your user profile? .bashrc or something
Jackneilll has joined #nixos
eacameron has quit [(Ping timeout: 246 seconds)]
jophish has quit [(Remote host closed the connection)]
Jackneill has quit [(Ping timeout: 240 seconds)]
<boothead>
Svarog_, hmmm. I can't actually see how my ~/.nix-profile is getting in there in the first place
<boothead>
that's odd, I thought there was a bit added to profile or something setting that up?
eacameron has joined #nixos
<boothead>
.zshrc~:source /home/ben/.nix-profile/etc/profile.d/nix.sh... but not in current ~/.zshrc
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 3 new commits to master: https://git.io/vSuSy
<NixOS_GitHub>
nixpkgs/master 7acd1e7 Tim Steinbach: sway: 0.11 -> 0.12.2
<NixOS_GitHub>
nixpkgs/master f911770 Tim Steinbach: sway: Add xwayland build input
<NixOS_GitHub>
nixpkgs/master 7c36657 Tim Steinbach: Merge pull request #24639 from NeQuissimus/sway_0_12_2...
cpennington has joined #nixos
arjen-jonathan has quit [(Ping timeout: 256 seconds)]
jophish has joined #nixos
<boothead>
Svarog_, I also get this when I'm trying nix-env -i in my shell: warning: name collision in input Nix expressions, skipping /home/ben/.nix-defexpr/channels_root/nixos
eacameron has quit [(Remote host closed the connection)]
<boothead>
I think I've got some old set up wrong
<Svarog_>
oh right
hotfuzz_ is now known as hotfuzz
eacameron has joined #nixos
byteflame has joined #nixos
boothead has quit [(Remote host closed the connection)]
boothead has joined #nixos
<boothead>
tried a reboot. thought that might help I've I've just upgraded.
byteflam1 has joined #nixos
<gchristensen>
having to deal with puppet at $dayjob is a regular reminder as to how much better nixos is
<ashkitten>
where in the nixpkgs tree would I put bulletmark/libinput-gestures?
<boothead>
Svarog_, any ideas for how I can get rid of a package when nix-env -e doesn't work?
<boothead>
also, my ~.nix-profile is pointing at a line from Mar 15 rather than today
<NixOS_GitHub>
[nix] dtzWill opened pull request #1302: Process nix.conf options in "new" commands, add test (master...fix/nix-options) https://git.io/vSuQt
ThatDocsLady_afk is now known as ThatDocsLady
<dtzWill>
boothead: what's not working re:nix-env -e? Also, depending on what you're trying to do you could just nuke the profile entirely
<boothead>
It seems I have a collision between an env I've created called haskellEnv and the candidate for nix-env -i:
<boothead>
collision between /nix/store/5canxbdb8njir91qqv09rjpfcjpyslr6-haskell-env/bin/stack and /nix/store/4ywrynl00rcc34varza3p7ly18vw16pq-stack-1.4.0/bin/stack; use nix-env --set-flag priority NUMBER PKGNAME
<dtzWill>
either manually or maybe with --remove-all. If you mean nix-env -e isn't removing things that are listed in nix-env -q then that's a different issue, usually something about names vs attrs and whatnot
<dtzWill>
boothead: right but that's when you're installing a thing. what's the problem with nix-env -e?
<boothead>
it doens't seem to do anything stack remains on my path
<dtzWill>
yeah that's what I suspected, why I asked, I've been burned/confused by that before too
<boothead>
my NIX_PATH: config=/home/ben/dev/nix/config:nixpkgs=/home/ben/dev/nixpkgs:nixos=/home/ben/dev/nixpkgs/nixos:haskell=/home/ben/dev/haskell:nixpkgs=/home/ben/.nix-defexpr/channels/nixpkgs
<boothead>
I've got 2 nixpkgs in there somehow
<dtzWill>
boothead: your 'nix-env -e' invocation--are you using the same name shown in 'nix-env -q'?
johnsonav has quit [(Ping timeout: 246 seconds)]
<dtzWill>
(I'd give you more direct advice but dunno what haskellEnv/stack installations usually call their things)
<dtzWill>
thing I often run into is I install, say, clang or gcc... and want to remove it... but you have to do nix-env -e clang-wrapper
<boothead>
nix-env -q | grep stack gives no results dtzWill
<boothead>
but I think stack was a part of this haskellEnv I installed.
<dtzWill>
boothead: well then it's not stack, it's something else. anything else in nix-env -q (That lists what's in your profile) that looks like what 'stack' installed as?
<dtzWill>
oh, indeed
<boothead>
using pkgs.buildEnv
<dtzWill>
if you find the name in nix-env -q you can also use that to do the '--set-flag priority' route it suggests as well
<dtzWill>
if you don't want to remove it
arjen-jonathan has joined #nixos
<boothead>
aha! nix-env -i haskell-env :-D
<dtzWill>
hmm it seems like it should be more straightforward to say "why is thiis path in my profile" and map that to "because you installed $FOO"
<dtzWill>
hahaha okay.
<boothead>
stack --version now == 1.4.0
<boothead>
yeah - who can even remeber what a nice development looks like when they've been doing windows for so long :-D
jrolfs has joined #nixos
<Svarog_>
boothead, sorry I was afk, on a different computer - I don't have any suggestions beyond what dtzWill already mentioned unfortunately
<Svarog_>
I'm fairly new to NixOS - if I ran into something like that the first thing I'd do is try to create another user profile, install stack there and then do a diff between the two users
<Svarog_>
I'm sure there is a better way to figure out what's going on though
<miguelnegrao>
nliadm: ok, so in my config.nix I would add a new package in packageOverrides, and this package would be created with buildEnv and the paths = [ ... ] would the packages I want installed on my system ?
<sik>
hi all. I've just installed nixos and I'm trying to install itk-snaps (it is shipped throw sourceforge as binary tarball) and I can't figure how should I proceed. Can you refer to some example?
<goibhniu>
hi sik, it *might* be easiest to package it
<nliadm>
that sounds right. I have a file `~/lib/$(hostname).nix` and then just `nix-env -rif ~/lib/$(hostname).nix`
<NixOS_GitHub>
[nixpkgs] taku0 opened pull request #24650: source-han-sans: fix license from ASL2.0 to SIL Open Font License. (master...source-han-sans-fix-license) https://git.io/vSubK
ebzzry has joined #nixos
<goibhniu>
sik: otherwise, maybe this helps: https://nixos.org/wiki/FAQ#I.27ve_downloaded_a_binary.2C_but_I_can.27t_run_it.2C_what_can_I_do.3F
<copumpkin>
niksnut: I'm staring at the queue-summary page and my lonely http://hydra.nixos.org/build/51166575#tabs-summary job doesn't seem to be getting queued, despite all the mac builders being free
<goibhniu>
sik: great!
<miguelnegrao>
goibhniu: ok, will try that.
<copumpkin>
niksnut: is the build queue aware of the system and such or is it possible for a bunch of linux jobs occurring earlier in the queue to block mac jobs later in it?
<gchristensen>
copumpkin: I don't believe it is
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vSuNS
<NixOS_GitHub>
nixpkgs/master 44168b4 Vladimír Čunát: knot-resolver: update the source hash...
<copumpkin>
you don't believe it's aware, or you don't believe it's possible for linux to block mac?
<gchristensen>
IIRC is a fairly naive `for to_build in drvs; do do_the_build_remotely $to_build; done`
<copumpkin>
ah
<gchristensen>
^ but with concurrency :P
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/vSuNH
<NixOS_GitHub>
nixpkgs/release-17.03 c87abfa Vladimír Čunát: knot-resolver: update the source hash...
MercurialAlchemi has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-16.09: https://git.io/vSuN7
<NixOS_GitHub>
nixpkgs/release-16.09 1b96532 Vladimír Čunát: knot-resolver: update the source hash...
drasich has quit [(Ping timeout: 246 seconds)]
ebzzry has quit [(Ping timeout: 268 seconds)]
<Svarog_>
Would anyone be able to tell me what is the correct way to enable additional gcc front ends in NixOS?
<Svarog_>
If I wanted to add Ada and VHDL front ends for instance.
tvon has joined #nixos
tvon has quit [(Client Quit)]
coltfred has joined #nixos
<ashkitten>
how can I pass fetchFromGithub to callPackage?
<copumpkin>
niksnut: does hydra track evaluation times for the different jobsets?
<copumpkin>
would be nice to watch that change over time
<spinus>
hey guys, anyone is using nixops with AWS ec2? I'm running new instance and can't connect to it, looks like instance is dead (aws check fails). I guess AMI is broken, do could anyone copy-paste me ami you are using and it's working?
<copumpkin>
I use custom NixOS AMIs all the time
<copumpkin>
but there was something about PV AMIs being broken as of 17.03
<copumpkin>
are you doing HV or PV?
<sik>
goibhniu: I know its asking a lot, but could you please PR the gist. I'm kinda lost
<spinus>
copumpkin: I tried both, I use 16.09
<copumpkin>
the official 16.09 one definitely works, since I use it pretty often
<spinus>
I switched now to some random 15.09 and looks like that started (but has ssh issue, but looks like instance is alive)
marsam has joined #nixos
<copumpkin>
haven't tried it with nixops though
<goibhniu>
sik: to build it from source?
<goibhniu>
sik: sorry, I don't really have time :/
<spinus>
copumpkin: how do you build own amis?
<goibhniu>
sik: but maybe I can find a similar expression that you can copy ... would that help?
<copumpkin>
spinus: there's a lot of image building machinery in nixos/nixpkgs, and I mostly just do similar things to what the official AMI build script does. You can basically take a nixpkgs and a nixos configuration and ask nix to build you an image file for that. Then you can upload that image file to S3 (what official build does) and ImportImage/Snapshot on it, or (what I do) dd it to an EBS volume and take a snapshot
ma9e has joined #nixos
<copumpkin>
I'd try to figure out what's wrong with the current one first though
<copumpkin>
check the console log, etc.
<sik>
goibhniu: that would help a lot
<spinus>
copumpkin: thx for explainig, I'm new to nixops+ec2
<ma9e>
how do i make /bin/bash exist in my environment?
<copumpkin>
ma9e: you generally don't, although there are some tricks
<copumpkin>
spinus: np
<ma9e>
copumpkin, i'm working with a lot of sources here so it'd be nice to use a hack instead of patching the shebangs and whatever else
<copumpkin>
ma9e: we have tooling that will patch that sort of thing automatically for you
<copumpkin>
e.g., `patchShebangs .`
<ma9e>
it's complicated because we already use bitbake as a build system :/ so i would have to insert it in there when the sources are unpacked somehow
<copumpkin>
oh you're not in a nix build?
<ma9e>
i just want to create a development environment
<copumpkin>
a lot of the nix build tooling can be a bit awkward to make work outside of a nix builder, fyi
<copumpkin>
not many of us do that
<ma9e>
i'm beginning to realize
<copumpkin>
instead opting to wrap the builx in nix
<copumpkin>
which generally works pretty well
<copumpkin>
it's like the borg ;)
<ma9e>
can nix build embedded linux?
<ma9e>
like yocto project
<copumpkin>
not sure, but we've made it build all sorts of things
<copumpkin>
some things take more work than others
<boothead>
Does anyone have intero/emacs working on nixos? My setup used to work but now intero won't start. There are lots of github issues, but can't tell if there's a fix or not?
schoppenhauer has joined #nixos
<boothead>
are people just back to using ghc-mod et al?
<NixOS_GitHub>
[nixpkgs] Profpatsch pushed 1 new commit to master: https://git.io/vSzk4
<NixOS_GitHub>
nixpkgs/master 6b5e5de Profpatsch: rss2email: init at 3.9
IKEA is now known as Swant
<niksnut>
"Fetching the dependencies took 3s and evaluation took 839s."
<goibhniu>
sik: awesome!
Mercuria1Alchemi has joined #nixos
Itkovian has joined #nixos
stepcut has joined #nixos
Mercuria1Alchemi has quit [(Ping timeout: 268 seconds)]
stepcut has quit [(Read error: Connection reset by peer)]
hiberno has joined #nixos
stepcut has joined #nixos
Sonarpulse has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] edanaher opened pull request #24651: fvwm module: init; now fvwm can be used as an xserver.windowManager (master...add-fvwm-window-manager) https://git.io/vSzqO
Sonarpulse has joined #nixos
pxc has joined #nixos
<exarkun>
Hello. I sometimes get different outcomes when building some derivations from expressions I've written. Here's a recent example - logs for two travis-ci builds (for the same code, though revs look different due to merge commit):
<exarkun>
I think this is exactly the kind of behavior that Nix is geared towards avoiding so I wonder what thing I've done horribly wrong to bring this about.
Sonarpulse has quit [(Remote host closed the connection)]
Itkovian has quit [(Read error: Connection reset by peer)]
stepcut has joined #nixos
johann__1 has quit [(Quit: Leaving.)]
<eacameron>
Is it normal that npm install -g doesn't work on NixOS?
<LnL>
yes, that probably tries to write to the store
<eacameron>
It seems to make sense because you'd want anything global to be installed via nix
<eacameron>
LnL: Yah it does
arjen-jonathan has quit [(Ping timeout: 264 seconds)]
<niksnut>
apparently only when privilege seperation is disabled
<aminechi1haoui>
phreedom: Hey, is there a reason why we're using libcloud in nixops instead of the google python SDK ?
<aminechi1haoui>
for gce backend
Itkovian has joined #nixos
<phreedom>
aminechi1haoui: hard to tell why. I guess the api looked prettier. I wasn't the one who picked libcloud anyway. you could look into monkey-patching the connection classes. Usually something can be done about sucky libs
<aminechi1haoui>
phreedom: hm I see. I think I can eventually even use the python SDK for a different resource e.g service account, but not sure if we need to keep it consistent with the other resources
<phreedom>
aminechi1haoui: monkey-patching is almost always a much easier choice and you could also submit a patch to libcloud. they are responsive.
jrolfs has joined #nixos
<phreedom>
most likely we are talking about a few lines of code
Itkovian has quit [(Read error: Connection reset by peer)]
<aminechi1haoui>
phreedom: yeah I'm consdering doing that, opened an issue in their JIRA just to check that they don't have an issue with adding it
peterhoeg has joined #nixos
jrolfs has quit [(Ping timeout: 256 seconds)]
bennofs has quit [(Ping timeout: 246 seconds)]
aminechikhaoui_ has joined #nixos
aminechikhaoui_ has quit [(Remote host closed the connection)]
<unlmtd[m]>
im having trouble in an indented string '$' is unaccepted
<ben>
try escaping it with more $?
<NixOS_GitHub>
[hydra] edolstra pushed 1 new commit to master: https://git.io/vSzWk
<NixOS_GitHub>
hydra/master fec895a Eelco Dolstra: hydra-server: Support logs in S3
BramD_ has quit [(Ping timeout: 260 seconds)]
<unlmtd[m]>
it built
<unlmtd[m]>
ben: thanks
<unlmtd[m]>
the manual mentions ${ but it seems that's not the only exception
BramD_ has joined #nixos
jrolfs has joined #nixos
chakerbenhamed has quit [(Ping timeout: 268 seconds)]
lsix has quit [(Quit: Konversation terminated!)]
<gchristensen>
unlmtd[m]: ''$
peterhoeg has quit [(Remote host closed the connection)]
bastian__ has quit [(Ping timeout: 246 seconds)]
Shell has left #nixos ["User left"]
<copumpkin>
niksnut: \o/ thanks
bennofs has joined #nixos
<mbrgm>
nixops' libvirtd target is solely for local usage, right?
<mbrgm>
not for deploying to multiple libvirtd hosts on the network?
chakerbenhamed has joined #nixos
<gchristensen>
not sure what it can do, but I'd expect it would be nice to be able to deploy remotely too
mkoenig has quit [(Remote host closed the connection)]
<mbrgm>
gchristensen: that was my intent. :)
johnsonav has joined #nixos
freusque has quit [(Quit: WeeChat 1.7)]
<LnL>
lol, I just read the systemd email on the mailing list
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
<copumpkin>
niksnut: hmm, I'm a little confused by Hydra behavior. I manually restarted the libc++abi build and it succeeded the second time around, and that was the cause of most of the darwin failures on staging. But I manually evaluated staging again in an attempt to get it to build all the dependencies again, but it doesn't seem to do anything when I ask it to evaluate. It seems to evaluate but no new eval appears on the list
<Dezgeg>
no new commits to staging?
<LnL>
a new eval has no impact on the build status of nothing changed
cfricke has joined #nixos
<copumpkin>
yeah no new commits but I manually triggered a failed build and it passed
stepcut has quit [(Remote host closed the connection)]
<copumpkin>
I guess everything else is still a cached failure?
<copumpkin>
oh, "restart all failed builds" sounds promising
<copumpkin>
will need ikwildrpepper or niksnut to do that perhaps?
pxc has quit [(Quit: WeeChat 1.7)]
arjen-jonathan has quit [(Ping timeout: 258 seconds)]
mudri has quit [(Ping timeout: 240 seconds)]
vaibhavsagar has quit [(Ping timeout: 260 seconds)]
deepfire has quit [(Remote host closed the connection)]
stepcut has joined #nixos
chakerbenhamed has quit [(Ping timeout: 240 seconds)]
aminechi1haoui has quit [(Quit: leaving)]
<LnL>
woot hydra logs, but there seems to be some sort of encoding issue
94KAAOKYC has joined #nixos
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
faffolter has quit [(Remote host closed the connection)]
94KAAOKYC has quit [(Remote host closed the connection)]
aminechikhaoui has joined #nixos
faffolter has joined #nixos
jensens has quit [(Ping timeout: 260 seconds)]
aminechikhaoui has quit [(Client Quit)]
jrolfs has quit [(Ping timeout: 260 seconds)]
<copumpkin>
I'm seeing log links but no actual logs behind them
<copumpkin>
but more importantly
<copumpkin>
my epic change to hydra is in
<copumpkin>
(it now uses the new logo)
oida has joined #nixos
<gchristensen>
!m copumpkin x1000
<[0__0]>
You're doing good work, copumpkin x1000!
<Isorkin>
How to install liblmdb? nix-env -iA nixos.lmdb - install only bin
<copumpkin>
:D
<dash>
Isorkin: typically that's enough; what do you want to do afterwards?
mudri has joined #nixos
<gchristensen>
when I run `nix-shell` and it downloads from the binary cache, if I'm root and not using NIX_REMOTE=daemon, I get "download-from-binary-cache.pl: still waiting for ‘https://cache.nixos.org/....narinfo’ after 5 seconds..." if I'm a normal user and am using NIX_REMOTE=daemon, I don't have any problems at all. anyone have thoughts on why this might be the case?
<Filystyn>
how to install the aditional opengl libs ?
ambro718 has joined #nixos
marsel has quit [(Ping timeout: 240 seconds)]
sellout- has joined #nixos
FrozenCow has joined #nixos
chakerbenhamed has joined #nixos
schoppenhauer has quit [(Quit: Adé)]
<dash>
Isorkin: Can you explain further?
ambro718 has quit [(Ping timeout: 260 seconds)]
<Isorkin>
dash: When assembling an error - configure: LMDB headers found at: ..lmdb-0.9.19-dev/include / configure: error: LMDB was explicitly referenced but it was not found
FrozenCow has quit [(Remote host closed the connection)]
chakerbenhamed has quit [(Ping timeout: 264 seconds)]
coltfred has quit [(Ping timeout: 260 seconds)]
<ashkitten>
how can I use just one package from my local nixpkgs repository? I want to install it declaratively in my configuration.nix
<dash>
Isorkin: pastebin the full error?
<dash>
ashkitten: i haven't looked at it much but isn't this what overlays are for?
<ashkitten>
dash: I'll look into it
<ashkitten>
where are overlays mentioned? not in the manual
<nh2>
can I disable the fact that nix-build sets timestamps of all files to 0?
<disasm>
ashkitten: you could use sed to remove the offending lines.
<ashkitten>
hm ok
sellout- has quit [(Quit: Leaving.)]
<joepie91>
nh2: not without breaking stuff; this is necessary to produce reproducible builds, if I'm not mistaken
<nh2>
joepie91: it's OK to break stuff; I have a fully working deterministic build, but want to get a quick incremental build for a better development experience; my build system provides the guarantee to not put timestamps in the outputs
<joepie91>
unsure how to do it *with* breaking stuff :)
hexanode has joined #nixos
<domenkozar>
nh2: you could store timestamps in separate files and restore with touch
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/vSzHj
<NixOS_GitHub>
nixpkgs/master a6420e1 Michael Weiss: luksroot: Wait for the header (device) to appear...
<gchristensen>
vcunat: <3 on that FIXME
<vcunat>
:-)
<NixOS_GitHub>
[nixpkgs] primeos closed pull request #24634: luksroot: Wait for the header (device) to appear (master...luksroot) https://git.io/vSEkH
<gchristensen>
time to make that a fixedme I suppose
<gchristensen>
and maybe get a new CVE :P
<hyper_ch>
kdevelop stillfailing to build on unstable
<ffplay_i_want>
hello everyone; i just wanted to install ffplay so i executed `nix-env -i ffmpeg-full`; i get ffmpeg and ffprobe, but no ffplay. so i tried `nix-env -i ffmpeg-full --args SDL true --args ffplayProgram true`. but this just reinstalles the package. can you help me? thanks!
<vcunat>
ffplay_i_want: it's not there, but I don't yet see why
<ffplay_i_want>
vcunat: so at least it's not a easy beginners fault?! at least something ;-)
<tilpner>
$ nix-shell -p ffmpeg-full --run 'which ffplay' outputs /nix/store/slfklfmcjjkgfv91ww8k865mzwdixks9-ffmpeg-full-3.1.6/bin/ffplay here, so it seems to work. What channel are you on?
<benley>
it also sounds like it would be kinda slow because of all the sandbox setup/teardown
<vcunat>
yes, I think it will be
<clever>
i currently lack a way to auto-generate the nix expressions, and no way to parse makefiles or configure scripts
<vcunat>
which is an even worse point
<tilpner>
benley - channels is 17.03, channels_root is 16.09. When I do nix-env -i ffmpeg-full, I get the one from 17.03, but when I do nix-shell -p ffmpeg-full I get the one from 16.09. Do you know why that is? It's quite confusing
<clever>
benley: yeah, but if you compare the time it takes to rebuild 10,000 source files in chromium, to the time it takes to rebuild a dozen of them
<benley>
gchristensen: I found the nix chef cookbook, i'll post it in a minute
<gchristensen>
<3 <3 <3
<clever>
benley: but it will also depend on how much the build-time closure changes between versions
<benley>
tilpner: yeah, that is hella confusing. I think nix-env is the only tool that pays attention to ~/.nix-defexpr.
<benley>
tilpner: everything else uses NIX_PATH
<vcunat>
tilpner: installing by package name is ambiguous
<vcunat>
it will just choose the highest version (if I simplify it)
<benley>
what I do is get rid of channels, and put this in ~/.nix-defexpr/nixpkgs.nix: `import <nixpkgs> {}`
<clever>
tilpner: nix-env -f '<nixpkgs>' -iA ffmpeg-full would force it to use the ffmpeg-full attribute from the <nixpkgs> entry in $NIX_PATH
<benley>
that way nix-env uses NIX_PATH the same way everything else does
<tilpner>
benley - So you don't have either ~/.nix-channels or /root/.nix-channels?
<nh2>
clever: that sounds interesting, but that would be quite tough to do for Haskell without specifying tons of build rules manually (which auto-detects dependencies etc)
<benley>
tilpner: correct
<clever>
nh2: yeah, and haskell lacks a header/source separation
<ffplay_i_want>
okay,.. so in order to get ffplay i would need another channel (?) 16.09? but i can not use it, as i do not run a full nixos, but only want to use nixpkg on top of debian?!
<tilpner>
Hmm, that sounds good, I'll try that. Thanks for the explanation, everyone! :)
uralbash has joined #nixos
<clever>
nh2: so you cant giv it the types of something without also giving it the code, and now it has to rebuild even if the types arent changing
<NixOS_GitHub>
[nixpkgs] rasendubi pushed 2 new commits to master: https://git.io/vSzFp
<benley>
tilpner: that means I have to set NIX_PATH to have a http url to a tarball, like NIX_PATH="nixpkgs=https://github.com/nixos/nixpkgs-channels/archive/nixos-17.03.tar.gz"
grillon has joined #nixos
<grillon>
Hi
<benley>
tilpner: which has a few downsides - it means nix will fetch a new tarball whenever it feels like it, so you can't control when updates show up. It also means that operating offline is a bit annoying.
<tilpner>
benley - Oh, right, I forgot. Is there a way to use a local nixpkgs checkout instead?
<benley>
tilpner: yes totally; instead of http://something just use /path/to/local/nixpkgs/checkout
<nh2>
clever: the one-shot compilation ghc supports would still allow following your concept (I would have to pass the generated .hi files from one derivation into the next), but it definitely would be an effort
<nh2>
clever: in the end I would love to have a fully incremental build system in combination with nix but that will probably take a while
<clever>
nh2: seems simpler to just use nix-shell for incremental building, and leave nix-build pure and for release style stuff
<benley>
gchristensen: note that I haven't tested or run this since 2015; I'm reading it over again to see what needs updating
<vcunat>
hyper_ch: any more information on that? What nixpkgs version is it?
jrolfs has quit [(Ping timeout: 240 seconds)]
<gchristensen>
benley: I used to be very good with chef, haven't used it in some time. now I'm getting better at puppet, and am now having to re-understand chef *rubs eyes*
<benley>
gchristensen: haha same here, exactly
<tilpner>
benley - That's much better. I'll see how it works with two channels for now :)
<gchristensen>
benley: "(1..10).each do |i|" I miss this in puppet :(
<benley>
iirc there is a range() function in puppet, at least in stdlib?
<benley>
er, that's not what you mean.
AllanEspinosa has joined #nixos
<benley>
you want map() and/or comprehensions and stuff
<gchristensen>
I want a real syntax that isn't garbage *hem*
<benley>
anyway you can probably see that this cookbook assumes you're running Ubuntu 14.04
<benley>
but iirc the only trusty-specific thing is the upstart script, which should be replaced by the systemd unit that ships with nix now
<johnw>
using lens: forOf each [1..10] $ \i -> print i
<johnw>
just Haskell: forM [1..10] $ \i -> ...
<benley>
gchristensen: uff da. I wish puppet hadn't invented a new half-assed language. It's so obnoxious.
<grillon>
does anyone have installed docker with nix?
<benley>
like why on earth didn't they just use scheme
<grillon>
benley: nice, and when you have installed it how can you launch the daemon? Did you need to create a special user?
<benley>
grillon: Do you mean on nixos, or using nix on some other distro?
<dtzWill>
ffplay_i_want: what's wrong? looks good to me?
<grillon>
benley: I mean nix on some other distro
<benley>
ah, that I have not done.
<benley>
sorry
<grillon>
benley: ohh ok. have you ever tried nix on another distro?
<benley>
yup!
<ffplay_i_want>
dtzWill: thanks. was a browser issue. just got binary data
<benley>
I have used nix on ubuntu and macos
<grillon>
benley: ok so may be you could help me.
cfricke has joined #nixos
<dtzWill>
ffplay_i_want: they weren't working for a while, so maybe new fix either has some MIME-type issues on first load or you just got some cached thing from transition
<grillon>
benley: I have installed ansible and it works well, but I would like to use the jmespath plugin. So I installed it but it's not detected by ansible.
<dtzWill>
so might be worth following up on, we'll see if it happens again :)
<benley>
grillon: I'm not sure I know how to fix that either - I'm not familiar with ansible
FRidh has joined #nixos
<benley>
grillon: but I do know that nix does fancy gymnastics to build python apps, so you may need a customized ansible derivation that builds it with whatever plugins you need
<grillon>
benley: my problem is I install a python package that is not visible to ansible. does python package visible to other programs or do I have to do something?
arjen-jonathan has quit [(Ping timeout: 240 seconds)]
cpennington has quit [(Ping timeout: 268 seconds)]
<mojjo>
hi! I'm just installing nixos with a friend on his computer. We booted from my stick, then partitioned hist stick, mounted it, generated the config. worked fine until then. but nixos-install at one point complains with the following error:
<benley>
grillon: ah yeah, you almost certainly need to build a custom nix derivation to include that. It isn't very hard - take a look at those docs :-)
<ffplay_i_want>
thanks a lot for you help! no video watching this night, but learned smth else :-)
<mojjo>
`failed to check file system type of "/boot", No such file or directory`
<grillon>
benley: you should be right, the intro say that : If you do install libraries in your profile, then you will end up with import errors.
<grillon>
benley: I have used ansible in a nix-shell -p myPythonPkg and it works :). But what about a remote computer? ansible need to load that special environment? Is it possible? The question is the same for any deployement tools. Is it possible for that tool to load the nix environment?
<bennofs>
Are there any other pkgsets other than haskellPackages that are not listed in nix-env -qaP but get built by hydra?
<benley>
grillon: there are some nifty hooks that modify PYTHONPATH when you use nix-shell with python packages. If you write a customized derivation for your ansible-with-plugins-and-stuff, you will be able to install that as a package
<avn>
grillon: I used ansible from nixos to control remote centoses for ~1 year
coltfred has joined #nixos
bennofs1 has quit [(Ping timeout: 256 seconds)]
<vandenoever>
disasm: thanks!
kuznero has joined #nixos
<kuznero>
Hi All!
<grillon>
avn: but I'm using nix on another distro
<grillon>
avn: ohh sorry
<grillon>
avn: remote centoses...does these centoses used nix?
<avn>
grillon: no. I used to control centos machines from my nixos' desktop
<grillon>
avn: my question is how to start remotely a program installed with nix
<grillon>
kuznero: hi
<hyper_ch>
vcunat: sorry, didn't see your rply..... current unstable... well, current like 2 weeks old or something since kdevelop stopped compiling
<kuznero>
I am trying to introduce new version of F# in pkgs and I've spent considerable amount of time trying to approach it. This resulted in PR (https://github.com/NixOS/nixpkgs/pull/24385). But Travis CI seems to not like it, and I cannot understand what exactly. Can somebody help?
<avn>
grillon: on non-nixos? Sorry, haven't idea right now.
<disasm>
grillon: I'm trying to wrap my head around what your doing... So you have a non-nixos system that's running docker and your running a docker container using a nix base system. and in that container you're running ansible?
<hyper_ch>
vcunat: am not on master
<hyper_ch>
could be that it's fixed there
<hyper_ch>
how to switch to master?
<vcunat>
recent unstable channel should also contain it already
hotfuzz has joined #nixos
Itkovian has joined #nixos
kuznero has quit [(Quit: Leaving)]
<benley>
gchristensen: I'm updating that nix cookbook a bit
jrolfs has joined #nixos
DeaDSouL has joined #nixos
<DeaDSouL>
hi, how to enable the virtual-keyboard in KDE ?
ChongLi_ has joined #nixos
arjen-jonathan has joined #nixos
ChongLi has quit [(Ping timeout: 268 seconds)]
ChongLi_ is now known as ChongLi
jsgrant has joined #nixos
jrolfs has quit [(Ping timeout: 256 seconds)]
<grillon>
disasm: no it's more simple, there is two different questions : 1)I have a non nixos system running ansible which need to install nix app how can I do?
FRidh has quit [(Quit: Konversation terminated!)]
<grillon>
disasm: 2)I have installed docker with nix on non-nixos how can I run docker daemon?
<hyper_ch>
vcunat: problem ist, current unstable hasn't been working for the last 2 weeks for me because of kdevelop failing to build
<gchristensen>
hyper_ch: you could open an issue and cc ambrop72
arjen-jonathan has quit [(Ping timeout: 240 seconds)]
<hyper_ch>
how to cc?
cfricke has quit [(Quit: WeeChat 1.7)]
<gchristensen>
@ambrop72
<clever>
i think you just say his @githubhandle in the msg
bastian__ has quit [(Ping timeout: 256 seconds)]
<DeaDSouL>
this is my first time to use nixos... and i'm so in love with how it handles everything.. specially the speed and profiles
<gchristensen>
DeaDSouL: great!
<DeaDSouL>
but it doesn't come with the needed apps by default
<DeaDSouL>
for example, I had to add user via konsole, and there is no app to configure the networks
<DeaDSouL>
btw, I LOVE the way of letting each user install their own apps without su/sudo, so it won't be installed to the main system
<SovereignBleak>
How would I go about searching the nix repos for the package that make belongs to?
<hyper_ch>
gchristensen: no idea what you mean whith that
<DeaDSouL>
seriously this is the best distro I found this year so far
<benley>
:-D
<ashkitten>
Hey, why can't I disown a script that uses a nix-shell shebang?
<benley>
DeaDSouL: if you've installed kde and enabled networkmanager (which I think is probably a default?) then you should have a network settings panel available
<DeaDSouL>
benley: before installing nixos, i used nixos-generate-configuration or something like that, and it was on /mnt/etc/nix/configuration.nix ... but after the installation, i couldn't find /etc/nix/configuration.nix
<benley>
that's weird - you did end up with a bootable system, though?
<ashkitten>
DeaDSouL: it should be /etc/nixos/configuration.nix
<benley>
oh yeah, duh
<DeaDSouL>
yes
<DeaDSouL>
just a sec let me check
arianvp2 has joined #nixos
<arianvp2>
I'm trying to compile a C++ program in nixos, but I get the following linker errors
<arianvp2>
ld: cannot find -lm
<arianvp2>
ld: cannot find -lc
<clever>
arianvp2: are you doing that under a nix-shell?
<arianvp2>
yes
<arianvp2>
or nix-build
<clever>
arianvp2: can you gist the nix expression?
<SovereignBleak>
On Arch we have pkgfile, among other tools, and pacman even suggests a package that owns the program you search for. Do we have something similar?
<clever>
arianvp2: as Dezgeg said, glibc.static is all you need for libc and libm
<ashkitten>
DeaDSouL: looks good to me, what's your issue?
data has joined #nixos
<SovereignBleak>
bennofs: Oh cool. What do we do in the meantime? Or what's your strategy?
<DeaDSouL>
ashkitten: how can I get the minimal needed apps installed by default
data is now known as Guest49170
<DeaDSouL>
ashkitten: and how can I get a virtual keyboard
<ashkitten>
DeaDSouL: everything you need for a "minimal" installation should already be there. As for a virtual keyboard, I've never used KDE before so i wouldn't know.
<benley>
DeaDSouL: is NetworkManager running?
Guest49170 has quit [(Client Quit)]
<bennofs>
SovereignBleak: there's a command-not-found hook on nixos that uses some sort of database for binaries
<benley>
DeaDSouL: if not, and you want gui network config, try setting networking.networkmanager.enable = true in your configuration.nix
NickHu has quit [(Quit: WeeChat 1.7)]
<DeaDSouL>
benley: after editing configuration.nix... should i do anything? reloading it or something?
NickHu has joined #nixos
<ashkitten>
bennofs: never got command-not-found to be useful in any way lol
<benley>
DeaDSouL: run nixos-rebuild switch
<benley>
DeaDSouL: (also, rtfm ;-)
<DeaDSouL>
great
<DeaDSouL>
benley: btw, is this package `xvkbd` available in the repo?
<DeaDSouL>
benley: "You can not use networking.networkmanager with networking.wireless"
<Filystyn>
Im having hard time to actualy use this
<vcunat>
DeaDSouL: that nix-env command of yours does work for me
<vcunat>
Filystyn: how exactly do you use this?
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<Filystyn>
I can't use it because I have no idea how command should be passed so it's commented
<Filystyn>
playonlinux tells me i don't have opengl 32 and 64 bit drivers
data8 has joined #nixos
<Filystyn>
so i was hoping this is my trace
<Filystyn>
not drivers but opengl***
<Filystyn>
sorry
<vcunat>
Filystyn: you want hardware.opengl.driSupport32Bit = true;
<Filystyn>
it's set
<vcunat>
that certainly should be enough for standard wine games
<DeaDSouL>
by the way guys... some applications don't get shown in the app-menu, when the locale language is not english (ex: arabic)
<Filystyn>
play on linux tells me it can not obtain/find opengl libs
<benley>
DeaDSouL: ah yeah - if you have set networking.wireless.enable = true, you'll need to toggle that. Networkmanager conflicts with the thing that runs wpa_supplicant directly
<vcunat>
Filystyn: does /run/opengl-driver-32/lib/libGL.so exist?
<benley>
DeaDSouL: ooh - would you file a bug about that on github?
<vcunat>
(let's "bisect" that)
<arianvp2>
anybody by any chance got nlopt working with octave in nixos?
oida has joined #nixos
<benley>
DeaDSouL: there are probably a bunch of localization issues in nixos that haven't yet been identified
<Filystyn>
it exists
<DeaDSouL>
benley: this is one of them ;) ... but again, this distro I believe it will be the best... everything smooth and great LD
<DeaDSouL>
:D
<vcunat>
let me try this myself...
pallav has quit [(Ping timeout: 264 seconds)]
<vcunat>
Filystyn: I'm getting the warnings as well - did you actually try playing?
fresheyeball has joined #nixos
<Filystyn>
could not install i just wanted it for LoL since rarely ill play it
<fresheyeball>
anyone out there managed to get a webcam to work?
<fresheyeball>
I don't own one, so I could buy which ever one works with nixos
<Filystyn>
but the instalation fails on wine error. Not sure at that part this is opengl fault but
<Filystyn>
was trying to fix that anyway ;-)
<benley>
fresheyeball: any webcam that works with linux in general should work with nixos, for what it's worth
<fresheyeball>
benley: I don't see any nix packages for webcams other than facetimehd
<benley>
so if you find someone saying a webcam works with ubuntu, odds are it will also work with nixos
<fresheyeball>
benley: how would I get it going? Do I need to make my own package?
<vcunat>
Filystyn: I believe opengl is OK. We're using nonstadard paths so I suspect their detection is confused by that.
<fresheyeball>
benley: sure, but how, if there is not an existing package?
<benley>
fresheyeball: I use "cheese"
<benley>
which is nixpkgs.gnome3.cheese
<Filystyn>
ok
<DeaDSouL>
I understand that `nix-env -u` will upgrade the installed packages... but how can I update/upgrade the system packages ?
<benley>
(cheese being a photobooth type app, not video chat)
<vcunat>
DeaDSouL: nixos' systemPackages are always the same versions as the system - you just nixos-rebuild...
thomasfuston has joined #nixos
<DeaDSouL>
vcunat: what if there is a patch, or security fix or something like that
<vcunat>
you update the system
<eacameron>
Is there an alternative to ngrok that is FOSS and able to be self-hosted?
<vcunat>
there are security patches for the kernel, for example and one doesn't put it into systemPackages
<DeaDSouL>
vcunat: how can I update the system? only with `nixos rebuild` ?
<DeaDSouL>
I mean `nixos-rebuild`
<vcunat>
there are various options - `nixos-rebuild boot` and `nixos-rebuild switch` are the most common ones, I think.
<dash>
eacameron: yes. it's called ssh
<vcunat>
(depending whether you want to apply as much as possible immediately)
<dash>
eacameron: specifically, the -R flag
<DeaDSouL>
vcunat: thanks... I have to read the manual I guess...
<eacameron>
dash: reeaaallyy...:D Any good tutorials on that I could look at?
<dash>
eacameron: probably
<eacameron>
dash: I'll google it, thanks.
cpennington has quit [(Remote host closed the connection)]
<vcunat>
DeaDSouL: `man nixos-rebuild` is relatively short
<vcunat>
copumpkin: did you reproduce that fortran problem with multiple packages?
jrolfs has joined #nixos
drasich has joined #nixos
<vcunat>
It might be there's something special needed for clang+gfortran support.
chakerbenhamed has joined #nixos
<vcunat>
(Compiling special cases by gcc seems fine to me as a transient solution.)
<DeaDSouL>
nh2: thanks... I'm checking `networkmanager-qt` first
paperd has quit [(Ping timeout: 240 seconds)]
jrolfs has quit [(Ping timeout: 246 seconds)]
<copumpkin>
vcunat: I guess I'm just looking for the "hardest to screw up" solution. LnL says that if you use gfortran.cc.lib as your buildInput it works fine with no additional flags (building with clang), but given that most of nixpkgs is written by linux users and buildInputs = [ gfortran ]; works for them, I'd like it to work seamlessly for us too. Perhaps the cc-wrapper should get a lib output that just symlinks the lib from the parent, to address
<copumpkin>
that sort of thing?
obadz has quit [(Ping timeout: 260 seconds)]
obadz has joined #nixos
<LnL>
let me check if I get the same issue as you with gfortran.cc
jensens has joined #nixos
<LnL>
vcunat: oh, I'm also seeing issues with libc++ since I rebased it over staging
<copumpkin>
what issues?
stepcut has quit [(Remote host closed the connection)]
paperd has joined #nixos
ambro718 has joined #nixos
<vcunat>
that sounds promising
<vcunat>
LnL: do you have a log?
<exarkun>
is it expected that dockerTools.buildImage doesn't inherit config from the base image specified with fromImage?
<vcunat>
Hydra logs seem fine now, but not for this Darwin failure
<exarkun>
I set an env var in one and built another from it and the env var is not set in the container.
<vcunat>
but not everything is documented, I think
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<LnL>
^ yeah, I don't think it covers everything but it's a very good starting point
<ma9e>
ah, missed that. thanks!
hiratara has joined #nixos
<vcunat>
I think the visibility of that manual should get improved.
<ashkitten>
Hey, I'm trying to write a gesture handler for libinput but I'm getting stuck because when I try to background it, it stops reading input. The relevant lines are these: https://ptpb.pw/oX3Z
bennofs has quit [(Ping timeout: 246 seconds)]
data8 has quit [(Quit: nite nite)]
<vcunat>
LnL: for now I suggest I downgrade the pkgconfig version for Darwin only, so we can stabilize staging. Any better ideas?
<LnL>
I'm testing 0.29.2
<vcunat>
yes, assuming upgrade doesn't fix it by itself
jmiven has quit [(Quit: WeeChat 1.7)]
<LnL>
yeah if that's the case I we might need to change something in the stdenv, not sure
bennofs has joined #nixos
jrolfs has joined #nixos
jmiven has joined #nixos
eacameron has quit [(Remote host closed the connection)]
ma9e has quit [(Remote host closed the connection)]
<copumpkin>
LnL: interesting!
<copumpkin>
LnL: that explains why it works for me and not for others
<LnL>
how?
<copumpkin>
I'm guessing it's only available on 10.12 and above?
<LnL>
my build machine still runs 10.11 like the hydra machines
bennofs has quit [(Ping timeout: 264 seconds)]
<LnL>
yeah it's not there
<copumpkin>
yeah
<copumpkin>
which I don't think had that library
<copumpkin>
but no clue why libc++ suddenly started wanting it
<copumpkin>
especially an old version of libc++
jrolfs has quit [(Ping timeout: 260 seconds)]
<LnL>
works with pkgconfig 0.29.2
<vcunat>
you're speaking of libsystem_symptoms.dylib ?
<copumpkin>
yeah
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to staging: https://git.io/vSgzr
<ashkitten>
Why can't nix-shell shebang scripts output to stdout from the background?
<copumpkin>
LnL: how'd you track it down to that?
<copumpkin>
(out of curiosity)
<LnL>
git bisect :)
<vcunat>
bisect?
<copumpkin>
lol fair enough
<LnL>
it was also the only thing that looked suspicious in the diff with master
ambro718 has quit [(Ping timeout: 246 seconds)]
<copumpkin>
oddly enough, symptoms doesn't seem to be in pkg-config
<copumpkin>
I wonder where that's coming from
ivan_ has joined #nixos
sellout- has quit [(Quit: Leaving.)]
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vSggu
<NixOS_GitHub>
nixpkgs/staging c6bc4cf Vladimír Čunát: Merge branch 'master' into staging
<LnL>
copumpkin: I get the same thing with gfortran.cc
<copumpkin>
as me or as .lib?
<LnL>
same linking issue as you
<copumpkin>
weird
<copumpkin>
so .cc.lib behaves different' from .cc
<copumpkin>
oh I guess there's another output that has a subset of the libraries in it
<copumpkin>
and it grabs that first?
takle has quit [(Remote host closed the connection)]
<jophish>
Does anyone know off the top of their head where nix-copy-closure keeps the files while they're being copied over?
<ivan_>
hello guys! I tried to install a localized version of NixOS 16.09. Turned out KDE4.14 doesn't respect the option i18n.defaultLocale. I have found the package kde4.l10n. nix-build -A kde4.l10n even download the files I want. Unfortunately when I try adding it to my configuration.nix, I get the error: "cannot coerce a set to a string, at /home/ivan/d/nixpkgs/lib/strings.nix:232:44" (https://pastebin.com/5vyw5a3d). How can I install the
<ivan_>
*localization
coltfred has quit [(Ping timeout: 264 seconds)]
byteflam1 has quit [(Ping timeout: 240 seconds)]
byteflame has quit [(Ping timeout: 240 seconds)]
<jophish>
ah, it appears to be /nix/store/nix-xxxxx-x/
<ndowens08>
sigh getting off here, internet has gotten too slow to handle, cya later
<vcunat>
ivan_: kde4.l10n is a set, not a package
DeaDSouL has quit [()]
<vcunat>
you probably wanted kde4.l10n.ru
<vcunat>
(but I don't know if adding it this way will do what you need)
ndowens08 has quit [(Ping timeout: 260 seconds)]
justbeingglad has joined #nixos
justbeingglad has left #nixos []
<ivan_>
vcunat: yes, that is exactly what I wanted
<ivan_>
thank you very much, now I can select the locale in kde settings
<vcunat>
:)
<NixOS_GitHub>
[nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vSgwo
<NixOS_GitHub>
nixpkgs/master 195efed Ambroz Bizjak: qt58: Fix path to qhelpgenerator in cmake file....
<NixOS_GitHub>
nixpkgs/master 10dc47e Vladimír Čunát: Merge #24558: qt58: Fix path to qhelpgenerator...
thc202 has quit [(Ping timeout: 246 seconds)]
<NixOS_GitHub>
[nixpkgs] vcunat closed pull request #24558: qt58: Fix path to qhelpgenerator in cmake file. (master...qt-fix) https://git.io/vSlXo
<vcunat>
hyper_ch: ^^ vv
alx741 has joined #nixos
<ivan_>
should things like this have notes in the manual? I can write a patch to add a note. Another difficulty I had is that qbittorrent didn't respected LANG environment variable and had its own setting. And now the last thing I'm going to troubleshoot is how to change the language of skype.
<vcunat>
kdevelop builds now; I expect it will get into the unstable channel within a couple days
alx741 has quit [(Client Quit)]
jensens has quit [(Ping timeout: 264 seconds)]
<vcunat>
ivan_: yes, it might be good to document those, but kde4 desktop has been removed, for example
alx741 has joined #nixos
fresheyeball has quit [(Quit: WeeChat 1.7)]
<ivan_>
vcunat: it can be documented for kde5 then
<vcunat>
it can, if it works the same there
<vcunat>
the DE is called Plasma 5, actually
<vcunat>
(in newer versions we've renamed KDE stuff to better conform to upstream)
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vSgrS
nschoe has quit [(Remote host closed the connection)]
nschoe has joined #nixos
markus1189 has joined #nixos
markus1199 has joined #nixos
<ivan_>
BTW I saw the PR https://github.com/NixOS/nixpkgs/pull/22678, and I was surprised that KDE 4 is removed. I do understand the reason for deprecation (old and insecure), but is it enough to justify the removal? Last time I tried KDE 5 was slightly less stable for me than KDE 4. I wanted to try it once more when I update to NixOS 17.03, and I thought it would be not to difficult for me to revert the removal of KDE4 and continue to use it
<ivan_>
But I discussed the issue with a friend of mine and he was surprised about the removal too. And he told me that I probably should report the issue then live on patched nixpkgs.
markus1209 has quit [(Ping timeout: 256 seconds)]
markus1219 has quit [(Ping timeout: 268 seconds)]
<gchristensen>
ivan_: " files = {
<gchristensen>
"baremetal_0": "./types/
<ivan_>
And how much people would oppose if someone ask for returning KDE 4?
<exarkun>
is it expected that dockerTools.buildImage doesn't inherit config from the base image specified with fromImage? I set an env var in one and built another from it and the env var is not set in the container. What's a good way to define an image based on another and have it inherit config settings?
<gchristensen>
ivan_: "is it enough to justify the removal?" yes, during the entire time of KDE4 being in NixOS, nobody maintained it.
railswalker has joined #nixos
<railswalker>
how would I setup a dual display situation? I'd like to mirror the display on my monitor and TV. I know I can use xrandr manually, but is there a Nix configuration for that?
<gchristensen>
ivan_: best way to move forward is use plasma5 and report bugs so we can fix them. being stuck in the past and pretending the future won't happen isn't a very good strategy.
<gchristensen>
ivan_: even better would be for you to report bugs and help us fix them :)
<avn>
ivan_: you need whole kde4? or only single app from it?
marsam has quit [(Remote host closed the connection)]
<ivan_>
avn: this is just a hypothetical scenario, I would like to evaluate kde5 again when I update to NixOS 17.03.
<gchristensen>
FWIW kde5 doesn't exist according to KDE, it is called Plasma5 :)
<avn>
ivan_: main problem was -- it was totally unsupported ;)
<ivan_>
gchristensen: I tried reporting bugs against KDE 4 (against plasma) in 4.4-4.7 timeframe and the majority of them was closed with explanation like "we rewrote everything, now your report doesn't apply". I regret the time wasted on reporting these bugs.
<gchristensen>
all I can say is I'm sorry that is what happened, and I hope you try again.
Isorkin has quit [(Ping timeout: 260 seconds)]
<joepie91>
ivan_: oh man, I had this issue when I made the mistake of using Fedora for a while
<joepie91>
file a bug
<joepie91>
hear nothing about it for 3 months
<joepie91>
"your bug is being automatically closed because of a new Fedora release, please create a new bug if it persists"
<joepie91>
rinse repeat :|
<ivan_>
ok, I think the best way to go forward for me is to try PLASMA5 and then think what can be done about it
<ivan_>
thank you guys for your time
<gchristensen>
I hope plasma5 works for you
<avn>
joepie91: absolutely demotivating and meaningless message. Especially in case, if your employer still stick $current-2 major release
<avn>
ivan_: you always can fall back to something simpler, like awesome, qtile or fvwm ;)
<joepie91>
avn: yeah, it doesn't exactly encourage people to report bugs... I gave up myself, and I generally make a point of filing bugs about stuff even if I don't intend on ever using the thing again
<joepie91>
but when everything gets thrown into a big black hole...
<joepie91>
(same with Chromium, which has terrible/non-existent triaging)
<ivan_>
avn: yes, I can live with many options. Unfortunately the last installation of NixOS I did was not for me and not for a computer savvy user. And I wanted something that used default desktop metaphor and mostly worked. KDE4 worked reasonable well for this.
railswalker has quit [(Ping timeout: 260 seconds)]