gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
<yl[m]> Church_: I'm trying to provide a shell.nix for a Rails app for development
<yl[m]> not release (at least not yet)
<Church_> Oh here, one second.
<Church_> samueldr: It alright if I release that awful hack into the world? :P
<Church_> yl[m]: Follow this? https://nixos.wiki/wiki/Packaging/Ruby
<Church_> yl[m]: What's the rails app source?
<yl[m]> Church_: what do you mean by source?
<samueldr> Church_: though here yl[m] wants to use bundix and create lock files
<samueldr> so not sure it would help :)
<Church_> Are you trying to develope a rails app from scratch or do you have something to port?
<Church_> samueldr: Ahhh, fair point.
<manveru> just `bundix -l` to make the lockfile and gemset at once :)
<Church_> ^
<Church_> Listen to the author. ^
<manveru> no clue why people still use magic... should've never added it :P
<yl[m]> oh, let me try the -l
<Church_> samueldr: While you're here. On that ubridge package I built earlier, how would I make sure the dynamic path creator(?) (thing that auto adds stuff to PATH) picks it up.
ambro718 has quit [Ping timeout: 272 seconds]
erictapen has joined #nixos
<samueldr> huh?
<yl[m]> also interesting in https://nixos.wiki/wiki/Packaging/Ruby they don't load the ruby gems as part of the shell
<Church_> samueldr: Poor wording, one second.
<samueldr> as long as your derivation puts things in the `bin` subdirectory, any means to install it will work
<samueldr> e.g. you could nix-env -i ./result
<samueldr> it should be in the PATH
<samueldr> but do note that your specific project kinda wants some capabilities, which may cause issues :)
<Church_> samueldr: That nix-env worked, cheers mate!
drakonis has joined #nixos
<Church_> Okay one more step and gns3 is fully working.
<Church_> Then I can start debugging r2
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53361 → debootstrap: 1.0.111 -> 1.0.112 → https://git.io/fhYyY
<Judson> yl[m] I have that problem when I try to do bundle ops from inside the shell.
<yl[m]> I think I figured out what I was doing wrong. I was using `bundlerEnv` inside of a nix-shell for developing that same app. Looking now at https://nixos.wiki/wiki/Packaging/Ruby it's actually advising to use `ruby.devEnv` and do the usual ruby workflow
<yl[m]> yea thank you Judson !
<Church_> samueldr: Okay question, how would I be able to set a cap on that ubridge binary? Seems I need that for it to work.
<Judson> Huh. Personally I like using the shell and including the gems there.
<Church_> samueldr: First, awesome! What are you using to display that?
<Church_> samueldr: Secondly I'm assuming the "that you'll need to remove" is definitive?
<Church_> Need to set capabilities so it can MiTM network stuff on my device
<yl[m]> Judson: I'm trying to Nixify the company at my new job. So the less new stuff the easier it's going to be ;)
<Church_> As is intended.
<Church_> Thanks
<samueldr> Church_: nothing in the store can have capabilities or suid, or anything more fancy than r-xr-xr-x or r--r--r--
<{^_^}> [nixpkgs] @Ma27 opened pull request #53362 → pythonPackages.Kajiki: fix build → https://git.io/fhYyV
<Church_> Frick.
<samueldr> Church_: so nixos had to devise a way to allow those to work
<Church_> Oh?
<Church_> Ah, didn't see that somehow... >_>
<samueldr> ping is added to `scurity.wrappers` with the capabilities it needs
<samueldr> (with fewer spelling mistakes)
<samueldr> so you should be able to do the same
<samueldr> but you'll need to install it via an overlay in your system
<samueldr> (or through a customized fork of nixpkgs)
<samueldr> because nix-env installed things cannot make use of those tricks
<Church_> Gotcha... got a link on overlays? Haven't touched them much yet.
<gchristensen> Judson: leavedotgit is unstable. the Nix expression for fetchGit tries very hard to make it stable, but it doesn't work all the time
<schmittlauch[m]> ohai
<samueldr> Church_: the doc seems kinda thin at first, but once understood, it's hard to write much more without making it more confusing :/ https://nixos.org/nixpkgs/manual/#chap-overlays
<schmittlauch[m]> my nix-env is acting weird: `nix-env -q` always just returns `home-manager-path` as the only single line.
<samueldr> Church_: nixos has an additional method to use overlays
ck3d has quit [Quit: WeeChat 2.2]
<samueldr> Church_: so you probably want to end up using nixpkgs.overlays to make things easier on you at first
<schmittlauch[m]> What I want to achieve in the end: Installing a package from my custom nixpkgs checkout: `nix-env -I nixpkgs=/home/spiollinux/src/nixpkgs/default.nix -A ktouch` But this seems to suffer from the same problem.
erictape1 has joined #nixos
<samueldr> Church_: and both to make it work in the most painless manner, and to eventually allow you to contribute the package to nixpkgs, you probably want to make your derivation work with callPackage
<schmittlauch[m]> So `nix-env -I nixpkgs=/home/spiollinux/src/nixpkgs/default.nix -q` again only returns the same single line.
gagbo has quit [Quit: I'm out !]
<schmittlauch[m]> What am I holding wrong? :3
<gchristensen> nix-env needs `-i` to install
<gchristensen> so -iA ktouch
<gchristensen> but seems you probably should use home-manager to install it insead of nix-env
<yl[m]> Judson: damn it, the ruby.devEnv worked on Linux but not on Mac! https://gist.github.com/kalbasit/eda3836318ea42ba3a457bc7aa96bce0
dermetfan has quit [Ping timeout: 246 seconds]
erictapen has quit [Ping timeout: 268 seconds]
mbrgm has quit [Quit: ZNC 1.7.1 - https://znc.in]
mbrgm has joined #nixos
<{^_^}> [nixpkgs] @Ma27 opened pull request #53363 → pythonPackages.Pweave: fix build → https://git.io/fhYSf
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e753bc125f2 (from 46 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @luigy opened pull request #53364 → boehmgc: fix musl build → https://git.io/fhYSq
<schmittlauch[m]> gchristensen: I indeed use home manager, but I don't want to rebuild my whole profile based on it, just test the package I built. Someone recommended me to try it with nix-env instead of just running the build result.
<schmittlauch[m]> and yes, I tried it with the -i flag: error: attribute 'ktouch' in selection path 'ktouch' not found
<gchristensen> ah, nixkgs.ktouch
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
orivej has quit [Ping timeout: 258 seconds]
<schmittlauch[m]> gchristensen: error: attribute 'nixpkgs' in selection path 'nixpkgs.ktouch' not found
<Church_> samueldr: So as far as a basic overlay, would this work to start? https://paste.rs/1sv
<samueldr> Church_: that's not what overlays are used for
<Church_> Hmm, evidently I misunderstood.
<samueldr> Church_: think of overlays as a means to add, subtract or modify the nixpkgs packages tree
<Church_> And isn't that what I'm doing? Ovveriding and adding to security.wrappers?
<samueldr> security.wrappers is part of the nixos configuration
<Church_> Ah
<samueldr> so in your case, you would want to add your ubridge(?) package as something like `self: super: { ubridge = callPackage ./path/to/ubridge {}; }` and *then* in the nixos configuration add a wrapper to it
<samueldr> since that ^ example adds `ubridge` in the attrset, you would have it now in `pkgs`
<samueldr> (oh, it would be super.callPackage ./path/to/ubridge)
<samueldr> then you would be able to refer to it in your nixos configuration, adding the wrapper as `security.wrappers.ubridge = {...}`
<Church_> Okay I thought that would work for the wrappers.
<Church_> samueldr: The path to ubridge, would that just be the path to the .nix that builds it? Or would it be the nix store path?
<samueldr> to a callPackage-able derivation
<samueldr> I think there's gaps in your knowledge about derivations and callPackage, since you haven't contributed to nixpkgs yet :/
<samueldr> (unless you now what I mean by callPackage-able)
<samueldr> if you look here, the derivation file is presented as a "set pattern" function, instead of importing itself nixpkgs and such
<samueldr> when you use `callPackage` with a path to such a file it will, in some way, inject dependencies
eadwu has joined #nixos
<Church_> Okay yeah that's what I thought you meant.
tilpner has quit [Quit: WeeChat 2.3]
<Church_> samueldr: So I have the wrapper written, and my overlay located in ~/.config/nixpkgs/overlays.nix Do I need to import the overlay directly in config.nix or is it done automatically?
<{^_^}> [nixpkgs] @aszlig opened pull request #53365 → nixos/nsd: Don't override bind via nixpkgs.config → https://git.io/fhY9p
ris has quit [Ping timeout: 252 seconds]
thc202 has quit [Ping timeout: 245 seconds]
<Church_> Nevermind I see how to do it.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53366 → ddcutil: 0.9.3 -> 0.9.4 → https://git.io/fhYHJ
<Church_> samueldr: If I'm setting mutiple capabilities, would a single string with each cap deliniated by a , work? Ie. capabilities = "cap1,cap2";
<{^_^}> [nixpkgs] @peterhoeg merged pull request #53235 → syncthing: 0.14.52 -> 1.0.0 → https://git.io/fhmeM
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fhYHn
<{^_^}> [nixpkgs] @jtojnar pushed to master « pulseeffects: 4.4.4 → 4.4.5 »: https://git.io/fhYHB
<samueldr> I am unsure, Church_, https://nixos.org/nixos/options.html#security.wrappers
<Judson> yl[m], dunno what to tell you about Macs
erictape1 has quit [Ping timeout: 272 seconds]
<Church_> samueldr: Welp my config is building but opening the binary I'm still shite out of luck. Still asks me to setcap the binary. Sigh.
<Church_> I could just run as root but that's such a hack
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53367 → checkstyle: 8.15 -> 8.16 → https://git.io/fhYHo
<samueldr> Church_: `type $that_binary` in your shell (type is like which)
<samueldr> if it's not from /run/wrappers/bin (like sudo) the security wrapper is somehow wrong or not working
<Church_> /run/wrappers/bin/ubridge
<samueldr> another possibility is that the software itself checks the running file's caps, which it won't see since it's on the wrapper :/
<Church_> Christ.
<Judson> So, from earlier: fetchgit is called with leaveDotGit, do I understand right that *any* change to the upstream git repo will break the sha256 on the fixed output?
pie__ has quit [Remote host closed the connection]
<samueldr> (but that's purely conjecture)
pie__ has joined #nixos
<samueldr> Church_: getcap /run/wrappers/bin/*
<samueldr> does it look like ubridge's is right?
<Church_> samueldr: So running capsh --print on it gave me something interesting. https://paste.rs/Kxo
<Church_> Sec
<Church_> samueldr: Oh yeah it does.
<Church_> Or huh
<samueldr> cap_net_admin,cap_net_raw=ep
<samueldr> the makefile sets those
<samueldr> probably important to have both
<Church_> samueldr: Yeah I tried that, same error.
fusion809 has joined #nixos
<Church_> I'm setting one as cap_net_raw=ep and it says cap_net_raw+ep
<Church_> Maybe that's it.
<Church_> Because it's cap_net_wrap that's key.
eadwu has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53368 → ansible: 2.7.4 -> 2.7.5 → https://git.io/fhYQt
eadwu has joined #nixos
<siraben> Is there an IRC channel for urxvt?
<siraben> I tried looking in #urxvt and #rxvt but they seem very bare
<{^_^}> [nixpkgs] @delroth opened pull request #53369 → Re-add security features based on GCC plugins in 4.18+ hardened kernels → https://git.io/fhYQG
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhYQC
<yl[m]> I was able to move forward on the issue I had earlier, but now libv8 is failing (again on Mac) with the error message: `ld: unknown option: -Wl,-search_paths_first` https://www.irccloud.com/pastebin/66ZNShC0/shell.nix
Cale has quit [Remote host closed the connection]
<Church_> samueldr: So fun fact, that config I linked, after a nixos rebuild switch I can no longer install packages via nix-env -i as non root users.
<Church_> This rabbit hole is getting... irritating.
orivej has joined #nixos
<Church_> samueldr: https://paste.rs/pnx
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53370 → ckbcomp: 1.187 -> 1.188 → https://git.io/fhYQP
<samueldr> nixpkgs.config.packageOverrides != nixpkgs.overlays, though I'm unsure if it's what's at fault
<samueldr> in fact, looking at it, and packageOverrides, it might just be it
<samueldr> packageOverrides should be a function returning an overlay, "only one parameter" (don't know the fancy way to say the signature)
<Church_> Ah doy, saw a recentish github that used it since I didn't see it while browsing the docs. Doy
<Church_> Ahhhhh
<samueldr> while your functions is self: super:, which makes it a function returning a function returning an attrset
<Church_> samueldr: So should I just replace PackageOverride with nixpkgs.overlays = ...
<samueldr> maybe, hopefully
<Church_> Okay think I got it working.
<{^_^}> [nixpkgs] @hedning merged pull request #53359 → copyq: 3.7.1 -> 3.7.2 → https://git.io/fhYMT
<{^_^}> [nixpkgs] @hedning pushed commit from @r-ryantm to master « copyq: 3.7.1 -> 3.7.2 (#53359) »: https://git.io/fhYQ7
<Church_> And nope, not entirely. Still can't add packages.
<Church_> Which is annoying, but I can rollback and I don't add via nix-env very often anyway.
<Church_> Usually just do it via home-manager via nixos-rebuild
<Church_> And the ubridge error is still there as well. What the hell.
orivej has quit [Ping timeout: 245 seconds]
esmerelda has joined #nixos
<Church_> And my radare2 issue has such a stupid answer.
<Church_> Ugh.
<esmerelda> hey, what's the best way to get the path to the currently-executing script?
<esmerelda> wait, there's probably no good reason to do that
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
<esmerelda> my scenario is that I have a nix expression to set up my home environment via buildEnv, and it writes an update-profile script with the command to use nix-env to refresh itself
<esmerelda> but I can't find a way to not hardcode its path
<Church_> Why not just home-manager?
ottidmes has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @worldofpeace pushed to master « lollypop: 0.9.908 -> 0.9.909 »: https://git.io/fhY78
<esmerelda> I'm running out of excuses, but mostly because I'm pretty new to Linux (not to mention Nix) and I want to master NixOS before invoking more magic
gagbo has joined #nixos
esmerelda has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53371 → brave: 0.57.18 -> 0.58.18 → https://git.io/fhY7p
jordansinn has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
cyounkins has joined #nixos
duoi is now known as du_oi
du_oi is now known as duoi
<{^_^}> [nixpkgs] @Ma27 merged pull request #53367 → checkstyle: 8.15 -> 8.16 → https://git.io/fhYHo
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fhY5I
ddellacosta has joined #nixos
ddellacosta has quit [Ping timeout: 250 seconds]
joepie91_ccc has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53372 → caf: 0.16.2 -> 0.16.3 → https://git.io/fhY5R
<{^_^}> [nixpkgs] @adisbladis merged pull request #53270 → nodejs: 6.15.1 -> 6.16.0, 8.14.1 -> 8.15.0, 10.12.0 -> 10.15.0, 11.5.0 -> 11.6.0 → https://git.io/fhm4q
<{^_^}> [nixpkgs] @adisbladis pushed 5 commits to staging: https://git.io/fhY50
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #53373 → nnn: remove unused dep, install shell completions → https://git.io/fhY5D
Supersonic has quit [Ping timeout: 264 seconds]
Supersonic has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #53374 → recutils: 1.7 -> 1.8 → https://git.io/fhYdm
jasongrossman has joined #nixos
init_6 has joined #nixos
wedens has joined #nixos
ezrakilty has quit [Quit: ezrakilty]
griff_ has quit [Quit: griff_]
sigmundv_ has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @adisbladis opened pull request #53375 → Backport nodejs from #53270 → https://git.io/fhYFf
jtojnar has quit [Quit: jtojnar]
Sheth has joined #nixos
hedning has joined #nixos
drakonis_ has joined #nixos
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
drakonis has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53376 → clickhouse: 18.14.18 -> 18.16.1 → https://git.io/fhYFo
cyounkins has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #53377 → bfs: 1.2.4 -> 1.3.1 → https://git.io/fhYFp
pie__ has quit [Remote host closed the connection]
pie__ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53378 → closurecompiler: 20181125 -> 20181210 → https://git.io/fhYbt
<luigy> is there a way to launch a headless chromium in a build sandbox? Getting [0104/034037.779446:FATAL:platform_font_linux.cc(83)] Check failed: InitDefaultFont(). Could not find the default font
<luigy> using nixos 18.09 and my derivation has tests that launches a headless chrome
coconnor has quit [Ping timeout: 272 seconds]
<adisbladis> luigy: Have you tried Xvfb?
Wharncliffe has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53371 → brave: 0.57.18 -> 0.58.18 → https://git.io/fhY7p
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « brave: 0.57.18 -> 0.58.18 »: https://git.io/fhYb2
lassulus_ has joined #nixos
sanscoeu_ has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53360 → python{2,3}Packages.pytest-repeat: fix build → https://git.io/fhYDb
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @Ma27 to master « python{2,3}Packages.pytest-repeat: fix build »: https://git.io/fhYbr
lassulus has quit [Ping timeout: 240 seconds]
lassulus_ is now known as lassulus
sanscoeur has quit [Ping timeout: 245 seconds]
hl has quit [Ping timeout: 246 seconds]
sanscoeu_ has quit [Ping timeout: 250 seconds]
eadwu has quit [Ping timeout: 258 seconds]
grp has quit [Quit: box shutting down...]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53379 → bdf2psf: 1.187 -> 1.188 → https://git.io/fhYNe
<dmj`> how do I delete obsolete AWS resources w/ nixops, specifically key pairs no longer mentioned, nixops -k doesn't do it
<Church_> Anybody who's worked with security.wrappers to set caps on a binary, would you know why a binary depending on the former binary not pick up on it? It keeps asking me to set the caps myself which doesn't work obviously.
<{^_^}> [nixpkgs] @HaoZeke opened pull request #53380 → conan: 1.6.0 -> 1.9.1 → https://git.io/fhYNG
<wedens> Church_: you want to depend on a binary in /run/wrappers/bin?
<Church_> wedens: Yes, I also just realized it's probably not seeing the one in /run/wrappers/bin/ which has caps set. But maybe seeing the "real
<Church_> "real" one in the store.*
<Church_> wedens: Specifically I have ubridge built and package which gns3 depends on to create nat devices so as to give simulated network devices a net connection
<wedens> yeah, if you do "{pkgs.abc}/bin/abc" it'll just give you the store one.. I've had this problem before and decided yo just rely on PATH
<Church_> wedens: Well problem is GNS3 just auto finds my ubridge binary.
<Church_> Based on PATH I can't set a preference for it or anything.
<Church_> wedens: I have a git with the necessary files if you want to take a quick look.
<dmj`> Is it possible to change a deployment name with nixops?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53381 → cantata: 2.3.2 -> 2.3.3 → https://git.io/fhYN8
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ba1a181a88c (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<wedens> Church_: I've never used gns3, but it seems to be configurable https://github.com/GNS3/gns3-server/blob/70cbc0260b6faa64be09a0c4813acc413b9eb9f8/conf/gns3_server.conf#L33
<Church_> I just remember it has a conf file...
* Church_ needs to go auto termiante now
<Church_> remembered*
<Church_> wedens: Thanks, I need to go off myself now. jfc
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53382 → abcmidi: 2018.12.01 -> 2018.12.21 → https://git.io/fhYNH
Sheth has quit [Ping timeout: 258 seconds]
cyphase has quit [Ping timeout: 244 seconds]
cyphase has joined #nixos
<Izorkin> Mic92: with this PR #47156 not worked prosody, issue #53131
<{^_^}> https://github.com/NixOS/nixpkgs/pull/47156 (by Mic92, 14 weeks ago, merged): luaPackages.luadbi: 0.5 -> 0.6
<{^_^}> https://github.com/NixOS/nixpkgs/issues/53131 (by Izorkin, 3 days ago, open): Prosody: error build configuration
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53383 → angelscript: 2.32.0 -> 2.33.0 → https://git.io/fhYAI
Izorkin has quit [Quit: ZNC 1.7.1 - https://znc.in]
Izorkin has joined #nixos
jackdk has quit [Ping timeout: 258 seconds]
mtesseract has joined #nixos
mtesseract has quit [Client Quit]
drakonis has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @Fuuzetsu merged pull request #53381 → cantata: 2.3.2 -> 2.3.3 → https://git.io/fhYN8
<{^_^}> [nixpkgs] @Fuuzetsu pushed 2 commits to master: https://git.io/fhYxL
pie__ has quit [Remote host closed the connection]
pie__ has joined #nixos
Sheth has joined #nixos
gagbo has quit [Quit: I'm out !]
lord| has quit [Quit: WeeChat 2.3]
Izorkin has quit [Quit: ZNC 1.7.1 - https://znc.in]
Izorkin has joined #nixos
endformationage has quit [Quit: WeeChat 2.3]
<{^_^}> [nixops] @aszlig opened pull request #1070 → hetzner: Set prefix length to /32 for main address → https://git.io/fhYxF
m0rphism has quit [Quit: WeeChat 2.2]
Izorkin has quit [Client Quit]
<{^_^}> [nixpkgs] @7c6f434c merged pull request #53383 → angelscript: 2.32.0 -> 2.33.0 → https://git.io/fhYAI
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fhYxN
Izorkin has joined #nixos
m0rphism has joined #nixos
lord| has joined #nixos
init_6 has quit [Ping timeout: 246 seconds]
init_6 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53385 → blueman: 2.0.6 -> 2.0.7 → https://git.io/fhYpw
joncfoo has quit [Quit: ZNC 1.7.1 - https://znc.in]
joncfoo has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53386 → boehmgc: 8.0.0 -> 8.0.2 → https://git.io/fhYpX
IRCsum has quit [Ping timeout: 264 seconds]
IRCsum has joined #nixos
Sheth is now known as mithril
iqubic has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @dtzWill closed pull request #53386 → boehmgc: 8.0.0 -> 8.0.2 → https://git.io/fhYpX
<{^_^}> [nixpkgs] @dtzWill merged pull request #52745 → boehmgc: 8.0.0 -> 8.0.2 → https://git.io/fhUvu
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fhYhJ
palo1 has joined #nixos
palo has quit [Ping timeout: 272 seconds]
palo1 is now known as palo
griff_ has joined #nixos
orivej has joined #nixos
fusion809 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Izorkin opened pull request #53387 → luaPackages.luadbi: 0.6 -> 0.7.1 → https://git.io/fhYhP
<{^_^}> [nixpkgs] @Mic92 merged pull request #53059 → kcharselect: initial packaging → https://git.io/fhLYA
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fhYhy
<{^_^}> [nixpkgs] @Mic92 merged pull request #53373 → nnn: remove unused dep, install shell completions → https://git.io/fhY5D
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fhYjk
<{^_^}> [nixpkgs] @Mic92 merged pull request #53382 → abcmidi: 2018.12.01 -> 2018.12.21 → https://git.io/fhYNH
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhYjW
mithril has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @wizzup opened pull request #53388 → fix #53336 : haskellPackage.greenclip missing dependency (xdmcp) → https://git.io/fhYju
Church_ has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #53321 → gzdoom: 3.6.0 -> 3.7.1 → https://git.io/fhYU5
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fhYjz
griff_ has quit [Quit: griff_]
ddellacosta has quit [Remote host closed the connection]
ddellacosta has joined #nixos
mtesseract has joined #nixos
ddellacosta has quit [Ping timeout: 258 seconds]
hyper_ch2 has joined #nixos
<{^_^}> [nixos-hardware] @Mic92 pushed to fix-nix-env « fix nix-env evaluation »: https://git.io/fhOeL
<{^_^}> [nixos-hardware] @Mic92 opened pull request #92 → fix nix-env evaluation → https://git.io/fhOeq
<{^_^}> [nixpkgs] @Mic92 merged pull request #53352 → ceph: fix dependencies → https://git.io/fhY25
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to master: https://git.io/fhOel
<{^_^}> [nixpkgs] @Mic92 closed pull request #53362 → pythonPackages.Kajiki: fix build → https://git.io/fhYyV
agander has joined #nixos
mithril has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #53388 → fix #53336 : haskellPackage.greenclip missing dependency (xdmcp) → https://git.io/fhYju
<{^_^}> [nixpkgs] @Mic92 pushed commit from @wizzup to master « haskellPackage.greenclip: add missing dependency (xdmcp) (#53388) »: https://git.io/fhOeQ
pukkamustard has joined #nixos
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
<Notkea> hello, how can I import a service module defined in a git repository into my main configuration? I have attempted using `with import (builtins.fetchGit …) {};` but the option that the module defines cannot be found
mabel has joined #nixos
<{^_^}> [nixpkgs] @andrew-d opened pull request #53390 → go: build each package single-threaded → https://git.io/fhOvY
<wedens> Notkea: you'll need to add the module to `imports`
<wedens> probably :)
<mabel> I'm not able to step into Python module code (from a nixpkg) with VSCode with the Python extension. there's so many factors that I have no idea if the issue lies with the VSCode nixpkg, or with vscode-python nixpkg, or my own foolishness. any tips?
<wedens> Notkea: try doing `imports = [ "${builtins.fetchGit {}} ];`
<wedens> missed the quote
<mabel> also, I seem to be missing the man pages for tmux. :/
<Notkea> wedens: thanks! it works™
Dedalo has joined #nixos
Makaveli7 has joined #nixos
mabel has quit [Ping timeout: 244 seconds]
mithril has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 merged pull request #53372 → caf: 0.16.2 -> 0.16.3 → https://git.io/fhY5R
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhOvj
Makaveli7 has quit [Quit: Leaving]
jomik has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
init_6 has quit [Ping timeout: 258 seconds]
goibhniu has joined #nixos
init_6 has joined #nixos
thc202 has joined #nixos
agander has quit [Read error: Connection reset by peer]
pukkamustard has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @HaoZeke opened pull request #53391 → minuet: Fix build → https://git.io/fhOf4
pukkamustard has joined #nixos
Makaveli7 has joined #nixos
Dedalo has joined #nixos
kai_w has joined #nixos
void__ has joined #nixos
Makaveli7 has quit [Ping timeout: 246 seconds]
<kai_w> Is there a way to get the nix expression for the current system configuration (not the contents of /etc/nixos/configuration.nix)?
lewo has joined #nixos
<ldlework> what's the difference?
<kai_w> I might have edited configuration.nix, but not activated it, or booted an earlier configuration from the boot menu
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wedens> so, you want derivation, not expression?
<wedens> expression is what you have in .nix file
<kai_w> the derivation is `nix show-derivation $(readlink /run/current-system)` right?
<wedens> yeah
orivej has joined #nixos
<kai_w> but I'd like to be able to read all the attributes/options (e.g. `boot.loader.grub.enable`), which don't exist on the derivation I think
<kai_w> and just reading the file doesn't work, because it could be out of sync with what is actually running
<wedens> it can't be out of sync. that's the point
<wedens> I mean the link
<kai_w> ah yeah - I meant /etc/nixos/configuration.nix
<kai_w> can I get the values of the options from something in /run/current-system?
<{^_^}> [nixpkgs] @xzfc opened pull request #53392 → xpointerbarrier: 17.11 -> 18.06 → https://git.io/fhOJc
<wedens> `nixos-option boot.loader.grub.enable`
<kai_w> "This command evaluates the configuration specified in /etc/nixos/configuration.nix"
<kai_w> which *can* get out of sync
<wedens> ah, I've forgotten about that
<hyper_ch2> sphalerit: howdy
<sphalerit> <freenode_wed "ah, I've forgotten about that"> hyper_ch2: o/
<hyper_ch2> sphalerit: easy question for you for the start of the new year... how can I run a script upon rebuilding nixos automagically? Basically I want to run https://paste.simplylinux.ch/view/raw/57bac981
<wedens> `system.activationScripts`?
<hyper_ch2> wedens: hmmm....... :9
psy3497 has joined #nixos
<psy3497> Hello! Anyone knows how to add a nixos configuration to grub's list? I am using UEFI if that matters.
<psy3497> The reason I'm asking this is I'm not using `nixos-rebuild switch`
FRidh has joined #nixos
<psy3497> I'm building the configuration with `nix-build` and then calling `result/bin/switch-to-configuration switch`
markuskowa has joined #nixos
<psy3497> which works but when I reboot that configuration is not added to grub's list so I end up with the last configuration that was built using `nixos-rebuild switch` and I have to manually switch again.
<{^_^}> [nixpkgs] @srghma opened pull request #53393 → hubstaff: 1.3.1 → 1.4.3 → https://git.io/fhOU3
ddellacosta has joined #nixos
void__ has quit [Quit: Leaving]
Makaveli7 has joined #nixos
ddellacosta has quit [Read error: Connection reset by peer]
void__ has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 5 commits to python-unstable: https://git.io/fhOUK
Makaveli7 has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @adisbladis closed pull request #49453 → Update nodejs-10_x to 10.13.0 → https://git.io/fx5FA
<sphalerit> <freenode_wed "`system.activationScripts`?"> wedens: definitely not!
<{^_^}> [nixpkgs] @adisbladis closed pull request #53272 → nodejs-slim-11_x: 11.5.0 -> 11.6.0 → https://git.io/fhm4F
<sphalerit> hyper_ch2: if you use an activation script your system will probably no longer boot
<sphalerit> Use a oneshot systemd service.
<sphalerit> Note that it won't run on rebuild but on configuration switching (including boot)
jacereda has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #53379 → bdf2psf: 1.187 -> 1.188 → https://git.io/fhYNe
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « bdf2psf: 1.187 -> 1.188 »: https://git.io/fhOUS
<hyper_ch2> sphalerit: why won't boot it as activation script?
psy3497 has quit [Quit: WeeChat 2.3]
<jacereda> how do you know which package pulls a certain dependency? I'm trying to install a package that pulls something only valid on other platforms but I don't know who is pulling that...
agander has joined #nixos
<wedens> jacereda: `nix-store -q --referrers`
<hyper_ch2> sphalerit: hmmm, I wonder if I should convert that script into a nixos module :)
<wedens> what's the problem with `activationScripts`? I'm curious to know
<jacereda> wedens: is that valid even when the package fails to install?
psy3497 has joined #nixos
justanotheruser has quit [Ping timeout: 268 seconds]
<wedens> jacereda: no. it works for what you have in the store
mtesseract has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dywedir merged pull request #53378 → closurecompiler: 20181125 -> 20181210 → https://git.io/fhYbt
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fhOUp
<jacereda> wedens: for some reason, it worked and it tells me futhark (the package I want to install) references ocl-icd (the package that fails to build on Darwin). But I can't see that dependency in futhark's package.yaml
<wedens> jacereda: check `nix why-depends nixpkgs.futhark nixpkgs.ocl-icd`
dermetfan has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
griff_ has joined #nixos
<psy3497> in continuation of my question: it seems that the files in /boot are updated with the new configuration after setting the current profile of system to be the new configuration.
<psy3497> But the grub menu is not updated.
<Myrl-saki> wedens: why-depends is for runtime dependencies and thus requires a build.
<Myrl-saki> wedens: why-depends technically works for .drvs now, but it still requires you to build, so it cannot be used for failing drvs.
<Myrl-saki> Maybe something changed over the months.
<jacereda> cannot build derivation '/nix/store/nvc1gznfwwm9pka6wk0r5k2fssgy89sw-futhark-0.8.1.drv': 1 dependencies couldn't be built
<Myrl-saki> jacereda: What I said is an explanation why why-depends is not the right tool.
<wedens> I've never tried using it on failing derivations ;)
<jacereda> is there some verbose flag that could help me diagnose the problem when building?
psy3497 has quit [Quit: WeeChat 2.3]
<jacereda> something that logs "pulling dependency X due to Y"
<jacereda> or some nix-repl magic?
johanot has joined #nixos
<wedens> try the same `nix-store` command but with --referrers-closure
psy3497 has joined #nixos
<{^_^}> [nixpkgs] @cdepillabout opened pull request #53397 → lib/modules: Add function to create option alias that respects priority → https://git.io/fhOT9
<{^_^}> [nixpkgs] @FRidh merged pull request #53385 → blueman: 2.0.6 -> 2.0.7 → https://git.io/fhYpw
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « blueman: 2.0.6 -> 2.0.7 »: https://git.io/fhOT7
<{^_^}> [nixpkgs] @FRidh merged pull request #53370 → ckbcomp: 1.187 -> 1.188 → https://git.io/fhYQP
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « ckbcomp: 1.187 -> 1.188 »: https://git.io/fhOTx
<{^_^}> [nixpkgs] @FRidh merged pull request #53366 → ddcutil: 0.9.3 -> 0.9.4 → https://git.io/fhYHJ
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « ddcutil: 0.9.3 -> 0.9.4 »: https://git.io/fhOke
<{^_^}> [nixpkgs] @FRidh merged pull request #53368 → ansible: 2.7.4 -> 2.7.5 → https://git.io/fhYQt
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « ansible: 2.7.4 -> 2.7.5 »: https://git.io/fhOkf
<{^_^}> [nixpkgs] @FRidh merged pull request #53361 → debootstrap: 1.0.111 -> 1.0.112 → https://git.io/fhYyY
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « debootstrap: 1.0.111 -> 1.0.112 »: https://git.io/fhOkT
<jacereda> wedens: that yields some information that I don't know how to interpret: https://gist.github.com/jacereda/933ad95dfcd0951acd739dd08620294b
<jacereda> wedens: there're 2 futhark packages because I've removed the old one at some point and tried to build the 0.8.1 version
<wedens> it'll probably make more sense with --tree option
<jacereda> wedens: error: query type '--tree' conflicts with earlier flag
<jacereda> wedens: I only used -q --referrers-closure --tree
<psy3497> I ould like to look at nixos-rebuild code to see what it invokes to update the grub entries, can anyone point me to the correct repository?
m15k has joined #nixos
<FRidh> ryantm: what do you think of grouping patch updates or commits (version is x.y.z where z updates) that each have less than 10 rebuilds in a single PR per day or so? Maybe it can reduce the overload of "noise" we get in the tracker. Also, because there's hardly ever something wrong with such updates it's convenient to merge them with a single click
<wedens> jacereda: what do you expect to see? It seems like ocl-icd is a direct dependency of futhark
<Myrl-saki> jacereda: Can you print the build log from the start?
<jacereda> wedens: I just fail to see why, if I checkout the packaged release and execute 'cabal2nix .' it doesn't show ocl-icd
<Myrl-saki> s/print/show/
<Myrl-saki> s/show/pastebin/
<psy3497> Nevermind, it is a bash script so I can just view it.
<jacereda> wedens: oh, great... I'll dig there, thanks
<jacereda> Myrl-saki: I'll try that and pastebin the logs if I still get failures, thanks
void__ has quit [Quit: Leaving]
Makaveli7 has joined #nixos
agander has quit [Ping timeout: 240 seconds]
void__ has joined #nixos
arjen-jonathan has joined #nixos
Makaveli7 has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @FRidh merged pull request #53055 → Add automatic generation of library function documentation → https://git.io/fhLqP
<{^_^}> [nixpkgs] @FRidh pushed commit from @tazjin to master « doc: Add automatic generation of library function documentation »: https://git.io/fhOIU
<jacereda> wedens: it's building now. So, are dependencies pulled also from script fields?
markuskowa has quit [Ping timeout: 256 seconds]
griff_ has quit [Quit: griff_]
<wedens> jacereda: yep. all dependencies are explicit
<makefu> hey all, are nixos sticker designs (especially the large ones with the white framing) available somewhere online? cc gchristensen
b1000101 has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #53329 → insomnia: 6.2.3 -> 6.3.2 → https://git.io/fhYOO
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhOI8
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fhOI4
<{^_^}> [nixpkgs] @Mic92 merged pull request #53387 → luaPackages.luadbi: 0.6 -> 0.7.1 → https://git.io/fhYhP
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhOI2
<{^_^}> [nixpkgs] @Mic92 merged pull request #53374 → recutils: 1.7 -> 1.8 → https://git.io/fhYdm
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhOIK
<{^_^}> [nixpkgs] @Mic92 merged pull request #53363 → pythonPackages.Pweave: fix build → https://git.io/fhYSf
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhOI6
<{^_^}> [nixpkgs] @FRidh closed pull request #53226 → Fix pysnmp derivation → https://git.io/fhqAe
psy3497 has quit [Quit: WeeChat 2.3]
arjen-jonathan has quit [Ping timeout: 264 seconds]
<nyanloutre[m]> hello ! Is there a way to know the hash to input in the `fetchpatch` function ?
<{^_^}> [nixpkgs] @primeos merged pull request #53138 → nixos/sway: Improve the wrapper → https://git.io/fhtrY
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/fhOLW
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken Hydra builds »: https://git.io/fhOL8
<Myrl-saki> nyanloutre[m]: One way is to use a 0 hash, another way is to use nix-prefetch-url.
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhOL0
<nyanloutre[m]> Myrl-saki: this will not work as fetchpatch is normalizing the downloaded file before computing the hash (so it will differ from nix-prefetch-url)
simukis has joined #nixos
<Myrl-saki> nyanloutre[m]: Then use a 0 hash.
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2019-01-04T08:47:36Z »: https://git.io/fhOLr
<nyanloutre[m]> Sorry but I don't know what you mean by this
<nyanloutre[m]> you mean put a dummy hash and look at the error ?
<hyper_ch2> sphalerit: what's wrong with the activation scripts?
<Myrl-saki> Yep.
<nyanloutre[m]> ok thanks
<hyper_ch2> wedens: I guess that probably the network stack isn't available at that time
<srk> ,tofu nyanloutre[m]
<{^_^}> nyanloutre[m]: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
init_6 has quit [Ping timeout: 246 seconds]
<Myrl-saki> srk: Oh, thanks lol. I raised a while ago that it'd be nice if we add an dummy hash library to <nixpkgs/lib>.
iyzsong has joined #nixos
rprije has quit [Ping timeout: 245 seconds]
init_6 has joined #nixos
<Izorkin> Mic92: please check others PR)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4f9970fcbfb (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @primeos pushed to master « androidStudioPackages.{dev,canary}: 3.4.0.8 -> 3.4.0.9 »: https://git.io/fhOtG
drakonis has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @Mic92 opened pull request #53398 → cryptominisat: 5.0.1 -> 5.6.6 → https://git.io/fhOtu
<{^_^}> [nixpkgs] @joachifm merged pull request #52770 → electron: 3.0.5 -> 4.0.0 → https://git.io/fhU8h
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fhOta
<{^_^}> [nixpkgs] @joachifm merged pull request #52810 → profile-sync-daemon: 6.33 -> 6.34 → https://git.io/fhUDY
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fhOtr
<{^_^}> [nixpkgs] @joachifm merged pull request #52806 → polygraph: 4.12.0 -> 4.13.0 → https://git.io/fhUM4
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fhOt6
griff_ has joined #nixos
siers has quit [Remote host closed the connection]
shabius has quit [Quit: Leaving]
siers has joined #nixos
jacereda has quit [Ping timeout: 244 seconds]
random_yanek has quit [Quit: random_yanek]
shabius has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #53123 → Python: merge expressions of interpreters → https://git.io/fhtJx
<{^_^}> [nixpkgs] @FRidh pushed 6 commits to staging: https://git.io/fhOqw
arjen-jonathan has joined #nixos
<{^_^}> [nixpkgs] @FPtje opened pull request #53399 → apache-httpd/wordpress: copy plugins and themes instead of symlinking → https://git.io/fhOqo
ubert has joined #nixos
init_6 has quit [Ping timeout: 246 seconds]
tzemanovic has joined #nixos
init_6 has joined #nixos
random_yanek has joined #nixos
random_yanek has quit [Max SendQ exceeded]
<{^_^}> [nixpkgs] @FRidh pushed to staging « python: add isPy2 attribute to passthru »: https://git.io/fhOqx
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to python-unstable: https://git.io/fhOqj
jtojnar has joined #nixos
random_yanek has joined #nixos
random_yanek has quit [Max SendQ exceeded]
sigmundv_ has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage2nix: disable failing Hydra builds »: https://git.io/fhOmY
random_yanek has joined #nixos
ottidmes has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhOms
agander has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #53358 → dar: 2.5.18 -> 2.6.0 → https://git.io/fhY1t
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhOmZ
phreedom_ has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 12 commits to haskell-updates: https://git.io/fhOmi
griff_ has quit [Quit: griff_]
phreedom has quit [Ping timeout: 256 seconds]
init_6 has quit [Ping timeout: 240 seconds]
<gchristensen> Myrl-saki: http://gsc.io/scratch/nix-snowflake-nixos.svg is what I used for my recent batch. the white border is a side effect of stickermule.com's die cutting
<gchristensen> oops. makefu ^
<gchristensen> makefu: stickermule is expensive, but their stickers are really really good.
<{^_^}> [nixpkgs] @schmittlauch closed pull request #53060 → kcharselect: backport v18.08.0 to stable → https://git.io/fhLOk
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskell-pandoc: jailbreak to fix the build »: https://git.io/fhOY4
arjen-jonathan has quit [Ping timeout: 260 seconds]
reinhardt has joined #nixos
drakonis has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 6 commits to haskell-updates: https://git.io/fhOY1
<{^_^}> [nixpkgs] @peti pushed 7 commits to master: https://git.io/fhOYM
pukkamustard has quit [Ping timeout: 246 seconds]
tzemanovic has quit []
_fw has quit [Ping timeout: 258 seconds]
hydraz has quit [Quit: ZNC 1.7.1 - https://znc.in]
hydraz has joined #nixos
johanot has quit [Ping timeout: 245 seconds]
hydraz is now known as ^W
johanot has joined #nixos
periklis has joined #nixos
globin has quit [Remote host closed the connection]
<{^_^}> [nix-mode] @grahamc opened pull request #65 → travis → https://git.io/fhOOz
__monty__ has joined #nixos
<betaboon> hello #nixos, does anyone know of a tool that generates diagrams from nixops network-definitions ? XD
periklis has quit [Remote host closed the connection]
periklis has joined #nixos
<Mic92> ,declartive Mic92
<{^_^}> Mic92: Did you mean declarative?
<{^_^}> Mic92: There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
drakonis has quit [Read error: Connection reset by peer]
<{^_^}> [nix-mode] @grahamc closed pull request #65 → travis → https://git.io/fhOOz
<Mic92> wow with levenstein-distance
dermetfan has quit [Ping timeout: 250 seconds]
griff_ has joined #nixos
drakonis has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #53355 → vimPlugins.ansible-vim: init at 2.0 → https://git.io/fhYiX
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhO3a
m15k has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #53356 → eid-mw: 4.4.11 -> 4.4.13 → https://git.io/fhYX8
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhO39
globin has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #53324 → trx: init at 2018-01-23 → https://git.io/fhYtB
<{^_^}> [nixpkgs] @Mic92 pushed commit from @hansjoergschurr to master « trx: init at 2018-01-23 (#53324) »: https://git.io/fhOst
<{^_^}> [nixpkgs] @Mic92 merged pull request #53351 → clang-tools: 5 -> 7 → https://git.io/fhYgp
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhOss
<{^_^}> [nixpkgs] @JakobBruenker opened pull request #53400 → idris-modules/curses.nix: delete → https://git.io/fhOsc
<{^_^}> [nixpkgs] @Ma27 opened pull request #53401 → cutelyst: fix build → https://git.io/fhOsK
<{^_^}> [nixpkgs] @geistesk opened pull request #53402 → cbor: init at 1.0.0 → https://git.io/fhOs6
<b1000101> Hi guys, is there any good documentation related to locale? I am trying to build a new python package which results in UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 111: ordinal not in range(128). The guys making this package told me they removed all the explicit encoding rules from the code (previous version was working fine). I'm looking for a general solution, not just a workaround since I would like to have
<gchristensen> adisbladis: hi
b1000101_ has joined #nixos
<FRidh> b1000101: it's documented in the nixpkgs manual. Also, see commit for another possible solution d65a3efc3f680f6229883778f1e77c1ae3f15709
<b1000101_> FRidh thanks a million, I'll give it a go
b1000101 has quit [Ping timeout: 256 seconds]
johanot has quit [Ping timeout: 268 seconds]
reinhardt has quit [Quit: Leaving]
caryoscelus has left #nixos ["Konversation terminated!"]
<{^_^}> [nixpkgs] @globin merged pull request #53401 → cutelyst: fix build → https://git.io/fhOsK
<{^_^}> [nixpkgs] @globin pushed commit from @Ma27 to master « cutelyst: fix build »: https://git.io/fhOGH
<gchristensen> do we have rust 1.31 in 18.09? it seems you can't actually develop with rustPlatform.cargo anymore in 18.09, because All The Crates have adopted 1.31 fetures
erictapen has joined #nixos
<symphorien> no 18.09 has 1.30
<symphorien> *1.27 sorry
<Izorkin> How to need to update mariadb to 10.3?
dermetfan has joined #nixos
moredhel has joined #nixos
<{^_^}> [nixpkgs] @globin merged pull request #53008 → obs-studio: apply fix for fdk-aac v2.0.0 → https://git.io/fhIJP
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fhOnT
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to master: https://git.io/fhOnL
<{^_^}> [nixpkgs] @globin merged pull request #53291 → dbus-broker: 13 -> 17 → https://git.io/fhmoN
<{^_^}> [nixpkgs] @globin pushed commit from @xaverdh to master « dbus-broker: 13 -> 17 »: https://git.io/fhOnq
<{^_^}> [nixpkgs] @globin merged pull request #53127 → [Staging] xorg: updates and cleanup → https://git.io/fhtY0
<{^_^}> [nixpkgs] @globin pushed 70 commits to staging: https://git.io/fhOnC
jomik has quit [Ping timeout: 258 seconds]
ddellacosta has joined #nixos
ddellaco_ has joined #nixos
dermetfan has quit [Ping timeout: 272 seconds]
<Twey> gchristensen: I think if you want to do any Rust development at this point you just need to use the overlay
<gchristensen> I don't want to do rust development. I want to do packaging.
__Sander__ has joined #nixos
<Twey> gchristensen: :(
<Twey> I wonder if we could integrate and standardize on (some part of) the Mozilla overlay
<gchristensen> (I do want to do rust development, but for that I've given up and indeed do use the overlay)
<{^_^}> [nixpkgs] @Mic92 merged pull request #53400 → idris-modules/curses.nix: delete → https://git.io/fhOsc
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhOnd
<Twey> Rather than having two sets of Rust packages
ddellacosta has quit [Ping timeout: 258 seconds]
ddellaco_ has quit [Ping timeout: 258 seconds]
Church_ has joined #nixos
<Church-> Hmm if I want to package a python module from GitHub can I just src to fetchFromGitHub inside buildPythonPackage rec { }
<gchristensen> yea
void__ has quit [Remote host closed the connection]
<Church-> gchristensen: Actually if I do build it off of pypi, how do I get the sha256 hash? Just run nix-prefetch-url --unpack on a pypi url?
<Church-> Oh it's on the web page. Nevermind
agander_ has joined #nixos
iyzsong has quit [Ping timeout: 245 seconds]
agander is now known as Guest18360
agander_ is now known as agander
Guest18360 has quit [Killed (cherryh.freenode.net (Nickname regained by services))]
hyper_ch2 has quit [Ping timeout: 256 seconds]
dermetfan has joined #nixos
jonaswouters has joined #nixos
<jonaswouters> is there a easy way to have nix environment variables like $NIX_CC available under the fish shell?
dslegends has joined #nixos
<Church_> Hmm, does anything seem off with this nix expr? https://paste.rs/xEL Trying to build with "nix-build -E '(import <nixpkgs> {}).callPackage ./default.nix {}'"
griff_ has quit [Quit: griff_]
<exarkun1> does it fail?
<makefu> gchristensen: ah nice, stickermule. they currently have a promotion where you can get 10 die-cut stickers for $1 - https://www.stickermule.com/p/43d9998f?ref_id=2277921701&utm_medium=link&utm_source=invite (affiliation link)
<srhb> Church_: Going by indentation alone, I see what looks like a superfluous };
<srhb> Church_: Oh, no..
<exarkun1> the indentation is weird, you should fix it
<srhb> Church_: Indentation is just weird :-)
<Church_> Yep, fails with: "nonymous function at /home/noah/code/textfsm/default.nix:1:1 called without required argument 'buildPythonPackage'"
<Church_> srhb: Yeah planning to.
<srhb> Church_: Ah, you need a different callPackage
Dedalo has joined #nixos
<srhb> Church_: Essentialy grab pythonPackages.callPackage
<Church_> Huh
<srhb> The top level one doesn't know about buildPythonPackage
frigate_freedom has joined #nixos
ubert has quit [Ping timeout: 272 seconds]
<Church_> srhb: How would I import pythonPackages in this instance?
<srhb> Church_: instead of (import ...).callPackage, (import ...).pythonPackages.callPackage
<Church_> Okay, makes sense.
<srhb> (I think, if it follows the regular model, I don't work with the python infra much)
<Church_> Yep, worked it looks like. Just need to fix my license
<exarkun1> yes, that'll work. also (import ...).python.pkgs.callPackage
<lassulus> Is anyone using services.nextcloud under nixos? I can't get enableACME to run with it
<Church_> Okay stupid question, running nix-prefetch-url --unpack https://files.pythonhosted.org/packages/a1/0d/a1b490503545b3b4600b965eae5d44cc2b6ce27cfb44f4debc563dbb56d3/textfsm-0.4.1.tar.gz should give me the sha256 hash I need right?
<Church_> Oh wait
<Church_> Huh that was weird
<manveru> ,tofu Church_
<{^_^}> Church_: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<Church_> manveru: Yeah ended up doing that.
<Church_> Thanks.
agander has quit [Ping timeout: 250 seconds]
<Church_> srhb: If I want to build this package for Python3.6, would I just change the callPackage bit slightly?
<{^_^}> [nix-mode] @etu opened pull request #66 → travis: Add travis badge → https://git.io/fhOl8
<manveru> `python36Packages.buildPythonPackage` should work there
<Church_> Cool, thanks manveru.
<Church_> Then I can finally build the stuff this depends on ugh.
<Church_> manveru: Once it's built and I nix-env -i ./result it into my local pkg tree. can I just pass it in as propagatedBuildInput for another package?
<frigate_freedom> Hello guys and Happy New Year!
<frigate_freedom> I've just installed NixOS on PC where I have NVMe SSD With Windows 10 and HDD with NixOS. SSD structure is:
<frigate_freedom> /dev/nvme0n1p3 975820800 976766975 946176 462M Windows recovery environment
<frigate_freedom> /dev/nvme0n1p2 1050624 975818790 974768167 464.8G Microsoft basic data
<frigate_freedom> /dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
<frigate_freedom> and HDD sturcutre is:
<frigate_freedom> /dev/sda1 34 32767 32734 16M Microsoft reserved
<frigate_freedom> /dev/sda2 32768 1953529855 1953497088 931.5G Microsoft basic data
<frigate_freedom> /dev/sda3 1953529856 1954553855 1024000 500M EFI System
<frigate_freedom> /dev/sda4 1954553856 2373984255 419430400 200G Linux filesystem
<frigate_freedom> /dev/sda5 2373984256 3907028991 1533044736 731G Linux filesystem
<frigate_freedom> I prefer not to use grub, but default loader do not see Windows partition. I've tried to use grub, but it says
<frigate_freedom> /nix/store/233x9n88dj2kgl9wp08609hz900d368q-grub-2.02/sbin/grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
<frigate_freedom> /nix/store/233x9n88dj2kgl9wp08609hz900d368q-grub-2.02/sbin/grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
<srhb> frigate_freedom: You need to use a pastebin :-)
<frigate_freedom> 5 sec
<srhb> It's OK, it's here now. Just in the future. :)
<frigate_freedom> https://pastebin.com/JA9XAQmx here is my question on pastebin
tg has joined #nixos
<frigate_freedom> Sorry for ugly messages :)
<srhb> frigate_freedom: Can you also give your boot loader config according to configuration.nix? As far as I know efi embedding is entirely possible by using "nodev" as the device. And the easiest way to support windows booting is to use grubs os prober functionality.
<tg> how to i get the revision history of the nixpkgs-unstable channel published on nixos.org/channels ?
<srhb> Which is boot.loader.grub.useOSProber
<manveru> https://logs.nix.samueldr.com/nixos/search?q=Embedding+is+not+possible has a bunch of people who had the same issue
<obadz> frigate_freedom: have you searched for the various mentions of "UEFI" in https://nixos.org/nixos/manual/ ?
<frigate_freedom> srhb: https://pastebin.com/1cS0bQRm here is my config now
<srhb> frigate_freedom: Try device = "nodev"
<Church_> manveru: So building another package(https://paste.rs/tyW), calling it the same as before "sudo nix-build -E '(import <nixpkgs> {}).pythonPackages.callPackage ./default.nix {}'"
<Church_> But it errors out: "error: undefined variable 'pyyaml' at /home/noah/code/netmiko/default.nix:13:42"
<Church_> So how should I be passing buildInputs in?
<Church_> Already tried prefixing pkgs. to each package.
<{^_^}> [nixpkgs] @Mic92 opened pull request #53404 → nixos/xss-lock: specify a default locker → https://git.io/fhO8B
<Church_> Don't think I can do a wholesale import <nixpkgs> {}; in this either.
<srhb> Church_: It's in python36Packages presumably
<srhb> And I don't know what that self is doing there..
<kai_w> Church_: you can have buildPythonPackage and python dependencies as arguments (and drop 'self') if you call it with python36Packages.callPackage
<srhb> You probably want buildInputs = with python36Packages; ...
<Church_> srhb: Following along a guide.
<{^_^}> [nixpkgs] @Mic92 merged pull request #53330 → groonga: 8.0.9 -> 8.1.0 → https://git.io/fhYOp
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhO8u
<srhb> Or that ^
<Church_> Ah and that makes sense.
<frigate_freedom> srhb: seems like nixos-rebuild installed grub, but error with os-prober looks not good https://pastebin.com/AkxD985p
<Church_> Christ I'm dim when it comes to packaging.
<srhb> Church_: Takes a little practice :)
<frigate_freedom> with device = "nodev"
<{^_^}> [nixpkgs] @Mic92 merged pull request #53316 → imagemagick7: 7.0.8-14 -> 7.0.8-22 → https://git.io/fhmh7
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhO82
<srhb> frigate_freedom: This looks relevant, and resolved: https://github.com/NixOS/nixpkgs/issues/23958
<{^_^}> #23958 (by pbogdan, 1 year ago, closed): boot.loader.grub.useOSProber doesn't seem to work.
jomik has joined #nixos
<exarkun1> How do I add an entry to the PATH for executables in a particular package? the wrapper functionality?
<jomik> Is there a way to check which nixpkgs version <nixpkgs> is?
<exarkun1> jomik: .lib.version
<jomik> Perfect
<samrose> Is there a recommended way to "pin" packages when doing a nixos build in hydra?
<kai_w> Church_: check nixpkgs/pkgs/development/python-modules - it's probably worth looking at those for some examples :)
<srhb> exarkun1: Yep, wrappers are great for that.
<kai_w> they're called from pkgs/top-level/python-packages.nix
<jomik> Is there a command to directly print that? exarkun1 ? I can see it by doing nix repl and such.
<Church_> srhb: kai_w: So if I built a dependency for this and then added it via nix-env -i ./result. How would I reference to pass it? Built it the exact same manner as the above.
<simpson> samrose: IIRC you can pick the revision by putting a space after the git URL and then giving a git revision hash.
<srhb> frigate_freedom: Try setting boot.loader.grub.efiSupport = true as well
<Church_> Because python36Packages.textfsm didn't work. Only one that errored out.
<exarkun1> jomik: I've always just done it w/ nix repl or nix-build --expr
<Church_> kai_w: Yeah, been looking at them.
<jomik> So you have to enter nix relp?
<exarkun1> Church_: if you want it in nixpkgs, you have to put it there. submit patch upstream, patch your local nixpkgs, or use an overlay.
<exarkun1> jomik: `nix build --expr '(import <nixpkgs> { }).lib.version'`
<kai_w> Church_: I don't think putting packages in your env gives you access to them for another build. you can import the dependency in your final package and call it there, or use an overlay
<exarkun1> eh nix-build
<srhb> frigate_freedom: Just reading the module and trying to follow along with the logic that can end you up in that situation..
<Church_> exarkun1: Okay gotcha, so place in an overlay and then nixos-rebuild after calling nixpkgs.overlay(s) in my nixos config?
<exarkun1> eh not that either, what
<jomik> Expression does not evaluate to a derivation :D
<Church_> Eh nevermind, poor thought.
<kai_w> Church_: you can also have user overlays in ~/.config/nixpkgs/overlays, then you don't need to nixos-rebuild every time you modify them
<philipp[m]> And the build fails with `error: illegal name: '.drv'`
<jomik> can't do some nix-env thing?
<Church_> kai_w: And would they get picked up automatically?
<exarkun1> jomik: nix eval '(import <nixpkgs> { }).lib.version'
<jomik> ah
<jomik> Perfect!
<philipp[m]> when line 23 is commented out in the tt-rss.nix file, everything works fine.
<philipp[m]> I've got a strong feeling like I'm overlooking something painfully obvious :-D
<Church_> kai_w: Or eh, let me just pm you so as to not flood the channel.
<srhb> Channel is not that busy, might be helpful to others too :)
gwen has joined #nixos
<Church_> Fair point.
<kai_w> so I have `[(import /path/to/overlay)]` in `~/.config/nixpkgs/overlays`, where the path is a checkout of https://github.com/kwohlfahrt/nix-overlays
markuskowa has joined #nixos
<gwen> aye aye, I'm packaging the next-browser (next.atlas.engineer) and I want to pass makeFlags = ["LISP_FLAGS=--first-flag --second-flag"]; but make keeps complaining about not recognizing option --second-flag
<frigate_freedom> srhb: seems setting boot.loader.grub.efiSupport = true helped me
<samrose> simpson: do you mean when itulizing in a nix expression? I guess it makes sense that it needs a hash
<kai_w> You could probably use builtins.fetchGit instead if you wanted it to auto-update from a remote source
<srhb> frigate_freedom: Hooray. As far as I can see there should be some guard going on here to prevent the user from forgetting that when it's clearly intended to be an EFI install. But not sure.
<samrose> oh wait, there is a wiki page on it https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs
<Church_> So if I add my textfsm package to ~/.config/nixpkgs/overlays.nix would it be via "textfsm = super.callPackage /home/noah/code/textfsm/default.nix {};" or would I need to alter that due to building it via "sudo nix-build -E '(import <nixpkgs> {}).pythonPackages.callPackage ./default.nix {}'"?
<simpson> samrose: I mean in your Hydra configuration. When you pass in a git repo as a parameter to a build, you can pin the revision.
reinhardt has joined #nixos
<frigate_freedom> srhb: thanks a lot! Hope in some time I will be useful for community too :)
<srhb> frigate_freedom: I bet! Just takes an interest ^^
<ar> hm. i have nixos installed in a separate zfs filesystem (here's the structure: http://dpaste.com/1CN4ZDA.txt), and while it mostly works fine, nixos doesn't detect my bluetooth controller at all. here's my configuration.nix: http://dpaste.com/2GCT1QW.txt http://dpaste.com/21GQ4MA.txt here's lshw from nixos: http://dpaste.com/297992R.txt and here's from my gentoo install: http://dpaste.com/1PR8RKA.txt and
<ar> here's my dmesg from nixos: http://dpaste.com/0QYGK74.txt
<srhb> gwen: Try looking up makeFlagsArray in the nixpkgs manual? Just guessing here.
frigate_freedom has left #nixos [#nixos]
<ar> and i have no idea what to look for
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samrose> actually I guess that is pinning a channel
<gwen> srhb: sounds promising :) yeah, it's right in the description 'you must use this if the argument contains spaces'
<simpson> samrose: Sure. That's pinning in the code rather than in Hydra though.
orivej has joined #nixos
<srhb> ar: It looks like bluetooth is found, but not the bluetooth wireless controller via btusb?
<ar> hm
<kai_w> Church_: yeah, that should work in `packageOverrides` for your python version. be aware there's a bit of a gotcha with python `packageOverrides` not composing, see bug 44426 for a workaround
<kai_w> but if you're only overriding it in one place that doesn't really matter
<exarkun1> anybody know what's up with `nix-build --expr 'with import <nixpkgs> { crossSystem = { system = "armv6l-linux"; }; }; python.pkgs.setuptools'` on staging?
frigate_freedom has joined #nixos
<samrose> simpson: I think what I am seeing in the examples is people setting the hydra config the way you describe, to give hydra a trigger to watch for changes, then using this line in code to intervene and fix to that actual tarball
<ar> srhb: it looks like nixos kernel (4.14.90) doesn't detect anything at usb@1:7, for whatever reason. it should be under usbhost:0
<srhb> ar: It's fast and cheap to check a different kernel, if you suspect that. :)
<simpson> samrose: Whatever works for you.
<ar> srhb: ok. how do i?
<philipp[m]> I'd appreciate any pointers. I've been over the code a few times and can't find anything and the trace https://share.xndr.de/eesh1pohfei0Kaghohzeivee4ahai0/trace.txt doesn't seem to help much either.
<srhb> ar: for instance, setting that to pkgs.linuxPackages_4_9
<frigate_freedom> srhb: tried to search grub.efiSupport and seems it's not represented there. only on Bootloader page: https://nixos.wiki/wiki/Bootloader
<frigate_freedom> in NisOS Manual*
<srhb> frigate_freedom: https://nixos.org/nixos/options.html#grub.efis
<ar> srhb: 4.9 seems rather old, and it's a relatively new-ish piece of hardware (thinkpad T480)
b1000101_ has quit [Quit: Page closed]
<srhb> frigate_freedom: And in the options appendix of the manual: https://nixos.org/nixos/manual/options.html#opt-boot.loader.grub.efiSupport
<srhb> frigate_freedom: The grub + efi support is a bit rough and underdocumented, we seem to want people to use systemd-boot for efi systems, which is quite a bit less flexible compared to grub.
<ar> srhb: but i guess linuxPackages_4_19 should work
<srhb> ar: Right :)
<srhb> Though... Is zfs working with 4.19 now?
<srhb> Ah it is.
<srhb> (Apparently I'm on 4.19...)
<ar> i have zfs working on my gentoo install with 4.19
orivej has quit [Ping timeout: 250 seconds]
jabranham has joined #nixos
<philipp[m]> I run zfs on my 4.19.9
<philipp[m]> on nixos
<frigate_freedom> srhb: thanks! There is no search support in NixOS Manual's Appendix, that's why novice like me could not find some options
<srhb> frigate_freedom: The options page is good for that :) Also man configuration.nix
<clever> ,locate libatk-bridge-2.0.so.0
<{^_^}> Found in packages: at_spi2_atk
Synthetica has joined #nixos
<Church_> kai_w: So looking over bug 44426, so once I have this setup, what else will I have to do to make my new package netmiko aware of the over-ride adding textfsm to python36Packages when adding it as a propagatedBuildInput?
<Church_> Do I have to specify the overlay/override in my netmik/default.nix definition?
<kai_w> you should just be able to add `textfsm` to the inputs of your function for `netmik`, and it should work.
<kai_w> The only problem with that bug is if you have multiple overlays that call overridePythonPackages, only the last one will actually count without some trickery
<gchristensen> do emacs package updates ever get backported? nix-mode has had a bunch of fixes lately and it'd be cool to get them applied to 18.09
<{^_^}> [nix-mode] @etu opened pull request #67 → [WIP] Remove line that caused tests to not indent at all in the tests → https://git.io/fhO0I
<Church_> Yeesh/
<gchristensen> etu: have you worked on emacs modes before? you're doing great work
<etu> gchristensen: yeah, I have two. One that I maintain more than the other, https://github.com/etu/webpaste.el
<Church_> kai_w: So looking at an override when I define it, self: super: { pythonOverrides = selfPython: superPython: { py.overridePythonAttrs (oldAttrs: {pname = "SOMETHING";});}; python36.pksg.override { packageOverrides = pythonOverrides;};} Would I just sub textfsm into pname?
<{^_^}> [nixpkgs] @zimbatm merged pull request #52894 → google-compute-engine: 20181023 -> 20181206 → https://git.io/fhT3V
<{^_^}> [nixpkgs] @zimbatm pushed commit from @r-ryantm to master « google-compute-engine: 20181023 -> 20181206 (#52894) »: https://git.io/fhO00
<{^_^}> [nixpkgs] @elitak opened pull request #53407 → ugtrain: init at 0.4.1 → https://git.io/fhO06
<kai_w> The pythonOverrides attribute is only necessary for working around the multiple overlays issue, and it's only useful if you use lib.composeExtensions
<exarkun1> Can I have a no-source derivation? Something that builds purely from other packages?
Havvy has quit [Read error: Connection reset by peer]
<FRidh> exarkun1: yes, unpackPhase = "true"; or use runCommand if that betters suits you
<Church_> kai_w: Okay, secondary question, will I have to update that again with my netmiko package to make it available to python3? ie. Doing an import netmiko/textfsm in a python interpreter session?
<Church_> Because so far despite building textfsm and running nix-env -i ./result I can't import it into a interpreter session
gwen has quit [Remote host closed the connection]
<exarkun1> FRidh: thanks
gwen has joined #nixos
Havvy has joined #nixos
jomik has quit [Quit: WeeChat 2.2]
drakonis has quit [Ping timeout: 245 seconds]
<samrose> simpson: thanks for your responses, I was trying figure out various approaches I was stumbling across.
Havvy has quit [Read error: Connection reset by peer]
<simpson> samrose: No worries. Owning a Hydra isn't easy.
<kai_w> I've always done `nix run "(with import <nixpkgs> {}; python3.withPackages (ps: with ps; [ <PKGS> ]))"` to get my python interpreter.
<kai_w> I'm not sure if it's possible to persist it via nix-env, I haven't tried
<Church_> Ah yeah I just install my packages via systemPackages with the latter half of that snippet to install them.
<Church_> Hmm.
gwen has quit [Ping timeout: 240 seconds]
<Church_> kai_w: So once I set that in my overlays, do I need to run a nixos-rebuild or anything for it to get picked up?
<kai_w> no, I don't think so
<gchristensen> etu: btw what is your favorite charity? I owe you a donation in your name
Havvy has joined #nixos
<Church_> Hmm, still getting a textfsm variable undefined error when trying to build. Here's the netmiko default.nix and here's my ~/.config/nixpkgs/overlays.nix https://paste.rs/KxM https://paste.rs/ZyJ
<Church_> See anything obvious I'm missing?
<Church_> Says it should be automatically loaded...
notzmv has quit [Quit: WeeChat 2.3]
agander has joined #nixos
<Church_> Hmm.
ddellacosta has joined #nixos
<exarkun1> Church_: you have to put it in the argument list
<samrose> is there a way to instruct hydra not to evaluate or try to build certain upstream packages (like Oracle jdk)?
<Church_> exarkun1: What do you mean exactly? Argument list where?
<Church_> In my overlays.nix?
<jonaswouters> so I work in an enviroment where we use different node.js versions, and have build scripts that include nvm. Do I just install nvm manually, or does anyone have a nix expression for it?
<exarkun1> Church_: in the first paste
<exarkun1> Church_: you define a function that takes {lib, buildPythonPackage, fetchPypi}: but it should take {lib, buildPythonPackage, fetchPypi, testfsm}:
<Church_> Ohhhhh
<exarkun1> Church_: the argument will be passed automatically but only if you declare you want it :)
<kai_w> imo it's clearer (and easier to override) to give all your python dependencies as arguments, and not use `with pythonPackages` in `propagatedBuildInputs`
ddellacosta has quit [Ping timeout: 245 seconds]
endformationage has joined #nixos
<kai_w> Church_: https://paste.rs/jSr
tboston has joined #nixos
<tboston> meow
reinhardt has quit [Ping timeout: 268 seconds]
agander has quit [Ping timeout: 258 seconds]
<Church_> So getting: "error: anonymous function at /home/noah/code/netmiko/default.nix:1:1 called without required argument 'textfsm'" after making kai_w's changes
<kai_w> looks like the overlay isn't taking. when I use what you have in the pastebin I get `error: value is a function while a list was expected`
<Church_> Huh
<kai_w> that should be fixable by just enclosing the whole thin in [(...)], but the fact that you're not getting it means it's not being picked up
<Church_> Maybe my overlays need to be in a [ ];?
<Church_> Ah.
<{^_^}> [nixpkgs] @frlan opened pull request #53408 → Geany: 1.34 -> 1.34.1 → https://git.io/fhOzL
<Church_> kai_w: Could it be from having nixpkgs.overlays set in my config.nix?
<exarkun1> How are packages that have ~/.something/config files dealt with? This program can generate one on first run but the config needs to include paths to various things in /nix/store and I'd rather package it so those are already figured out.
<kai_w> maybe, the manual doesn't mention that blocking others though https://nixos.org/nixpkgs/manual/#chap-overlays
<Church_> Could it be a permissions issue?
<Church_> Or maybe because I run nix build with sudo while having the overlays in my home dir.
<exarkun1> why do you run nix build with sudo?
<kai_w> hmm that might do it. and what he said ^, sudo shouldn't be necessary
<LnL> don't use sudo, it's not necessary and will break a single-user install
<Church_> Huh, maybe I didn't add the right permissions to my user account.
<Church_> Wait... that might be it. Because nixpkgs is located at /root/nixpkgs
<Church_> How the hell did I do that.
<etu> Church_: That's a weird location.
<Church_> Yep
<Church_> Maybe if I just stick wheel on my user...
<LnL> Church_: can you run nix-info
<Church_> Sorta?: "error: getting status of /root/nixpkgs: Permission denied"
<Church_> system: 0, multi-user?: no, version: nix-env (Nix) 2.1.1, channels(root): "nixos-18.09.932.09195057114, nixpkgs-19.03pre155767.8070a6333f3", error: getting status of /root/nixpkgs: Permission denied
<siraben> Anyone using NixOS with a HiDPI display?
<Church_> nixpkgs: 0
<Church_> siraben: I am.
<siraben> I'm having issues with scaling up the size in the i3 window manager
<Church_> And not a clue what to do there. Sorry.
<siraben> Church_: what window manager are you using?
<Church_> i3
<siraben> I've had to switch to GNOME for a bit
<siraben> Ah huh
<siraben> So what's in your config?
<LnL> Church_: multi-user: no, so you probably have a broken install now
<Church_> Frack.
<siraben> Church_: do you scale up stuff?
<Church_> Nope
<siraben> Huh so how do things look?
<LnL> is /nix/var/nix/db owned by root?
<siraben> Everything gets REALLY small for me
<Church_> Maybe
<Church_> Yes
<etu> siraben: I think the common trick in i3 may be to set a bigger font :p
<siraben> Church_: what bar are you using?
<Church_> siraben: i3bar
<siraben> Maybe the issue isn't i3 but polybar...
<Church_> Standard
<siraben> Ah
<Church_> It might be
<siraben> Because I don't use the i3bar
<LnL> what about getent group nixbld
<Church_> "nixbld:x:30000:nixbld1,nixbld10,nixbld11,nixbld12,nixbld13,nixbld14,nixbld15,nixbld16,nixbld17,nixbld18,nixbld19,nixbld2,nixbld20,nixbld21,nixbld22,nixbld23,nixbld24,nixbld25,nixbld26,nixbld27,nixbld28,nixbld29,nixbld3,nixbld30,nixbld31,nixbld32,nixbld4,nixbld5,nixbld6,nixbld7,nixbld8,nixbld9"
<siraben> Church_: are you using just i3 or i3 + another desktop manager like XFCE?
<Church_> siraben: Just i3
<siraben> Church_: what are you using to manage your wireless?
<siraben> nm-applet?
<Church_> Network-Manager/nmtui
<Church_> So yes.
<ottidmes> siraben: I also have a HiDPI display, I use bspwm+lemonbar and since I use multiple displays including normal DPI I just have my lemonbar configured to scale up accordingly, and then I set scaling per application that support it, it is good enough for me
<siraben> ottidmes: does lemonbar allow for the apperance of icons from the system tray?
<siraben> Like nm-applet, bluetooth etc.
<ottidmes> siraben: no, but I scripted it to have one on top of it
<{^_^}> [nixpkgs] @ryantm merged pull request #53265 → osrm-backend: 5.20.0 -> 5.21.0 → https://git.io/fhm8Y
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhOgU
<siraben> ottidmes: what sort of issues are you still having with the HiDPI setup?
<ottidmes> siraben: my biggest issue is that my GPU does not have a good enough driver that works under Linux, so certain applications get slow/tearing, which is holding me back a bit compared to my 2048x1152 display
<siraben> I see.
<exarkun1> argh soo much unnecessary rebuilding of everything all the time why
stigo has quit [Quit: WeeChat 2.2]
<siraben> clever: I'll take another stab at using i3bar instead of polybar and see if that helps
<Church_> I really hope I don't have to do a reinstall. It's not as bad due to nixos being nixos. But I still don't want to do it. >_>
<LnL> Church_: hmm kind of looks like you do have a demon, does /nix/var/nix/daemon-socket/socket exist?
<Church_> So much damn time.
<Church_> LnL: Yep, has a size of 0 obviously. But it exists.
<LnL> oh, you're on nixos?
<Church_> Yep
erasmas has joined #nixos
<Church_> Obviously I need to just chmod 777 -R / now. /s
orivej has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed to staging « libnice: 0.1.14 -> 0.1.15 »: https://git.io/fhOg0
<{^_^}> [nixpkgs] @jtojnar merged pull request #53293 → libnice: 0.1.14 -> 0.1.15 → https://git.io/fhmKu
<LnL> no you're fine then, just change NIX_PATH not to point to something that's only accessible by root
<Church_> Gotcha, could I just point it to my HOME_DIR then?
<LnL> you can put your checkout anywhere if you don't use nix-channel
<Church_> Gotcha.
<Church_> I think I did use nix channel once.
<Church_> So if I did what should I do?
<LnL> if you use nix-channel don't mess with NIX_PATH (or nix.nixPath in configuration.nix)
<{^_^}> [nix-mode] @matthewbauer merged pull request #66 → travis: Add travis badge → https://git.io/fhOl8
<{^_^}> [nix-mode] @matthewbauer pushed 2 commits to master: https://git.io/fhOg9
<LnL> some people prefer a checkout, just be careful that branches you track if you do
<Church_> Gotcha
<Church_> Okay cool, now at the same error kai_w had
<Church_> kai_w: So wrapping my overlay in [()] didn't work.
<exarkun1> How can it be that after building a package on A and then using nix-copy-closure on the output on B, building the same package on B wants to download a hundred packages and build fifty more?
<Church_> kai_w: Was I supposed to enclose it in [()] like this? https://paste.rs/WXt
gagbo has joined #nixos
<LnL> exarkun1: probably build time vs runtime dependencies
agander has joined #nixos
periklis has quit [Ping timeout: 258 seconds]
<exarkun1> nix-copy-closure only copied the runtime dependencies and nix-build wants to download and build all the build-time dependencies? (even though the package is already built and in the store?)
<Church_> Man packing stuff sucks, even in nix.
<exarkun1> Church_: yes.
<{^_^}> [nixpkgs] @matthewbauer pushed to staging-next « darwin.adv_cmds: fix build »: https://git.io/fhO2C
<Church_> packaging*
__Sander__ has quit [Quit: Konversation terminated!]
pie__ has quit [Remote host closed the connection]
pie__ has joined #nixos
stigo has joined #nixos
agander has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #53028 → gcc-4.8: fixup cross compilation after merging #15867 for 18.09 → https://git.io/fhIMX
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to release-18.09: https://git.io/fhO27
<{^_^}> [nixpkgs] @matthewbauer merged pull request #53201 → zsh-command-time: enable work with options customPkgs → https://git.io/fhqa3
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhOaJ
<Church_> LnL: So after moving the nixpkgs dir to my ~/ and setting NIX_PATH via "declare -x NIX_PATH="nixpkgs=/home/noah/nixpkgs:nixos-config=/etc/nixos/configuration.nix""
<Church_> Running nixos-rebuild switch gives off this error: "error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)"
<Church_> Along with other errors branching off nixpkgs/
drakonis has joined #nixos
<kai_w> Church_: no the whole thing including `self: super:`
<kai_w> I've got to head, good luck!
kai_w has quit [Quit: Konversation terminated!]
<Church_> Thanks! Take care.
shibboleth has joined #nixos
<{^_^}> [nixpkgs] @frlan opened pull request #53409 → Geany: Support for GTK2 and GTK3 → https://git.io/fhOVf
<siraben> Church_: looks like i3bar works fine with HiDPI
<siraben> Plus it's less resource heavy than i3 anyways :)
<siraben> I mean
<siraben> Polybar
prooftechnique has joined #nixos
<prooftechnique> Is there anything I can do to diagnose or workaround `unexpected end-of-file` when I do a rebuild?
<prooftechnique> I seem to run into it with home-manager and nix-darwin most often, but I'd expect it to just fall back to build if it can't get a cached path
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/7ff3ccfa74a (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<goibhniu> hi prooftechnique could it be caused by lack of RAM?
<exarkun1> Should I make a symlink from a ~/.something/something.conf to a /nix/store/.../something.conf in order to provide a user-owned-ish location for a pre-determined configuration file? if so... how
<prooftechnique> I've got 16GB, so I hope not, but I suppose it's possible
<goibhniu> ah no, it must be something else
<prooftechnique> Ah, sticking even more "-v"s on, it says "Server doesn't support multi-use yet, wait" and then "No connections available", before apparently waiting on download threads before the error
jtojnar has quit [Ping timeout: 245 seconds]
<prooftechnique> Some kind of multi-curl issue? Maybe it's trying to open too many connections, or cache.nixos isn't accepting new ones?
qtoni has joined #nixos
<Church_> prooftechnique: I had that error once, let me remember how to fix it.
<qtoni> aye aye, does somebody here know how building packages with ASDF/quicklisp works in nix?
<Church_> Anddd I can't fall back to raspi since it doesn't have access to gns3 on my laptop
<{^_^}> [nixpkgs] @etu opened pull request #53410 → ed: 1.14.2 -> 1.15 → https://git.io/fhOry
<Church_> So I need to get netmiko built. Fracking frack
<prooftechnique> Church_: Much appreciated. I'm mucking about with things in my nix.conf to see if I can get something working
<eacameron> I just upgraded to 18.09 from 18.03 and now gpg can't sign anything. I get `gpg: signing failed: End of file`. Has anyone hit this?
<eacameron> It almost seems like something to do with how it prompts for passwords since I never get asked for one.
arjen-jonathan has joined #nixos
mmlb has quit [Ping timeout: 246 seconds]
<etu> eacameron: using smartcard or not?
<eacameron> etu: no
<exarkun1> Why is cmuclmtk not importable? https://gist.github.com/exarkun/e3f94efdf727ae30f2e3899924b42526
<gchristensen> what happens when you do?
Tucky has quit [Quit: WeeChat 2.2]
<ottidmes> eacameron: have you configured pinentry-program in gpg-agent.conf?
<eacameron> ottidmes: not manually, how would I look?
<Church_> So how often are packages rebuilt in nixpkgs
<exarkun1> Although I guess I should dig in further, there might more useful information being discarded when that ImportError is discarded...
<Church_> Since I'm thinking of upstreaming a package and service definition for a rails app I help maintain. Is it only on version bumps?
<gchristensen> Church_: they are built any time their dependencies change
<Church_> gchristensen: So if we push a commit to master on our rails app, what would we then have to change in the nixpkg?
<gchristensen> you would have to update the source to point to the new version
<exarkun1> Eh, boring: Importing cmuclmtk: No module named cmuclmtk
<exarkun1> Oh yea. I looked at the Naomi script. It is adding a bunch of other Python site dirs but it's not adding one for cmuclmtk.
<Church_> Oh yeah duh do. It's based on hashes.
<ottidmes> eacameron: just having "pinentry-program /path/to/bin/pinentry" in e.g. ~/.gnupg/gpg-agent.conf
<Church_> Hmm, is there any way at all to have it track master?
<gchristensen> Church_: in nixpkgs? no
<eacameron> ottidmes: I don't even have a ~/.gnupg/gpg-agent.conf so apparently not
<gchristensen> Church_: in your local code? yes, you can use builtins.fetchGit { url = "https://oeunthoenuth"; ref = "master"; }
<Church_> Gotcha.
<exarkun1> uhhg because cmuclmtk is not actually a python library, wee.
<Church_> gchristensen: Gotcha, thanks.
<gchristensen> you're welcome :)
<Church_> And frack, I think I just made myself a CI system to go along with Nix for our setup.
<Church_> Lord knows how long I'm gonna have to support this...
<gchristensen> haha, uh oh, yeah?
<Church_> gchristensen: Trying to make code deployments for lobste.rs more reproducible and less human. So writing a little thing in Golang to run my nix build and nixos-rebuild switch
<gchristensen> ohhh! I didn't know lobsters used nixos
<Church_> I've been slowly porting us over.
<Church_> gchristensen: The rails app I was mentioning was lobsters which I'm going to upstream along with a service wrapper.
<gchristensen> sounds ambitious to upstream it! cool
<Church_> gchristensen: Well I mean upstream the nix package to nixpkgs and the wrapper once I test more and go through review.
<Church_> samueldr: and manveru helped quite a lot. Although I need to rewrite so as to not use a super hack.
ddellacosta has joined #nixos
erictapen has quit [Ping timeout: 240 seconds]
<manveru> Church_: i wrote a CI in Go already :P
<Church_> lolol
<Church_> manveru: Link?
<eacameron> Church_: are you using noria database now too? ;)
<Church_> Noria?
<Church_> manveru: I say CI but running nix build and then nixos-rebuild switch isn't that hard. :P
<manveru> true
<Church_> Oh scylla
<Church_> Cool
<manveru> atm i'm trying to figure out how to configure an openvpn server... the link in the docs is dead :|
<Judson> wrt to rubygems, I wonder if the leaveDotGit is necessary? It seems like upstream adding or moving a tag would be enough to break the fixed output :(
<Judson> manveru, do you know offhand? Or zimbatm?
<manveru> Judson: unfortunately it's needed
<eacameron> Church_: You'll see in the readme that they used lobsters as a test case and have 5x speed improvement
m15k has joined #nixos
<Judson> That is unfortunate.
<Judson> That *does* seem like worth raising with them, though.
ddellacosta has quit [Ping timeout: 246 seconds]
<Church_> manveru: On Nix?
<Church_> What's the issue, I've had to do that hell before.
<manveru> nixos
<manveru> Judson: the problem is that a lot of gems abuse git to do a list of project files for the gemspec
<manveru> so you need the original repo at build time
Unode has quit [Quit: Off it goes]
<manveru> we could probably fix that by building a replacement for `git ls-files` that's used during build... that should make 99% of them work at least
<gchristensen> manveru: what if we did a git init git add . in the build phase, instead of fetch phase?
<manveru> there must be discussions about that aplenty on github :)
<gchristensen> oh!
Unode has joined #nixos
<manveru> hmm
<manveru> that might actually work...
<gchristensen> or alias `git ls-files` to `find .`
<Judson> Maybe as gem configs for the affected?
<gchristensen> it is basically all of them
<Judson> Far more than it ought to be, anyway.
<Judson> #notallgems
orivej has joined #nixos
<manveru> that's a bunch of samples from gems i have locally
<Judson> (sorry, when I was writing gems I took a lot of pride in explicitly listing their files)
mabel has joined #nixos
<manveru> so... tons of variations
<gchristensen> manveru: yeah, probably better to go the git init git add git commit route
<mabel> long shot, but are any of you VS Code users? I'm having some trouble with the python
<manveru> Judson: i mostly used `Dir['{lib,bin,spec}/**/*']` or the like
<manveru> gchristensen: sounds like it'd be worth a try
<Judson> I had a Vim macro I used to explicitly list them. But anyway...
<Judson> You can see how I wound up here.
<gchristensen> Judson: thank you for your service
<Church_> manveru: OpenVPN question? Trying to setup a server or client?
<Church_> Considered tinc or wireguard?
<Judson> That is a lot of variations.
<manveru> Church_: it needs to support windows
<manveru> i don't know tinc, and wireguard has no official client for it
<Judson> manveru are those all distributed via git, though? I mean, I guess you could add them to a Gemfile that way regardless...
<Church_> manveru: As in support being deployed on windows via nix?
<{^_^}> [nixpkgs] @vbgl opened pull request #53411 → ocamlPackages.resource-pooling: init at 0.5.2 → https://git.io/fhOi9
mabel has quit [Quit: WeeChat 2.2]
erictapen has joined #nixos
mabel has joined #nixos
agander has joined #nixos
sanscoeur has joined #nixos
<{^_^}> [nixpkgs] @Profpatsch opened pull request #53412 → WIP: Bazel 0.21.0 → https://git.io/fhOXq
arjen-jonathan has quit [Quit: WeeChat 2.3]
reinhardt has joined #nixos
sanscoeur has quit [Remote host closed the connection]
<manveru> Judson: Church_ no, a windows client
<mabel> is there any trick to debugging python modules on nix?
<Church_> Gotcha.
<manveru> sorry, i only meant Church_ :)
<Church_> Heheheh
random_yanek has quit [Read error: Connection reset by peer]
<manveru> there's a closed source client for wireguard, but the wireguard author hates it with passion :P
<Church_> Heh
<Church_> manveru: Tinc isn't bad to set up.
<Church_> manveru: Let me see what nixos has feature wise for the service.
<Church_> Setting up is as simple as running tinc join URL:HASH on a client.
<Church_> Once you have a server/initial client set up.
<Church_> It's nice and mesh based.
<manveru> sounds good :)
<manveru> not gonna use it for myself, just a friend wants a german VPN for a few hours
ambro718 has joined #nixos
<manveru> hm, that tinc config loads the private key into the nix store it seems
kreisys has joined #nixos
<manveru> oh well, not a big issue
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/cadb6ca5f66 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
qtoni has quit [Remote host closed the connection]
qtoni has joined #nixos
<kreisys> Did anyone else recently start getting 'unexpected end-of-file' errors on darwin?
Ptivall has joined #nixos
Ptivall has left #nixos [#nixos]
<kreisys> After a clean install of Nix everything is fine, but then when I install nix-darwin and let it manage everything it ends up using the latest nix from nixpkgs-unstable, which is the same version as what was installed from the tarball but a different hash
<kreisys> from that point all the nix tools start failing immediately with 'unexpected end-of-file' errors
<goibhniu> prooftechnique: mentioned something like that earlier
<kreisys> At least I'm not crazy 😅
<LnL> kreisys: 10.14?
<prooftechnique> You have just described exactly what I'm hitting, yeah
<kreisys> yeah 10.14.2
<prooftechnique> 10.14, for me, yeah
<kreisys> it happened after last time I updated the channel
<LnL> can you both run nix-info
shibboleth has quit [Quit: shibboleth]
<prooftechnique> Weirdly, I can make it work if I set the new gnupg-agent stuff to true.
<prooftechnique> system: "x86_64-darwin", multi-user?: no, version: nix-env (Nix) 2.1.3, channels(root): "nixpkgs-19.03pre164964.b0f40b78513", nixpkgs: $HOME/src/dotnix/nixpkgs
<prooftechnique> Though I actually am using the multi-user install, so that's not quite right
random_yanek has joined #nixos
<kreisys> I can't run nix-info after installing nix-darwin
<kreisys> because nix-shell is hosed lol
<LnL> kreisys: prooftechnique: https://github.com/NixOS/nix/issues/2523
<{^_^}> nix#2523 (by periklis, 8 weeks ago, open): darwin: nix-daemon crashes due to OBJC_DISABLE_INITIALIZE_FORK_SAFETY
<prooftechnique> I have nix-info installed, anyway, after getting one good build. Maybe you already have it under /run/current-system/sw/bin?
<LnL> gchristensen: this is the second person, I think nix-info doesn't detect nix-daemon correctly anymore
<prooftechnique> Aha
<kreisys> Not rn; I scripted the process of nuking nix from my system and then reinstalling it and nix-darwin from scratch
<gchristensen> ouch...
<gchristensen> nix-info -m -d
<prooftechnique> Well, that's less than ideal. That does line up with right about when I started hitting this issue. I can get around it with --option substitute false, but blech
<prooftechnique> And that gets me occasional failures because the apple-opensource s3 bucket permissions are broken, it seems
<LnL> gchristensen: I get yes tho
<catern> is there a way to do nix-store --import (or something similar) such that if there's a reference to a path which is not found in the store, Nix attempts to substitute that path, and only fails the import if it fails to substitute? that would allow distributing a small NAR which mostly pulls things from the binary cache
<kreisys> system: "x86_64-darwin", multi-user?: yes, version: nix-env (Nix) 2.1.3, channels(kreisys): "darwin", channels(root): "nixpkgs-19.03pre164964.b0f40b78513", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixpkgs
<kreisys> k I could run it with nix-shell without the daemon crashing
<LnL> kreisys: prooftechnique: you can recover by running the daemon interactively with that environment variable set, then rebuild to update it in the service definition
<kreisys> I tried using the default profile for nix.package
<LnL> or the version from the installer I posted
<kreisys> but that failed altogether
<kreisys> what environment variable?
<kreisys> For me it works fine if I change the plist file and replace /nix/store/agq9zq79m9yys2yli2vr0c999rfrg13h-nix-2.1.3/bin/nix-daemon with /nix/store/dkjlfkrknmxbjmpfk3dg4q3nmb7m3zvk-nix-2.1.3/bin/nix-daemon
<kreisys> the latter being the version that comes with the nix installer.
<kreisys> but that change would get nuked next time I run darwin-rebuild
<exarkun1> is it just the case that cross compilation for python modules is not yet supported?
<LnL> kreisys: https://github.com/NixOS/nix/issues/2523#issuecomment-439607386 or launchd.daemons.nix-daemon.environment.OBJC_DISABLE_INITIALIZE_FORK_SAFETY = "YES";
<prooftechnique> LnL: That launchd directive was just what I was missing. Let me do another rebuild and see if that fixes everything :D
<prooftechnique> Oh, my god, that did it
<prooftechnique> My productivity is saved :D
<prooftechnique> Thanks, LnL
griff_ has joined #nixos
<prooftechnique> And thanks, kreisys, for also having that problem :)
<kreisys> Hooray! Works for me too!
<kreisys> I should've come here yesterday
<kreisys> Oh well. At least now I have my bootstrapping scripted down :D
<prooftechnique> And that fixed my home-manager woes, too, so I'll call that a win
<betaboon> hello. using nixops sometimes copying paths from local nix-store to an aws-ec2-node is hella slow. any hints ?
rpg has joined #nixos
Mateon3 has joined #nixos
<exarkun1> I run nixops on the ec2 instance instead of running it locally
sanscoeur has joined #nixos
<kreisys> betaboon: I also found that a somewhat odd design decision... some people just use a remote host to run all their nixops stuffs. I ended up writing a terraform module that just puts a tarball full of expressions on S3 and creates the cloudwatch/systems-manager/etc infrastructure to make instances rebuild/switch whenever it changes. but it isn't super documented lol
<exarkun1> it's rather a pain.
<exarkun1> based on issues I've found in the tracker, there's no way to tell local nixops to to uploads/downloads on the remote builder.
<kreisys> if you wanna look at it it's github.com/kreisys/anxt
Mateon1 has quit [Ping timeout: 258 seconds]
Mateon3 is now known as Mateon1
<kreisys> downside is that each instance would build it separately and you don't have feedback if they fail (that could be easily mitigated with a cloudwatch rule the pushes an sns msg)
<betaboon> i have been using nixops for quite a while now. today i have the problem again. and i doubt its a nixops problem. copying paths to t3.nano works flawless. but copying paths to this m5d.large just seems to get stuck
<exarkun1> I have vaguely wondered about some NIX_REMOTE hack so that nixops is actually directly driving builds on the remote host
<exarkun1> betaboon: okay maybe you should specify your problem a bit more.
<ldlework> exarkun1: the docker model
<exarkun1> what do "works flawless" and "stuck" mean?
<cransom> woh. i see a ginormous speed difference between a `nix copy --to` between ssh-ng:// and ssh://, with ssh-ng slow to the point of looking very broken.
<exarkun1> ldlework: I'm not sure that docker can credibly lay claim to originating the client/server model. ;)
<kreisys> new gen are always slow. bunch of snowflakes
<ldlework> no just the one it uses
<ldlework> i don't know of many cli tools that use a client/server model though
<betaboon> exarkun1: sadly i cant say any more that what i just wrote. i am running nixops deploy with --max-concurrent-copy 1 to troubleshoot. according to wireshark traffic goes over the connection to that host. but copying the file just never finishes. even tho it is hella small.
Makaveli7 has joined #nixos
ddellacosta has joined #nixos
<betaboon> and from time to time i see a shitload of TCP Dup ACK and TCP Retransmission
<exarkun1> maybe your network is having problems?
<exarkun1> or AWS'.
<betaboon> exarkun1: i thought so too. but on t3.nano nodes it works flawless. just that m5d
<exarkun1> okay, so AWS' network
<exarkun1> I doubt anyone here can debug this would a lot more information
<exarkun1> maybe you can learn something from a traceroute to the affected machine (or some other similar diagnostic tool)
ris has joined #nixos
<betaboon> yeah thought so
<betaboon> running strace on nix-store on the target machines makes me believe that data is actually reaching the machine
phreedom_ is now known as phreedom
<exarkun1> builder for '/nix/store/1br6pxz4qzqxwg0rwnc16z5y0v18sw41-gfortran-debug-7.4.0-armv6l-unknown-linux-gnueabihf.drv' failed with exit code 2 - how do I find the expression in nixpkgs for this drv?
<{^_^}> [nixpkgs] @jabranham opened pull request #53414 → R: update CRAN and BIOC package sets → https://git.io/fhOSO
<mabel> anyone use spacevim?
<mabel> I'm having some trouble getting it to autoload in nvim
sigmundv_ has quit [Ping timeout: 240 seconds]
cyounkins has joined #nixos
m15k has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @etu opened pull request #53415 → ed: 1.14.2 -> 1.15 → https://git.io/fhOSd
<{^_^}> [nixpkgs] @etu closed pull request #53410 → ed: 1.14.2 -> 1.15 → https://git.io/fhOry
<eyJhb> Any good ways to make sure Dropbox starts on boot? I have tried a one-shot user systemd service, but doesn't seem to work, even though it runs
mithril has joined #nixos
<{^_^}> [nix-mode] @etu closed pull request #67 → Remove line that caused tests to not indent at all in the tests and fix regression → https://git.io/fhO0I
rfold has joined #nixos
_fw has joined #nixos
<gchristensen> etu: so is master broken or no?
<{^_^}> [nix-mode] @etu opened pull request #68 → Fix recent regressions → https://git.io/fhOHv
<gchristensen> oh,
<etu> gchristensen: yeah, dropped the wrong branch :(
<gchristensen> it happens :)
<etu> but yes, master is broken.
dslegends has quit [Quit: dslegends]
<etu> gchristensen: But good news, I added an ert-test of https://github.com/NixOS/nix-mode/issues/62 and a one-line fix and with all the tests so far my fix seems to work for that. But we need more tests. Way more tests.
<{^_^}> nix-mode#62 (by grahamc, 1 day ago, open): nix-indent-line gets confused by a comment containing "in"
frigate_freedom has left #nixos [#nixos]
<gchristensen> wow!
<gchristensen> great :D
<gchristensen> I solemnly swear to submit bug reports and test cases.
griff_ has quit [Quit: griff_]
<yl[m]> any shellHook experts? I have a shellHook with an `export KEY="VAL1 VAL2"` and it breaks because there is a space and somehow it is ignoring the quotes. Any workarounds? https://gist.github.com/kalbasit/efc69eef0d4c9f8f6259b046ae9bf847
<gchristensen> good news yl[m]
<yl[m]> gchristensen: oh
<yl[m]> let me try that
<gchristensen> every attribute passed to stdenv.mkDerivation becomes an environment variable
<yl[m]> that's right 🤦‍♂️
<yl[m]> thx!
<gchristensen> you're welcome :)
agander has quit [Remote host closed the connection]
robstr has joined #nixos
rpg has quit [Quit: Textual IRC Client: www.textualapp.com]
<jabranham> yl[m]: a bit off topic, but do you have a free font that can display 🤦?
<gchristensen> jabranham: https://github.com/grahamc/nixos-config/blob/master/main-configuration.nix#L156-L160 these do it for me, I think they'r efree
<jabranham> gchristensen: thanks. I have two of the four, I guess FACE PALM is in -cjk or -extra. I'll try it out.
<{^_^}> [nixpkgs] @mmai opened pull request #53416 → Funkwhale → https://git.io/fhO5J
PlasmaStrike[m] has joined #nixos
robstr has quit [Ping timeout: 256 seconds]
sir_guy_carleton has joined #nixos
<betaboon> is anyone using jenkins and uses it to generate a binary-cache and can point me in the right direction ?
<{^_^}> [nixpkgs] @FRidh pushed 139 commits to staging-next: https://git.io/fhO5s
<gchristensen> look at the copy commands at the end of this bit: https://nixos.org/nix/manual/#ssec-s3-substituter-authenticated-writes
the-kenny has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @dtzWill opened pull request #53417 → getdns: 1.4.2 -> 1.5.0, stubby: 0.2.3 -> 0.2.4 → https://git.io/fhO5w
griff_ has joined #nixos
<betaboon> gchristensen: thanks for the pointer
qtoni has quit [Ping timeout: 246 seconds]
tilpner has joined #nixos
MichaelRaskin has joined #nixos
sigmundv_ has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #53402 → cbor: init at 1.0.0 → https://git.io/fhOs6
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fhOdM
jtojnar has joined #nixos
mabel has quit [Ping timeout: 250 seconds]
phaebz has joined #nixos
<freeman42x[nix]> I have a question about Agda not seeing a Haskell library: https://paste2.org/Egg9zZ9B
wedens has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @dtzWill opened pull request #53418 → pasystray: 0.7.0 -> 0.7.1, cleanup → https://git.io/fhOFr
erictapen has quit [Ping timeout: 250 seconds]
erictapen has joined #nixos
<kreisys> Any other fish/darwin users have seen their PATH order changing after upgrading to fish 3.0.0?
sigmundv_ has quit [Ping timeout: 246 seconds]
Church_ has quit [Ping timeout: 250 seconds]
reinhardt has quit [Quit: Leaving]
m15k has joined #nixos
gwen has joined #nixos
gwen has quit [Ping timeout: 258 seconds]
the-kenny has joined #nixos
<yl[m]> jabranham: I'm using irccloud.
orivej has quit [Read error: Connection reset by peer]
the-kenny has quit [Read error: Connection reset by peer]
orivej has joined #nixos
<pbb> Hi, does anyone here know why the qemu-vm module is not included in modules-list.nix?
<{^_^}> [nixpkgs] @uvNikita opened pull request #53419 → nixos/containers: add bridge without address specified → https://git.io/fhOxx
<{^_^}> [nixpkgs] @rasendubi merged pull request #52846 → fakeroot: Add sed dependency. → https://git.io/fhUxy
<{^_^}> [nixpkgs] @rasendubi pushed 2 commits to master: https://git.io/fhOpm
edrex has joined #nixos
worldofpeace has joined #nixos
mgdm has joined #nixos
<{^_^}> [nixpkgs] @etu opened pull request #53420 → gitea: 1.6.2 -> 1.6.3 → https://git.io/fhOpX
cyounkins has quit [Remote host closed the connection]
the-kenny has joined #nixos
the-kenny has quit [Read error: Connection reset by peer]
the-kenny has joined #nixos
the-kenny has quit [Read error: Connection reset by peer]
griff_ has quit [Quit: griff_]
<{^_^}> [nixpkgs] @joachifm merged pull request #53369 → Re-add security features based on GCC plugins in 4.18+ hardened kernels → https://git.io/fhYQG
<{^_^}> [nixpkgs] @joachifm pushed 4 commits to master: https://git.io/fhOhz
mabel has joined #nixos
<jabranham> What's the easiest way of changing the src for a derivation?
__monty__ has quit [Quit: leaving]
<ldlework> override or overrideAttr ?
<ldlework> i'm guessing
<ldlework> kinda
<ldlework> educated guess :)
zgrep has quit [Quit: This is me *really* leaving.]
<mgdm> Hey. I'm installing NixOS on a machine, basically following gchristensen's guide at https://grahamc.com/blog/nixos-on-dell-9560 to do full disk encryption, but when I get to rebooting, I type in my passphrase and then the root device doesn't appear
<mgdm> anyone seen that before?
<Church-> gchristensen: Well? Have you? :p
<ldlework> lol
<gchristensen> I wish I did, or I'd have helped mgdm in my other chat with them :)
<mgdm> hehe
<mgdm> I've not typoed the /dev/disk/by-uuid/* path, either...
<Church-> Oh fde
<Church-> Nah I'm good
zgrep has joined #nixos
eadwu has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
orivej_ has joined #nixos
<etu> mgdm: on my system I usually need to add something like: boot.initrd.luks.devices."disk".device = "/dev/disk/by-uuid/BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB"; where that uuid is a symlink to /dev/sda2 which is my luks device of my root device
<endformationage> Sniffing http2 headers in Wireshark seems to require external nghttp2 package, anyone have idea how to add libnghttp2 to nixos' wireshark?
<Church-> endformationage: Overlay
<mgdm> etu: I think I've been a clown and used the 'unlocked' uuid instead of the correct one in boot.initrd.luks.devices
iqubic has joined #nixos
<mgdm> they have the same first couple of characters...
<gchristensen> :D
<etu> mgdm: bad luck with rngesus there then
<gchristensen> haha
<mgdm> :D
m15k has quit [Ping timeout: 256 seconds]
<mgdm> rngesus is a new one on me, haha
the-kenny has joined #nixos
the-kenny has quit [Client Quit]
the-kenny has joined #nixos
the-kenny has quit [Client Quit]
the-kenny has joined #nixos
<{^_^}> [nixpkgs] @leenaars opened pull request #53422 → pythonPackages.python-snappy: init at 0.5.3 → https://git.io/fh3fe
<mgdm> Och I did the same for the swap, I'm an idiot
<jabranham> Do I need to specify the branch somehow when using fetchGit? I'm getting "fatal: not a tree object" from git even though I know I'm putting in the right rev
dslegends has joined #nixos
<gchristensen> mgdm: all good now? :)
<gchristensen> jabranham: yes, specify rev and ref
<gchristensen> jabranham: https://nixos.org/nix/manual/#idm140737317584640 check out this part, including the note
<jabranham> gchristensen: ah, great. Thanks!
tilpner has quit [Quit: WeeChat 2.3]
jtojnar has quit [Remote host closed the connection]
<mgdm> gchristensen: yeah! it boots and I have installed vim
<gchristensen> mgdm: w00t!
kreisys has quit [Quit: Textual IRC Client: www.textualapp.com]
<mgdm> thanks!
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53228 → python37Packages.faker: 0.9.3 -> 1.0.1 → https://git.io/fhqAu
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « python37Packages.faker: 0.9.3 -> 1.0.1 »: https://git.io/fh3f1
<etu> mgdm: Nice, welcome to nixos! :)
kisonecat has joined #nixos
<mgdm> etu: thanks! :)
justanotheruser has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53247 → plantuml: 1.2018.13 -> 1.2018.14 → https://git.io/fhmtU
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « plantuml: 1.2018.13 -> 1.2018.14 »: https://git.io/fh3Je
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53203 → python37Packages.django_redis: 4.9.1 -> 4.10.0 → https://git.io/fhqw5
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « python37Packages.django_redis: 4.9.1 -> 4.10.0 »: https://git.io/fh3JU
<luigy> adisbladis: thanks for the the suggestion of Xvfb but I didn't get it to work for me in a sandbox build. I did get a workaround in the end though by setting this `FONTCONFIG_PATH=${fontconfig.out}/etc/fonts chromium ...` in case anyone else runs into this
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53199 → python37Packages.node-semver: 0.5.1 -> 0.6.1 → https://git.io/fhq24
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « python37Packages.node-semver: 0.5.1 -> 0.6.1 »: https://git.io/fh3JO
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<{^_^}> [nixpkgs] @dtzWill opened pull request #53425 → fwupd: 1.2.1 -> 1.2.3 → https://git.io/fh3JE
vk3wtf has quit [Ping timeout: 250 seconds]
the-kenny has quit [Quit: WeeChat 2.3]
the-kenny has joined #nixos
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/eebd1a92637 (from 28 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
chaker has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @tathougies opened pull request #53427 → pkgs/tcl: Allow cross-compilation → https://git.io/fh3Tf
<mabel> how do I get the rev and sha256 values for fetchFromGithub?
<etu> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<mabel> ahh, okay. also apparently there's nix-prefetch-git?
<etu> yeah, I usually go tofu. And I imagine that many go that route :)
<LnL> fetchFromGitHub doesn't use git in most cases so you'd probably end up with a wrong hash
<gchristensen> in a couple of cases, a prefetcher will give you a different hash than nix would -- and then you find out later
<LnL> exactly I dislike any of the tools that don't use the expression, in which case you need a temporary hash anyway :)
eadwu has quit [Ping timeout: 246 seconds]
simukis has quit [Read error: Connection reset by peer]
<gchristensen> etu: can you provide examples of serious bugs https://github.com/NixOS/nix-mode/pull/68 fixes?
<{^_^}> nix-mode#68 (by etu, 3 hours ago, open): Fix recent regressions
simukis has joined #nixos
<etu> gchristensen: Sure, tomorrow... :)
<gchristensen> etu: what is your TZ?
<gchristensen> ah, ok
<gchristensen> etu: sgtm :) night!
<etu> gchristensen: UTC+1 at the moment
gagbo has quit [Ping timeout: 250 seconds]
<etu> We usually shift to +2 in the summer
<gchristensen> I know :) I have your TZ in my statusbar.
sanscoeu_ has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
fusion809 has joined #nixos
sanscoeur has quit [Ping timeout: 245 seconds]
gagbo has joined #nixos
sanscoeu_ has quit [Ping timeout: 258 seconds]
pie__ has quit [Remote host closed the connection]
ddellacosta has quit [Remote host closed the connection]
erasmas has quit [Quit: leaving]
kisonecat has quit [Ping timeout: 268 seconds]
orivej_ has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @Mic92 opened pull request #53428 → cloud-print-connector: 1.11 -> 1.16 → https://git.io/fh3kw
ambro718 has quit [Ping timeout: 245 seconds]
<hexa-> adisbladis: hey, I see you took care of the pulseaudio-modules-bt fork with ldac support. I tried installating it as described in the wiki, but extraModules does exist below hardware.pulseaudio, at least not on 18.09. Any idea how to set it up?
_fw is now known as ferriswheel
simukis has quit [Read error: Connection reset by peer]
simukis has joined #nixos
<Mic92> hexa-: I see it in unstable though
<hexa-> yeah, I just noticed ._.
<Mic92> hexa-: 2018-10-18 03:05
<hexa-> someone next to me *cough* is testing an override
<Mic92> hexa-: I think you can backport it, if I look at the diff
<hexa-> Mic92: are people generally on unstable rather than stable?
<Mic92> hexa-: hard to say. Most maintainer are on unstable
<Mic92> I guess most commercial users prefer the stable version.
<Mic92> Personally I find having my local nixpkgs checkout easier then using a channel
<Mic92> because I can use git tooling to get my stuff the way I want
pie_ has joined #nixos
<Mic92> i.e. git cherry-pick
<hexa-> indeed
cyounkins has joined #nixos
<Mic92> and there is the nixos-channel repository on github that one can use to follow hydra
<hexa-> alot to learn I still hve
<Mic92> and for all server machines I deploy from the same repository using nixops
rfold has quit [Quit: leaving]
orivej has joined #nixos