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
Dagger has joined #nixos
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/fh9B2
<{^_^}> [nixpkgs] @flokli pushed commit from @jslight90 to release-18.09 « gitlab: 11.6.3 -> 11.7.4 »: https://git.io/fh9Ba
knupfer has quit [Read error: Connection reset by peer]
dbmikus has quit [Ping timeout: 245 seconds]
fusion809 has quit [Quit: Leaving]
simukis has quit [Quit: simukis]
q6AA4FD has joined #nixos
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/addb7f23ebc (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
jluttine has quit [Ping timeout: 240 seconds]
erasmas has quit [Quit: leaving]
eadwu has joined #nixos
<lucus16> ugh, fetchgit is somehow failing to do a recursive clone
elgoosy has quit [Remote host closed the connection]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @matthewbauer pushed to staging-next « libvdpau: add -lX11 on darwin »: https://git.io/fh9BH
goibhniu has quit [Ping timeout: 250 seconds]
jluttine has joined #nixos
sicklorkin has joined #nixos
<lucus16> because nix-prefetch-git failed D:
<sicklorkin> gchristensen: I was never able to run a successful set of tests on my laptop or server https://github.com/NixOS/nix/pull/2643 i did make some note and am happy to continue trying - may need a little guidence tho
<{^_^}> nix#2643 (by buecking, 2 weeks ago, open): install: Check for a valid umask before running multi-user installer.
<{^_^}> [nixpkgs] @matthewbauer closed pull request #53760 → [WIP] Build nixpkgs with gcc 8 by default → https://git.io/fhZXt
<{^_^}> [nixpkgs] @matthewbauer reopened pull request #53760 → [WIP] Build nixpkgs with gcc 8 by default → https://git.io/fhZXt
kvda has joined #nixos
halfbit has quit [Ping timeout: 264 seconds]
Ralith_ has joined #nixos
doyougnu has joined #nixos
doyougnu has quit [Client Quit]
<{^_^}> [nixpkgs] @Mic92 opened pull request #55291 → dino: 2018-11-29 -> 2019-02-06 → https://git.io/fh9R3
jluttine has quit [Ping timeout: 272 seconds]
q6AA4FD has quit [Quit: ZNC 1.7.1 - https://znc.in]
<{^_^}> [nixpkgs] @peterhoeg merged pull request #54541 → [WIP] home-assistant: 0.85.1 -> 0.86.4 → https://git.io/fhwAY
<{^_^}> [nixpkgs] @peterhoeg pushed 5 commits to master: https://git.io/fh9R8
<Church_> Anybody get rpcs3 working correctly?
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/12b1462924a (from 65 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
jluttine has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
acarrico has quit [Ping timeout: 240 seconds]
acarrico has joined #nixos
<{^_^}> [nixpkgs] @orivej opened pull request #55292 → nccl: 2.1.4 -> 2.4.2-1 → https://git.io/fh9RK
jluttine has quit [Ping timeout: 240 seconds]
q6AA4FD has joined #nixos
silver has quit [Quit: rakede]
jonreeve has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
<jonreeve> Can anyone else manage to install the Python library word2vec? I tried this: `nix-shell -p 'python37.withPackages(ps: with ps; [ word2vec ])'` but I keep getting this: ` Could not find a version that satisfies the requirement scikit-learn (from word2vec==0.10.2) (from versions: )`
xkapastel has quit [Quit: Connection closed for inactivity]
<simpson> jonreeve: Reproduced here, same error.
<jonreeve> simpson: Hm I'm looking at https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/word2vec/default.nix. Is there a way I can just copy and paste that into my project's shell.nix?
<simpson> jonreeve: Sure.
<simpson> jonreeve: Anyway, https://bpaste.net/show/a0d874d9426d seems to fix the build, at least. Not sure whether the resulting package is usable; I don't know how to word2vec.
Rusty1 has joined #nixos
ikitat has joined #nixos
<jonreeve> simpson: Awesome. This is what my project's shell.nix looks like: https://gist.github.com/JonathanReeve/b9d1d3a0dff7bec95534bcffbc079f81
<jonreeve> simpson: Do you know where I can put those changes?
<jonreeve> simpson: And/or how to get around this issue by doing something with that file?
<simpson> Not offhand, no. Just patch your local nixpkgs.
<simpson> Maybe .override would work? I'm not exactly sure how callPackage interacts with .override.
abbafei[m] has joined #nixos
ebzzry has joined #nixos
Guest39518 has quit [Ping timeout: 240 seconds]
<ebzzry> Does flatpak need root to install apps?
<simpson> Ha, actually, the fix isn't upstream at all, so you're gonna need a patch like this, and applying it directly is going to be *much* faster than waiting for me to make a PR and then waiting for the merge. (And then, optionally, waiting for the channel update.)
<jonreeve> simpson: Do you know how I'd go about patching it?
<jonreeve> simpson: I have no idea what I'm doing; I'm new to nixos.
<simpson> ebzzry: That's what their docs say. Personally I'm skeptical.
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fh9R5
<simpson> jonreeve: Piles of options and opinions, from overlays to local git checkouts. Personally I have a local git clone of nixpkgs, because it facilitates contributing back upstream.
kyren has quit [Ping timeout: 250 seconds]
<jonreeve> simpson: What's the easiest? I'm just trying to get a Python environment up quickly with these packages, since I have to do something tonight with it
<simpson> My workflow on this patch was to go into my local nixpkgs, change the file, use $(nix repl ~/nixpkgs) to confirm.
<simpson> jonreeve: Use tools that you know if you're on a deadline.
jluttine has joined #nixos
<simpson> What's easy for me is only easy because I know the Nix language and have read https://nixos.org/nixpkgs/manual/
<jonreeve> simpson: Yeah I might as well install an Ubuntu virtualbox or something. Switching to NixOS on my laptop has not been great for deadlines
jasongrossman has quit [Ping timeout: 268 seconds]
<simpson> jonreeve: Sounds good. Best of luck.
<jonreeve> simpson: What's frustrating is that everything works except word2vec, though. I was hoping there's just be something I could add to that project file
<ebzzry> simpson: where are those docs?
slack1256 has joined #nixos
<simpson> jonreeve: There's probably a hacky way to do it. I'm trying to prod you to be not dependent on the multi-day-long turnaround of the Python maintainers in order to have unbroken packages.
<ebzzry> simpson: thanks
DrLambda has joined #nixos
<jonreeve> simpson: I'll take any hack I can get, since it'd probably be faster than installing Ubuntu
<simpson> ebzzry: Note that I don't recommend any of this. Non-Nix tools that do Nix-like things are highly suspect to me, and anything that only works with sudo like that is *very* suspect.
<ebzzry> simpson: I do, too.
<simpson> jonreeve: Off the top of my head, safety not guaranteed: $ git clone https://github.com/nixos/nixpkgs.git && cd nixpkgs; curl https://bpaste.net/raw/a0d874d9426d | git apply -; nix repl default.nix
<simpson> jonreeve: > :b python37.withPackages (ps: [ ps.word2vec ])
<simpson> $ export NIX_PATH=nixpkgs=/path/to/your/local/nixpkgs
<simpson> Something like that. Think before doing; don't run any command I give you verbatim.
<abbafei[m]> Hi, having a little problem here: `actkbd` is not running the `light` command when run declaratively (from nixos config), as seen [on the nixos wiki](https://nixos.wiki/wiki/Backlight#Key_mapping). However, running the same command that the declarative config runs (sudo nix/store/1f7vq0jcdcszr8p2qih2jkfr610dphi6-actkbd-0.2.8/bin/actkbd -D -c /nix/store/kh3azgrgi1gv6v41kxxn90332qh174vi-actkbd.conf -d /dev/input/event9)
<abbafei[m]> works! It seems that since the `light` command uses special permissions (see [here](https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/programs/light.nix#L11) ), when systemd runs the `light` command it somehow restricts the environment, and although the systemd processes run as root (e.g. <code>root 5312 1 0 18:57 ? 00:00:00 /nix/store/1f7vq0jcdcszr8p2qih2jkfr610dphi6-actkbd-0.2.8/bin/actkbd -D -c
<abbafei[m]> /nix/store/kh3azgrgi1gv6v41kxxn90332qh174vi-actkbd.conf -d /dev/input/event9</code>), they must run restricted in some way. Is there any way I can make this work declaratively, instead of having to run the command every time the computer starts up?
jasongrossman has joined #nixos
<jonreeve> simpson: Cool, I'll try that; thanks
<{^_^}> [nixpkgs] @peterhoeg opened pull request #55294 → home-assistant: missing dependencies → https://git.io/fh9Rx
kyren has joined #nixos
<iqubic> So a haskell project of mine relies on having the Gnuplot lib in the $PATH when I run the haskell shell.
<iqubic> er... Nix-shell.
<iqubic> I need the gnuplot executable in my shell.
<iqubic> How do I go about doing that?
<iqubic> I'm using cabal2nix here.
<iqubic> Shell.nix
<iqubic> Default.nix
<iqubic> bohmian.nix
<maximiliantagher> Uh, I'm not someone who should be giving NixOS advice but you could try the recommendation here: https://github.com/NixOS/nixpkgs/issues/17226#issuecomment-234768783
<{^_^}> [nixpkgs] @matthewbauer pushed to master « qt511: add patch for macOS sdk »: https://git.io/fh9Rj
<jonreeve> simpson: awesome, it works! Thanks.
<simpson> jonreeve: Great.
<justanotheruser> what what causes "illegal name: '.drv'? https://paste.debian.net/1065507/
<matthewbauer[m]> iqubic: You should be able to just add gnuplot to buildDepends in bohmian.nix
<matthewbauer[m]> justanotheruser: it happens when you're missing name
<iqubic> matthewbauer[m]: I would just do that, but that file will just get overwritten by cabal2nix next time I update my cabal file.
<justanotheruser> matthewbauer[m]: ty
<iqubic> So I need a more permanent solution.
<matthewbauer[m]> justanotheruser: we actually fixed that so it gives a better error in a pr recently. can't find it right now though
<justanotheruser> okay, I'll look forward to that in 19.03 :)
Jetien has joined #nixos
<{^_^}> [nixpkgs] @jabranham opened pull request #55295 → ledger: 3.1.1 -> 3.1.2 → https://git.io/fh90f
vk3wtf has quit [Ping timeout: 240 seconds]
<justanotheruser> I'm trying to update my python development environment upon which I call `nix-shell`, and I am getting the error "variable $src or $srcs should point to the source
<justanotheruser> as described in this issue https://github.com/NixOS/nixpkgs/pull/23971#pullrequestreview-27576779 I have set unpackPhase = "true"; but I still get the error. Could someone please advise? https://paste.debian.net/plain/1065510
<justanotheruser> development environment default.nix*
<lucus16> justanotheruser: Looks to me like it needs to be in the other derivation
ebzzry has quit [Quit: WeeChat 2.3]
<lucus16> justanotheruser: the final derivation will not be built, just used for nix-shell, but the other one needs to be built, so it either wants srcs or unpackPhase = true
<justanotheruser> yep, thanks!
<lucus16> justanotheruser: What is the first package for though?
<justanotheruser> could you explain why it worked before when it looked like this? https://paste.debian.net/plain/1065513
<justanotheruser> the first package is to get the python packages defined ~/.nixpkgs
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<lucus16> justanotheruser: When you run nix-shell on a derivation, it doesn't try to build it. unpackPhase is never executed, just set as an environment variable
<lucus16> So it doesn't fail until you'd manually run unpackPhase inside the nix-shell
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/7003a289164 (from 73 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<justanotheruser> Is mkDerivation the correct way of going about creating an environment for nix-shell?
<lucus16> yes
Jetien has quit [Ping timeout: 245 seconds]
<lucus16> though buildPythonPackage probably creates a derivation internally as well, so that should work too
Church_ has quit [Ping timeout: 244 seconds]
<justanotheruser> this seems like a cleaner way to do it https://paste.debian.net/1065514/
<lucus16> it is!
<lucus16> you no longer need to override unpackPhase anymore either that wa
<lucus16> way*
<justanotheruser> oh really? Why's that?
<lucus16> because that derivation is the result of the nix expression, so nix-shell only loads its environment, it doesn't try to build the derivation
<justanotheruser> but that derivation was the result of a nix expression with the prior paste, wasn't it?
<justanotheruser> but that prior pasted derivation was the result of a nix expression, wasn't it? **
<lucus16> this one you mean? https://paste.debian.net/plain/1065510
<justanotheruser> yes
notedge has joined #nixos
<lucus16> In that case you have two derivations, the last one which is the result won't be built
phry has quit [Read error: Connection reset by peer]
<lucus16> but the first one is a dependency, so it needs to be built before it can be used by the last one
<lucus16> Building a package is probably not what you intended to do there though
<justanotheruser> mhm
<justanotheruser> I don't quite understand the logic around the rule, but I can understand that if I make two derivations, it won't accept the "outermost' derivation
<justanotheruser> as my shell without a src
<lucus16> nix-shell is a tool to give you a shell with all the inputs you need for your build. If you put bigPackage in the buildInputs, it becomes a package you need to build, so it will be available in your shell
<lucus16> nix-shell allows you to try building a derivation manually, which is why it doesn't build the derivation you give it. It builds all the dependencies because you'll need them to build
drakonis has quit [Quit: WeeChat 2.3]
<{^_^}> [nixpkgs] @grahamc opened pull request #55296 → efi-image_eltorito: make reproducible → https://git.io/fh90c
<justanotheruser> right, being designed around builds and not for general development makes the limitation make sense
fusion809 has joined #nixos
daniele- has joined #nixos
o1lo01ol1o has joined #nixos
eadwu has quit [Quit: WeeChat 2.3]
<{^_^}> [nixpkgs] @kalbasit merged pull request #55252 → amass: 2.8.5 -> 2.9.1 → https://git.io/fh9kU
<{^_^}> [nixpkgs] @kalbasit pushed to master « amass: 2.8.5 -> 2.9.1 (#55252) »: https://git.io/fh900
alex_giusi_tiri has left #nixos [#nixos]
eadwu has joined #nixos
sigmundv_ has quit [Ping timeout: 240 seconds]
ikitat has quit [Ping timeout: 268 seconds]
eadwu has quit [Client Quit]
frank87 has quit [Ping timeout: 250 seconds]
eadwu has joined #nixos
frank87 has joined #nixos
daniele- has quit [Quit: daniele-]
petersjt014_ has quit [Remote host closed the connection]
zachmane has joined #nixos
zachmane has left #nixos [#nixos]
zachmane has joined #nixos
petersjt014 has joined #nixos
LeshaInc has quit [Ping timeout: 245 seconds]
LeshaInc has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
andreabedini has joined #nixos
<zachmane> Hello looking for some help here. Currently my computer has a nvidia graphics card. The xserver has problems starting up. It starts and stops even after trying a combination of intel, nvidia drivers. The driver specific to my OS is nvidia-390. My partitioned ubuntu can start with the desktopManager after installing the above driver. Would be grateful to anyone who can point me in the right direction
<jackdk> https://nixos.org/nixos/manual/#sec-x11-graphics-cards-nvidia suggests: services.xserver.videoDrivers = [ "nvidiaLegacy390" ];
<zachmane> Hmm okay ill try that @jackdk
<zachmane> Thanks!
lfish has joined #nixos
<zachmane> Actually it installs that driver even with nvidia specified. I saw it in the install log
<zachmane> But thanks :)
<jackdk> then I've got nothing, sorry. (I specifically buy non-nvidia for my machines running GNU)
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
eadwu has quit [Quit: WeeChat 2.3]
<lfish> Hello, I'm following a tutorial in Ruby on Rails and trying to make a shell.nix for it. This is what I got https://pastebin.com/sWcDKFDz . Problem is, as far as I can tell, that ruby, or the gems installer has to be aware of libxml2 and curl to be able to build one of the gems used. And I don't know how to do that, help please.
maximiliantagher has quit [Ping timeout: 250 seconds]
mmlb has joined #nixos
brejoc has joined #nixos
andersk has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Remote host closed the connection]
attente[m] has left #nixos ["User left"]
fusion809 has quit [Remote host closed the connection]
<iqubic> jackdk: Do you know how I can specify that my haskell project depends on an external binary? I'd like to also be able to keep using cabal2nix as well.
andersk has joined #nixos
<jackdk> iqubic: did you read my paste on #haskell?
<iqubic> No. I must have missed that?
fusion809 has joined #nixos
maximiliantagher has joined #nixos
<jackdk> iqubic: something like https://pastebin.com/dXa5tbRi , maybe?
brejoc has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ikitat has joined #nixos
o1lo01ol1o has joined #nixos
ikitat has quit [Ping timeout: 245 seconds]
zachmane has quit [Remote host closed the connection]
maximiliantagher has quit [Remote host closed the connection]
lux1 has quit [Ping timeout: 240 seconds]
maximiliantagher has joined #nixos
notedge has quit [Ping timeout: 240 seconds]
rcshm has quit []
ikitat has joined #nixos
maximiliantagher has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55298 → igv: 2.4.16 -> 2.4.17 → https://git.io/fh9EU
halfbit has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
maximiliantagher has joined #nixos
o1lo01ol_ has joined #nixos
zachmane has joined #nixos
drakonis has joined #nixos
counting1ort has joined #nixos
drakonis has quit [Client Quit]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55299 → jmol: 14.29.29 -> 14.29.31 → https://git.io/fh9E4
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
maximiliantagher has quit [Read error: Connection reset by peer]
maximiliantagher has joined #nixos
countingsort has quit [Ping timeout: 272 seconds]
o1lo01ol_ has quit [Remote host closed the connection]
leothrix has quit [Quit: ZNC 1.7.1 - https://znc.in]
leothrix has joined #nixos
vk3wtf has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
jonreeve has quit [Ping timeout: 268 seconds]
DrLambda has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @telotortium opened pull request #55301 → Remove option config.services.tt-rss.checkForUpdates (forced to false) → https://git.io/fh9Ew
ashkitten has quit [Quit: WeeChat 2.2]
DrLambda has joined #nixos
ashkitten has joined #nixos
<{^_^}> [nixpkgs] @teto opened pull request #55302 → [wip] doc: update lua documentation → https://git.io/fh9EP
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55303 → hyperscan: 5.0.0 -> 5.1.0 → https://git.io/fh9ED
zachmane has quit [Remote host closed the connection]
akaWolf has quit [Remote host closed the connection]
tdbgamer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<petersjt014> hi: when I cross-compile and copy a closure to install it on another machine, the path still has the arch info in it
<petersjt014> eg "/nix/store/0xjxzxnx813mixfc9m65vlwg031gcdwg-xclip-0.13-armv6l-unknown-linux-gnueabihf"
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55304 → gnome3.gnome-klotski: 3.22.3 -> 3.31.3 → https://git.io/fh9Ed
<petersjt014> what's the best way to deal with that?
joehh has joined #nixos
<joehh> hello people, anyone use mklivestatus or similar with nagios on nixos?
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
snajpa has quit [Ping timeout: 240 seconds]
aither has quit [Ping timeout: 268 seconds]
srk has quit [Ping timeout: 245 seconds]
mikky has quit [Ping timeout: 250 seconds]
plytkejsie has quit [Ping timeout: 252 seconds]
Adluc has quit [Ping timeout: 252 seconds]
maximiliantagher has quit [Ping timeout: 268 seconds]
mikky has joined #nixos
snajpa has joined #nixos
srk has joined #nixos
srk has joined #nixos
srk has quit [Changing host]
jasongrossman has quit [Remote host closed the connection]
aither has joined #nixos
<{^_^}> [nixpkgs] @veprbl merged pull request #55257 → Backport fixes to tensorflow to release-18.09 → https://git.io/fh9kd
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to release-18.09: https://git.io/fh9uv
<{^_^}> [nixos-hardware] @kalbasit opened pull request #97 → dell/xps/13-9380: init → https://git.io/fh9uf
ryantm has quit [Read error: Connection reset by peer]
ryantm has joined #nixos
worldofpeace has quit [Quit: worldofpeace]
lfish has quit [Ping timeout: 256 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @teto opened pull request #55305 → Lua: moving some package to the luarocks whitelist → https://git.io/fh9ut
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55306 → i3-gaps: 4.16 -> 4.16.1 → https://git.io/fh9uq
leothrix has quit [Quit: ZNC 1.7.1 - https://znc.in]
leothrix has joined #nixos
ikitat has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @jtojnar closed pull request #55304 → gnome3.gnome-klotski: 3.22.3 -> 3.31.3 → https://git.io/fh9Ed
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55307 → libgnurl: 7.62.0 -> 7.63.0 → https://git.io/fh9us
<{^_^}> [nixpkgs] @megheaiulian opened pull request #55308 → gitkraken: fix missing gsettings schemas → https://git.io/fh9uZ
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55283 → materia-theme: 20181125 -> 20190201 → https://git.io/fh9lC
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @romildo to master « materia-theme: 20181125 -> 20190201 »: https://git.io/fh9uz
palo1 has joined #nixos
ryantrinkle has quit [Ping timeout: 245 seconds]
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/89c2bf50694 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
slack1256 has quit [Remote host closed the connection]
Ariakenom has joined #nixos
c0ffee152 has quit [Quit: Lost terminal]
halfbit has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55309 → gnome3.gnome-nibbles: 3.24.1 -> 3.31.3 → https://git.io/fh9ur
vk3wtf has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @jtojnar closed pull request #55309 → gnome3.gnome-nibbles: 3.24.1 -> 3.31.3 → https://git.io/fh9ur
andreabedini has joined #nixos
andreabedini has quit [Client Quit]
jackdk has quit [Ping timeout: 244 seconds]
joehh has quit [Remote host closed the connection]
<{^_^}> [rfcs] @Ericson2314 opened pull request #40 → "Ret-cont" recursive Nix → https://git.io/fh9ui
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53261 → ledger-autosync: init at 1.0.0 → https://git.io/fhmCK
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh9uX
chross-q has joined #nixos
chross-q has quit [Client Quit]
bpa has joined #nixos
endformationage has quit [Quit: WeeChat 2.3]
lfish has joined #nixos
hyper_ch2 has joined #nixos
DrLambda has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 244 seconds]
maximiliantagher has joined #nixos
rauno has joined #nixos
ajp has joined #nixos
Ariakenom has quit [Quit: Leaving]
<typetetris> Looks like all the bitbucket.com packages don't work with emacs2nix from my network.
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/12b1462924a (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<colemickens> Hi, I booted an old nixos image and am trying to upgrade in place. If I add the nixos-18.09 channel as "nixos" adn then try to nixos-rebuild switch, I get errors like this:
<colemickens> error: syntax error, unexpected $undefined, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at /nix/store/gf653a6gsdr32akf8cknp8y8gacr1fws-nixos-18.09.2104.addb7f23ebc/nixos/pkgs/build-support/fetchpatch/default.nix:42:40
<colemickens> Did I do something wrong?
maximiliantagher has quit [Ping timeout: 240 seconds]
sinner has joined #nixos
dejanr has joined #nixos
sinner is now known as Guest90828
rauno has quit [Ping timeout: 246 seconds]
rauno has joined #nixos
hexo_ has joined #nixos
ninjin has quit [Quit: WeeChat 2.2]
Adluc has joined #nixos
freeman42x has quit [Ping timeout: 252 seconds]
nD5Xjz has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55310 → groonga: 8.1.0 -> 8.1.1 → https://git.io/fh9ud
rauno has quit [Ping timeout: 250 seconds]
dermetfan has joined #nixos
fusion809 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55311 → haproxy: 1.9.1 -> 1.9.3 → https://git.io/fh9up
<lfish> hello, I'm runinng into issues trying to set up an environment to develop with rails. I need a gem that in turn requires curl, libxml2 and gcc to be built. This is what I have now https://pastebin.com/sWcDKFDz . How do I make the libraries available in the building environment of the gems themselves?
nschoe has joined #nixos
dermetfan has quit [Ping timeout: 245 seconds]
zupo has joined #nixos
wigust has quit [Ping timeout: 245 seconds]
zupo_ has joined #nixos
nschoe has quit [Client Quit]
wigust has joined #nixos
nD5Xjz has joined #nixos
tzemanovic has joined #nixos
zupo has quit [Ping timeout: 240 seconds]
rauno has joined #nixos
tzemanov_ has joined #nixos
Ariakenom has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
nD5Xjz_ has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
nD5Xjz has quit [Ping timeout: 240 seconds]
Avaq has quit [Quit: Leaving.]
tzemanov_ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55312 → google-compute-engine: 20181206 -> 20190124 → https://git.io/fh9zm
Makaveli7 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55313 → guvcview: 2.0.5 -> 2.0.6 → https://git.io/fh9z3
ThatDocsLady has joined #nixos
<{^_^}> [nixpkgs] @vbgl closed pull request #55244 → ocamlPackages.psmt2-frontend: 0.1 -> 0.2 → https://git.io/fh9JQ
zupo has joined #nixos
reinhardt has joined #nixos
emacsomancer has quit [Ping timeout: 250 seconds]
<{^_^}> [nixos-hardware] @Mic92 reopened pull request #91 → apple: Add support for MacBook 3,X → https://git.io/fhtYi
zupo_ has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/8008d0bbc69 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55314 → gnome3.gnome-robots: 3.22.3 -> 3.31.3 → https://git.io/fh9zB
<{^_^}> [nixpkgs] @jtojnar closed pull request #55314 → gnome3.gnome-robots: 3.22.3 -> 3.31.3 → https://git.io/fh9zB
rauno has quit [Ping timeout: 245 seconds]
lopsided98 has quit [Quit: No Ping reply in 180 seconds.]
lopsided98 has joined #nixos
tv has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55315 → flatpak-builder: 1.0.2 -> 1.0.3 → https://git.io/fh9zi
lassulus has quit [Ping timeout: 240 seconds]
tv has joined #nixos
cswl has joined #nixos
lassulus has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55316 → flacon: 5.0.0 -> 5.1.0 → https://git.io/fh9zy
akaWolf has joined #nixos
tzemanovic has joined #nixos
rauno has joined #nixos
DrLambda has joined #nixos
reinhardt has quit [Ping timeout: 245 seconds]
emacsomancer has joined #nixos
reinhardt has joined #nixos
v0latil3_ has joined #nixos
v0latil3_ is now known as mvnetbiz
Makaveli7 has quit [Ping timeout: 252 seconds]
Makaveli7 has joined #nixos
reinhardt has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55317 → gammu: 1.39.0 -> 1.40.0 → https://git.io/fh9gT
Guest90828 has quit [Ping timeout: 250 seconds]
hellrazor has joined #nixos
Glider_IRC_ has joined #nixos
Makaveli7 has quit [Quit: Leaving]
maximiliantagher has joined #nixos
Glider_IRC has quit [Ping timeout: 268 seconds]
Jetien has joined #nixos
hellrazor has quit [Quit: WeeChat 2.3]
goibhniu has joined #nixos
<srhb> colemickens: iirc that's an actual syntax change in Nix lang, you'll need to go stepwise to get a newer nix that is able to interpret the newer nixpkgs
ckauhaus has joined #nixos
<srhb> colemickens: (Try cutting the upgrade path in half)
ottidmes has joined #nixos
<colemickens> srhb: turns out it was easier to just be patient and build/upload a new image. I think you're right about the problem though.
<srhb> colemickens: Yeah, okay. :) Either way works.
reinhardt has joined #nixos
<clever> srhb: the modern nixos-rebuild will download a pre-built nix from the binary cache, to deal with that
<srhb> clever: Yep, but you need to get that first :P
<clever> in the past, i have manually done nix-store -r, and then jammed it into PATH and set a magic var
<srhb> Yeah, me too.
<colemickens> it'd be cool to have that documented, if it's not.
<srhb> colemickens: I prefer recommending the stepwise upgrade normally, since it uses mechanisms people are already mostly comfortable with.
<srhb> When you start documenting "you can hack this and that using Nix" you're in for a wild ride due to the hackability. :-P
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55318 → folly: 2018.10.29.00 -> 2019.01.28.00 → https://git.io/fh9gB
<srhb> Rescue sessions on NixOS are *fun* because of it, but...
* colemickens has opinions
<clever> srhb: i once had to do the nix-store -r hack from a gentoo machine that had no X
<srhb> colemickens: What!! :o
<clever> srhb: so i used lynx to open hydra, and accidentally wound up with a build of nix master
<srhb> clever: !fun!
<clever> srhb: the problems came up, when i was done, and returned back to nixStable from nixpkgs
<clever> and suddenly, my nix is too old to open db.sqlite
<srhb> Yeah, been there too.
<infinee> is there any easier n00b instructions for a fresh install of nixos with ZFS than this? https://nixos.wiki/wiki/NixOS_on_ZFS
<srhb> Re-reading the db dump with an older nix is fun too...
<clever> infinee: one sec
<clever> srhb: i read what the upgrade did, and then manually downgraded
<colemickens> srhb: oh nothing serious :) I think I understand what you're saying. I was more having a reaction to "hack"-iness and my feelings around the nix clis in general
<srhb> colemickens: Yeah, I got it. ;)
<infinee> clever, total n00b. Have used other linux dists but new to both nix and zfs. Need a doc that reallly holds my hand
* colemickens has been imagining a NIX_PATH-less nixos :)
<clever> infinee: that bash script will wipe the disk, and then setup a zfs pool, optionally inside luks
<srhb> colemickens: fwiw maye we should document nix-store -r better because of its immense utility.
<srhb> colemickens: It's extremely useful to get something that you know works somewhere else.
<clever> srhb: its also usefull for fetching whatever somebody is using when they have an error, and comparing their version against yours
<srhb> colemickens: I would like that too. Also ~/.config-less nix, etc.
<srhb> colemickens: It's doable, but.. Nasty in general
<srhb> clever: Yeah. Now if only we had a good model for realizing broken builds.
<srhb> clever: I've sometimes split up builds from tests in a commercial setting to support this.
<srhb> to better* support this. Sharing broken builds is useful too...
<clever> srhb: there is also the flag to make the build "pass" upon failure
<srhb> I think I only know about --keep-failed
<clever> succeedOnFailure = true;
<srhb> Oh, interesting.
<clever> this makes the nix-level build "succed" even on failure
<clever> it will write the real exit code to $out/nix-support/failed
<srhb> Cool.
<clever> hydra will then still treat it as a failure
<srhb> I can definitely use this.
<clever> but, its in the binary cache, hydra-build-products still work
<clever> so you can download logs from a failing test
<colemickens> I think I have something close. What I have now unsets NIX_PATH and can rebuild my system configuration closure exactly, whether with a local checkout, or a tarball url+shortGitHash. I should be able to use the `result/.../switch-to-configuration` to activate a new generation, and thus be able to upgrade my nixos install without having NIX_PATH set or relying on `nixos-*` tooling.
<clever> srhb: i had a derivation that would generate tcpdump captures of every node, along with log files, for the whole test run
<srhb> colemickens: Someone in this channel actually has something extremely environment-agnostic, but I forget their name...
<colemickens> I think it would go through a bloody code review by a nix expert, but it works, just need to document it and see what some other people think.
Glider_IRC_ has quit [Quit: Leaving]
Glider_IRC has joined #nixos
ninjin has joined #nixos
thc202 has joined #nixos
<clever> srhb: heh, i still had that tab open!
Makaveli7 has joined #nixos
<infinee> clever, I dont really understand that nix file you linked me. I'm sitting at prompt of live usb boot
<clever> infinee: to start with, do you want to boot with efi or legacy?
<infinee> EFI I guess
<clever> infinee: then you will need to create a GPT partition table, with an ESP partition formatted fat32, for /boot/
<clever> infinee: optionally add some swap (swap on zfs has performance/stability issues)
<clever> infinee: and then give the rest of the disk to the zfs partition
<clever> oh, do you want any luks?
<clever> (disk encryption)
<hyper_ch2> hi clever
<clever> hyper_ch2: hello
<infinee> just need to do a different formatting step I guess?
<clever> infinee: yep
lfish has quit [Ping timeout: 256 seconds]
<clever> infinee: line 92 will format /boot as either vfat or ext4, depending on cfg.uefi (you want vfat)
<clever> 93 will format the swap
<clever> 94 creates the zfs pool, and 95-97 setup what will be / /home and /nix
<clever> and then 99-104 mounts all of the things
<infinee> wow that's amazing. thanks clever
<clever> after that, its mostly a normal nixos instal
<clever> l
maximiliantagher has quit [Ping timeout: 250 seconds]
<hyper_ch2> clever: what's up?
<clever> hyper_ch2: not much
<hyper_ch2> still loving your kexec :)
<infinee> what should my $NIXOS_BOOT and $cfg.poolName be?
<clever> infinee: nixos_boot would be something like /dev/sda1, but it should be the ESP you created with parted
<clever> infinee: cfg.poolName is just the name for the pool, i try to keep it matching the hostname
<hyper_ch2> (I use "tank" + "Hostname" as poolname )
<infinee> I'm looking at fdisk and sda1: linux filesystem. sda2: swap. sda3: EFI. So nixos_boot is sda1?
wacke has joined #nixos
<wacke> hi all
<clever> infinee: nixos_boot would be sda3
<infinee> oh heh. thanks
<infinee> ahh right. sda1 is the root fs
<wacke> i have the same problem described here: https://github.com/NixOS/nixpkgs/issues/25418 (closed) issue, the problem is https://github.com/NixOS/nixpkgs/blob/19fb94947127513422af3fb02e2ca25dee7a7e2b/nixos/modules/services/databases/mysql.nix#L260, does someone knows why lines 269ff are after the if? if references pidDir, but it doesn't exist jet
<{^_^}> #25418 (by grahamc, 1 year ago, closed): MySQL Service breaks on 5.7 due to `unknown variable 'pid-file`
<wacke> s/jet/yet
<infinee> clever, $ROOT_DEVICE is /dev/sda1 for me?
<clever> infinee: yep
<infinee> tyty
<infinee> think I'll skip LUKS. don't really need it
<{^_^}> [nixpkgs] @dotlambda merged pull request #55294 → home-assistant: missing dependencies → https://git.io/fh9Rx
<{^_^}> [nixpkgs] @dotlambda pushed commit from @peterhoeg to master « home-assistant: missing dependencies (#55294) »: https://git.io/fh9g9
<srhb> wacke: Are you saying that mysql_install_db fails if the pidDir does not exist?
jD91mZM2 has quit [Quit: WeeChat 2.3]
<wacke> hmmm, not sure, just changed: services.mysql.pidDir to "/tmp", same problem, mysql seems not to know about "pid-file"
<wacke> i have following config:
<wacke> services.mysql.enable = true;
<wacke> services.mysql.pidDir = "/tmp";
<wacke> services.mysql.package = pkgs.mysql57;
<wacke> which errors in script-mysql-pre-start[2909]: mysql_install_db: [ERROR] unknown variable 'pid-file=/tmp/mysqld.pid'
jD91mZM2 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55319 → fasm-bin: 1.73.06 -> 1.73.08 → https://git.io/fh9g5
<wacke> as my script-mysql-pre-start looks like: ... /nix/store/1sw2a14xp6an3hd7358z23r04f2zlrl8-mysql-5.7.23/bin/mysql_install_db --user=mysql --datadir=/var/mysql --basedir=/nix/store/1sw2a14xp6an3hd7358z23r04f2zlrl8-mysql-5.7.23 --pid-file=/tmp/mysqld.pid ...
<teto> is there a page where one can see the last (known) commit a package built ? Or rather how to get haskell packages to build on nixos-unstable, should I just install packages from a stable release ? almost always they fail on unstable
dramforever has joined #nixos
<srhb> teto: Hydra is your best bet.
<srhb> teto: I have no problems using Haskell packages on unstable, really. Of course, there's a lot of breakage with every GHC bump.
<infinee> If I chose to use EFI on my system. I'm supposed to uncomment boot.loader.grub.device and change it to "nodev"?
<srhb> teto: If you have a specific package that's problematic, ask about that. :)
<srhb> infinee: Generally we use systemd-boot for efi, not grub.
<srhb> infinee: But yes, that's one of the necessary grub settings on efi.
<clever> i prefer grub, since it has far more options
<infinee> srhb, oh b/c boot.loader.grub.enable is true by default
<clever> systemd-boot basically has no config
<teto> srhb hydra deserves its name, does the striken one mean none is available ? https://hydra.nixos.org/search?query=mdcat
Czen has quit [Remote host closed the connection]
<ivegotasthma> I'm looking to deploy a project with nix. I want to use nix as a docker replacement. Is it possible to do service startup / shutdown with nix? I have a web server and I want a postgres db running alongside it.
<srhb> teto: The easiest way to go is through the nixpkgs project, trunk (master) jobset
<teto> I've removed every haskell package from my config since they were always preventing me from upgrading. Also they pull lots of stuff.
dermetfan has joined #nixos
Czen has joined #nixos
<srhb> teto: I'm not sure why mdcat doesn't show up in that set on Hydra, but yes, it's broken.
<Taneb> How do multiple output packages and hydra-build-products/hydra-metrics interact?
<clever> > haskellPackages.mdcat.meta.hydraPlatforms
<{^_^}> [ ]
<clever> srhb: its configured to never build on hydra
<srhb> Ah, there we go.
<srhb> Yeah, I missed that.
<srhb> teto: It hasn't been updated since 2015. It has disappeared from Github.
<teto> I see. Was going to ask how to find out via hydra
<teto> srhb: I see a commit 9 days ago but might be a fork https://github.com/lunaryorn/mdcat
<srhb> It is, yes.
<srhb> You can try building that instead..
<teto> shit it
<teto> 's a rust based project not a haskell one
<srhb> teto: Ah, indeed :P
<teto> not the same projects sorry :/
<{^_^}> [nixpkgs] @nyanloutre opened pull request #55320 → matrix-synapse: 0.34.1.1 -> 0.99.0 → https://git.io/fh92T
Tucky has quit [Ping timeout: 240 seconds]
Czen has quit [Remote host closed the connection]
nD5Xjz_ has quit [Ping timeout: 244 seconds]
Czen has joined #nixos
zupo has quit [Ping timeout: 245 seconds]
zupo has joined #nixos
<ivegotasthma> what should I use to deploy a python webserver with a postgresql instance? I'd like to replace docker with nix for deployment
<srhb> ivegotasthma: NixOS :)
<ivegotasthma> I have a debian vps
<srhb> ivegotasthma: That makes it a bit harder.
<ivegotasthma> would like to use nixos on it though :)
<srhb> ivegotasthma: We have a great infrastructure for creating systemd units for whatever arbitrary service you like in NixOS, but not so much Nix-on-other-OS
sigmundv_ has joined #nixos
civodul has joined #nixos
perohig has joined #nixos
<ivegotasthma> srhb: how would that work on nixos? perhaps I can port some of the things to nix-on-other-os-with-systemd
<{^_^}> [nixpkgs] @gilligan opened pull request #55321 → kind: 0.0.1 -> 0.1.0 → https://git.io/fh92O
<clever> srhb: one minnnn
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55322 → firejail: 0.9.56 -> 0.9.58 → https://git.io/fh92s
perohig has quit [Remote host closed the connection]
Tucky has joined #nixos
<clever> srhb: https://gist.github.com/cleverca22/2c187ff4f21c1f0313b1ea690c5e2717 this shows how to access the generated .service file, for any given nixos service
<ivegotasthma> srhb: I assume nixops would be used with nixos?
<clever> srhb: if you buildEnv several .service files together, you could then "install" them on any machine, and point systemd towards that dir
regulus- has quit [Ping timeout: 250 seconds]
<clever> and that will allow running nixos services no non-nixos
__Sander__ has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ivegotasthma> clever: cool stuff, thanks
<clever> ivegotasthma: some services may run into problems, such as hard-coded /run/current-system, or assuming users.users actually made a user, but youll just need to find such things and fix them as they occur
Avaq has joined #nixos
Avaq has quit [Client Quit]
nodyn has joined #nixos
Avaq has joined #nixos
Avaq is now known as Avaq
kvda has joined #nixos
kvda has quit [Client Quit]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/42bdc36a84c (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<nodyn> Hi everyone! I need to use `nix path-info` with the result of calling `srcOnly` on a package. What's the proper syntax for that? Do I need to define an overlay or something like that?
<dramforever> Does `nix path-info nixpkgs.yourPackage.srcOnly` do what you want?
<ottidmes> I am running into the following error when trying to build some static assets with nodejs as a fixed-output derivation: sh: /build/web/node_modules/.bin/opencollective: /usr/bin/env: bad interpreter: No such file or directory, I want to shadow/replace that opencollective bin by `return 0`, which worked in previous attempts with node2nix, not sure how to do it with a fixed-output derivation though. I doubt I
<ottidmes> can define the missing /usr/bin/env, because that assumes sandboxing, I am going to try and write it before it gets installed as readonly
Guest60340 has quit [Ping timeout: 250 seconds]
<clever> ottidmes: you have to run patchShebangs over the script (or the scripts dir)
<clever> ottidmes: that will replace every /usr/bin/env foo, with $(which foo)
<nodyn> dramforever: No, the attribute doesn't exist :\ (By the way, the package on which I'm trying to do that is kerberos)
<{^_^}> [nixpkgs] @Mic92 opened pull request #55323 → flameshot: fix executable path in dbus service → https://git.io/fh92z
<ottidmes> clever: I would, if I could, but its fetching and calling in the same npm command
<dramforever> nix path-info '(with import <nixpkgs> {}; srcOnly kerberos)'
<dramforever> nodyn ^
<clever> ottidmes: have you looked into yarn2nix?
<ottidmes> clever: yeah, all the tools I could find, none work for this use case
<nodyn> That works, thanks dramforever!
<dramforever> I think something says that 'nix' recognizes nix expressions when passed like '(this)', but I have absolutely no idea
<ottidmes> clever: and they are all more messy than I would like, in the sense that its non trivial to then put it into nixpkgs (the whole purpose of the packaging)
<clever> ottidmes: yarn2nix should be able to patch the things in node_modules before running the scripts
<clever> ottidmes: ah, yeah, yarn2nix involves IFD, but i have seen signs that it can work without IFD as well
<ottidmes> clever: yeah, but then I run into other stuff, I tried multiple times, I have given up on that approach
hyper_ch2_ has joined #nixos
<ottidmes> clever: IFD is probably if you do not supply yarn.nix explicity
ubert has joined #nixos
<clever> ottidmes: ive got a large example here, that i recently added win64 builds to
<ottidmes> clever: yeah, I believe we had this conversion before :P
<clever> ottidmes: on this branch, its able to do the entire windows frontend for electron
<clever> the only real addition it needed was wine
Judson has joined #nixos
Judson is now known as Guest58245
hyper_ch2 has quit [Ping timeout: 256 seconds]
<ottidmes> clever: https://logs.nix.samueldr.com/nixos/2018-11-03#1697477; yep, you tried to help me with this before, but unfortunately it did not pan out
<clever> dang!
Makaveli7 has quit [Ping timeout: 268 seconds]
dkibi has joined #nixos
sicklorkin has quit [Quit: leaving]
infinee_ has joined #nixos
<ottidmes> clever: but if I wanted to make sure a file would not be overwritten, how would I go about that, or is that not viable in the build sandbox?
<clever> extra-sandbox-paths = /run/binfmt /nix/store/7kvi4xfjp8i4ds611pknr9wdhqsmn20d-qemu-user-arm-2.11.1 /nix/store/y2vfnilcy8qxh6nfxcq44bym4m15arfc-qemu-user-aarch64-2.11.1 /etc/nsswitch.conf /etc/protocols
<clever> ottidmes: using this option in nix.conf, you can impurely add things into the sandbox
<{^_^}> [nixpkgs] @Mic92 merged pull request #55318 → folly: 2018.10.29.00 -> 2019.01.28.00 → https://git.io/fh9gB
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fh92M
<clever> in your case, you would want something like /usr/bin/env=${pkgs.coreutils}/bin/env
<{^_^}> [nixpkgs] @Moredread opened pull request #55324 → crawl: A few improvements → https://git.io/fh92y
<ottidmes> clever: would that work for packaging, I mean, the whole purpose is to contribute it to nixpkgs, I already have it build through other means myself
nodyn has quit [Ping timeout: 244 seconds]
<clever> ottidmes: oh, yeah, hydra, and all end-users, would fail to build it, without that change
<clever> and i think /usr/bin/ is read-only from within the sandbox
<clever> so your only choice is to patchshebangs, before the script gets ran
<ottidmes> clever: which is not possible, so its not an option I am afraid
infinee has quit [Ping timeout: 246 seconds]
<clever> why is it not possible?
<clever> patchPhase? postUnpack? replace the tar with a patched tar before nix gets it?
<ottidmes> clever: like I said, the one npm call does the downloading and calls that bin at the same time: npm install --cache ../npm-cache
nodyn has joined #nixos
<clever> its running the bash script inside the fixed-output derivation?
rprije has joined #nixos
<clever> s/bash//
<ottidmes> clever: its running npm install --cache ../npm-cache inside the fixed-output derivation, thats kinda the point
<clever> if its running scripts at that phase, then its both a security problem, and a purity problem that can break the hash at any time
nodyn has quit [Client Quit]
<dramforever> Hi everyone! I need some guidance on what to do with a PR: https://github.com/NixOS/nixpkgs/pull/54880
<{^_^}> #54880 (by dramforever, 1 week ago, open): pulseaudio-dlna: downgrade dep zeroconf to 0.19.1
<ottidmes> clever: hence me trying to ignore those scripts
<ottidmes> clever: its just the one
<clever> ottidmes: you might want to look at how yarn2nix is doing the download, i believe its entirely pkgs.fetchurl calls, so no scripts can run at that time
<dramforever> pulseaudio-dlna is a python 2 application that depends on pythonPackages.zeroconf, which dropped python2 support and got disabled. That means pulseaudio-dlna fails to evaluate.
<ottidmes> clever: already found an actual option "--ignore-scripts" so exactly what I was looking for
<clever> ottidmes: ah, that should do it
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55326 → flatpak: 1.1.3 -> 1.2.0 → https://git.io/fh92N
<dramforever> But I'm not quite sure how I'm supposed to put zeroconf-0.19.1 in Nixpkgs so that pulseaudio-dlna can use it
<goibhniu> hi dramforever, python2 support is coming to an end at the start of next year anyway. Is there a branch that supports python 3, or an alternative project?
<moredrea8> Spend days packaging crawl because I didn't find in nixpkgs. XD Atleast I learned a bit about packaging quirks...
<ottidmes> clever: BTW, node2nix, does run those scripts, so I am not sure if so safe either
<dramforever> goibhniu: I think there *is* a python 3 branch. I'll try to see if it works.
<dramforever> Oh, and it isn't an official release yet.
<dramforever> It's being actively worked on https://github.com/masmu/pulseaudio-dlna/tree/python3
Makaveli7 has joined #nixos
<dramforever> goibhniu: So you mean we should wait for upstream to migrate to py3 instead?
<infinee_> clever, small issue. my nixos-install was chugging away and then failed on grub install. error about failure to resolve canonical path to /boot/efi. I tried to look at /mnt/nixos/configuration.nix again but it's gone as the installation seems to have removed /mnt/etc/nixos directory
Avaq has quit [Quit: Lost terminal]
<clever> infinee_: the installation should never remove /mnt/etc/nixos/
<dramforever> Typo at /mnt/nixos/configuration.nix ?
<clever> infinee_: what does `mount` output?
Avaq1 has joined #nixos
<infinee_> no typo
<clever> infinee_: there is a /etc/ missing in that string
Jetien has quit [Ping timeout: 244 seconds]
<infinee_> mount shows all my zfs mount points
<dramforever> I mean, were you looking at /mnt/nixos when you meant to look at /mnt/etc/nixos?
<infinee_> oops ur right
<clever> infinee_: can you pastebin the whole mount output?
<{^_^}> [nixpkgs] @andir merged pull request #55174 → rhash: 1.3.6 -> 1.3.8 → https://git.io/fhSSV
<{^_^}> [nixpkgs] @andir pushed 3 commits to staging: https://git.io/fh9ak
maximiliantagher has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #55313 → guvcview: 2.0.5 -> 2.0.6 → https://git.io/fh9z3
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fh9aI
<infinee_> clever, mnt issue is my bad. any idea why my grub failed to install?
<ottidmes> clever: I ran `patchShebangs node_modules/.bin` and checked it indeed is `/build/web/node_modules/.bin` yet it patches nothing and I still get `sh: /build/web/node_modules/.bin/gulp: /usr/bin/env: bad interpreter: No such file or directory` (which seems to indicate a shebang, I am going to --keep-build and see what that file looks like)
das_j has quit [Quit: "Bye!";]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55327 → flow: 0.91.0 -> 0.92.0 → https://git.io/fh9aL
das_j has joined #nixos
<infinee_> boot.loader.grub.efiSysMountPoint = "/boot/efi";
<clever> ottidmes: is gulp itself in PATH, when you ran patchShebangs?
Soo_Slow has joined #nixos
<goibhniu> dramforever: hrm, I don't know what makes more sense. You could make a case for putting the python 3 branch in nixpkgs, if it mostly works.
<ottidmes> clever: ah, nope, thanks!
<infinee_> I can't pastepin. that machine is in middle of install and I'm just at CLI
<clever> infinee_: boot.loader.grub.efiSysMountPoint = "/boot/efi"; means that you mounted the ESP partition to /boot/efi/
<clever> infinee_: you should only set that if /boot/ itself is ext4, and /boot/efi is vfat
<clever> infinee_: `systemctl start sshd` and `passwd`, then you can ssh into it from another machine with a working GUI
<infinee_> ok one sec
regulus_ has joined #nixos
<clever> infinee_: efiSysMountPoint does not appear in either of those pages, and should not be used with /boot/ is the ESP partition
<infinee_> As I was customizing my configuration.nix. I figured that I was using EFI so I must've uncommented that
<dramforever> goibhniu: Then I guess I'll leave it as is for now. Thanks for the help!
<infinee_> ahh commenting that out fixed it. installation completed. let's reboot and see what we have. thanks clever !!
<clever> infinee_: boot.loader.grub.efiSupport is the main thing you want to set for efi
<ottidmes> clever: ah, its probably a combination of not having it in PATH and .bin being symlinks, so I should just patch node_modules instead
<clever> ottidmes: if you add the .bin to PATH, then it should patch correctly
<ottidmes> clever: I did, but it does not patch, but the files in .bin are all symlinks, so I guess that is why its not patching?
<ottidmes> testing it now
<clever> ottidmes: npm will manage a combined node_modules/.bin for you
dejanr has quit [Quit: WeeChat 2.2]
<ottidmes> clever: that is the .bin I am talking about
zupo_ has joined #nixos
regulus_ has quit [Ping timeout: 245 seconds]
Glider_IRC has quit [Quit: Leaving]
zupo has quit [Ping timeout: 250 seconds]
Avaq1 has quit [Ping timeout: 272 seconds]
<ottidmes> clever: it patches :) but I do get those "head: error writing 'standard output': Broken pipe" I have seen before with patchShebangs
<clever> not sure what could cause that, would need some strace or set -x
<ottidmes> clever: I have seen it a few times before, should be harmless, I might look into it when I actually get it to fully package
<ottidmes> clever: its some bug in patchShebangs at least, it spits out that error during that, and I have seen it before with patchShebangs
sigmundv_ has quit [Ping timeout: 250 seconds]
DrLambda has quit [Ping timeout: 245 seconds]
Glider_IRC has joined #nixos
<{^_^}> [nixpkgs] @Profpatsch merged pull request #55167 → rabbitmq-server: 3.7.10 -> 3.7.11 → https://git.io/fhSDD
<{^_^}> [nixpkgs] @Profpatsch pushed commit from @r-ryantm to master « rabbitmq-server: 3.7.10 -> 3.7.11 »: https://git.io/fh9aK
Glider_IRC has quit [Remote host closed the connection]
Glider_IRC has joined #nixos
Glider_IRC has quit [Remote host closed the connection]
<infinee_> ok, kind of worked. rebooting gave me invalid boot media error. I tried every device in boot options with no success. I stuck in live usb again, selected some refifind thing, it gave me an error and then somehow I was able to boot my hdd installation of nixos (via live usb). What do I need to fix?
<{^_^}> [nixpkgs] @zimbatm merged pull request #55312 → google-compute-engine: 20181206 -> 20190124 → https://git.io/fh9zm
<{^_^}> [nixpkgs] @zimbatm pushed commit from @r-ryantm to master « google-compute-engine: 20181206 -> 20190124 (#55312) »: https://git.io/fh9aM
Glider_IRC has joined #nixos
Glider_IRC has quit [Remote host closed the connection]
<clever> infinee_: try adding the grub removable flag, boot.loader.grub.efiInstallAsRemovable = true;
<clever> infinee_: you can just `zpool import tank` and then re-mount everything to the old spot, edit the config, and re-run nixos-install
<infinee_> I'm already in the booted system. I edited configuration.nix. what's the zpool import for? everything is mounted and working (all except the grub booting part)
Glider_IRC has joined #nixos
<clever> infinee_: oh, if its booted into the real install, then its already imported and mounted
Glider_IRC has quit [Remote host closed the connection]
<infinee_> yeah zfs is working fine
<infinee_> just grub failed when I boot
<infinee_> just change config and nixos-install again?
<infinee_> or do I use nixos-rebuild?
<srhb> nixos-rebuild boot --install-bootloader (depending on the failure mode, I guess)
Glider_IRC has joined #nixos
Glider_IRC has quit [Remote host closed the connection]
<clever> infinee_: if your booted into the final install, then its nixos-rebuild
<Taneb> I'm getting an error "_assignFirst found no valid variant!" when I try to build a derivation I'm working on and I don't know what it means
Glider_IRC has joined #nixos
<infinee_> oh yeah baby!! worked.
<infinee_> thanks clever srhb !!
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55328 → dune: 1.6.2 -> 1.6.3 → https://git.io/fh9aS
regulus_ has joined #nixos
<infinee_> I've only ever used full desktop dists like ubuntu, kde, gentoo, arch. went to macos for a few years and felt like getting back into this but with a more spartan environment. so I'm trying i3 with no desktopmanager :)
<srhb> infinee_: I'm on something similar.
<srhb> It's a bit more fiddly that going the full desktop environment route, but my workflow is so specialized these days I can hardly imagine going back..
<infinee_> srhb, this machine is for dev. was so sick of dealing with git-bash and cygwin on my gaming pc
<clever> infinee_: my primary desktop dual-boots nixos and win7
<clever> but i almost never boot into windows (maybe once a month or less)
maximiliantagher has quit [Ping timeout: 240 seconds]
<infinee_> win7 doesn't even get updates anymore does it?
<clever> i think it still does
<infinee_> my last company was forced to upgrade 3yrs ago because MSFT were saying w7 was end of life and would receive no more support
erictapen has joined #nixos
DrLambda has joined #nixos
<{^_^}> [nixpkgs] @ilikeavocadoes opened pull request #55329 → mdlt: init at 0.0.4 → https://git.io/fh9VI
joehh has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55330 → coturn: 4.5.0.8 -> 4.5.1.0 → https://git.io/fh9VL
Avaq has joined #nixos
<mpickering> If I want to move my nixos configuration to somewhere else, I should modify `nix.nixPath` to point to the new configuration
<mpickering> So do I modify it, rebuild switch, then move the config?
<mpickering> or do people just symlink the config to `/etc/nixos/configuration.nix`?
<etu> should work, I would probably copy it to have it in both places during the transition
<mpickering> Is there any disadvantage to having the config in $HOME rather than /etc?
<dramforever> mpickering: I just did what you were describing to my laptop
<dramforever> You can basically just do this: nixos-rebuild -I nixos-config=path/to/configuration.nix switch
<mpickering> ok perfect
rprije has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
dramforever has quit [Quit: Leaving]
<LnL> mpickering: you can move it and use nixos-rebuild switch -I nixos-config=/path/to/configuration.nix to bootstrap the new location
<{^_^}> [nixpkgs] @markuskowa merged pull request #55316 → flacon: 5.0.0 -> 5.1.0 → https://git.io/fh9zy
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fh9Vc
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55331 → cmus: 2.7.1 -> 2.8.0 → https://git.io/fh9VC
dramforever has joined #nixos
rauno has quit [Ping timeout: 268 seconds]
tzemanovic has quit [Read error: Connection reset by peer]
tzemanovic has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #55298 → igv: 2.4.16 -> 2.4.17 → https://git.io/fh9EU
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fh9Vl
<{^_^}> [nixpkgs] @vbgl closed pull request #55328 → dune: 1.6.2 -> 1.6.3 → https://git.io/fh9aS
knupfer has joined #nixos
<jluttine> how can i add cmake to buildinputs without doing cmake build but a regular one..
<clever> jluttine: one min...
<clever> if [ -z "$dontUseCmakeConfigure" -a -z "$configurePhase" ]; then
<clever> nixpkgs/pkgs/development/tools/build-managers/cmake/setup-hook.sh
<clever> jluttine: set dontUseCmakeConfigure = true;
sigmundv_ has joined #nixos
<jluttine> clever: thanks!
<srhb> mpickering: My /etc/nixos/configuration.nix is a symlink to a machine specific entrypoint in my homedir, usually.
rauno has joined #nixos
cswl has quit [Quit: Connection closed for inactivity]
brejoc has joined #nixos
silver has joined #nixos
seanparsons has quit [Remote host closed the connection]
<ottidmes> mdash: I managed to package the bitwarden vault, so I will be making a PR soon
<{^_^}> [nixpkgs] @grahamc merged pull request #55296 → efi-image_eltorito: make reproducible → https://git.io/fh90c
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/fh9VX
seanparsons has joined #nixos
<Synthetica> What's the recommended way to set an enviornment variable for a specific package from an override?
<wedens> Synthetica: wrapProgram
<dramforever> I think it was called makeWrapper
Glider_IRC has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @timokau pushed 3 commits to master: https://git.io/fh9Vd
<{^_^}> [nixpkgs] @timokau merged pull request #55299 → jmol: 14.29.29 -> 14.29.31 → https://git.io/fh9E4
Glider_IRC has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
<dramforever> To use it, add makeWrapper to your nativeBuildInputs
<Synthetica> dramforever, wedens: Thanks, think I got it
knupfer1 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55333 → copyq: 3.7.2 -> 3.7.3 → https://git.io/fh9Vb
Soo_Slow has quit [Remote host closed the connection]
knupfer has quit [Read error: Connection reset by peer]
joehh has quit [Ping timeout: 250 seconds]
knupfer1 is now known as knupfer
<wedens> dramforever: wrapProgram is the same as makeWrapper. it just doesn't need output path to be specified
joehh has joined #nixos
<mupf> Hey guys, I'm currently trying to adjust the default.nix for my SDL development projects. can anyone tell me how to adjust it to use OpenGL? I tried but all I'm getting is:
<mupf> fatal error: GL\GLU.h: No such file or directory
<dramforever> wedens: TIL that, thanks
Glider_IRC has quit [Quit: Leaving]
Glider_IRC has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #55334 → curl: 7.63.0 -> 7.64.0 → https://git.io/fh9wU
Glider_IRC has quit [Remote host closed the connection]
Glider_IRC has joined #nixos
Glider_IRC has quit [Client Quit]
Glider_IRC has joined #nixos
drakonis has joined #nixos
<wedens> mupf: you probably need to specify LIBGL_DRIVERS_PATH
<wedens> mupf: perhaps ` LIBGL_DRIVERS_PATH=${mesa_drivers}/lib/dri`
<mupf> wedens: can you give me any directions in how to do this? and/or some advice how to solve such problems by myself in the future?
<mupf> thanks, I'll try
<dramforever> Weird
wacke has quit [Ping timeout: 244 seconds]
<dramforever> It builds fine for me
<dramforever> And runs fine as well
joehh has quit [Ping timeout: 240 seconds]
<wedens> are you in sandbox?
<dramforever> sandboxed build? I think so
<dramforever> I'm on nixos-18.09
<mupf> wedens: guess I need to learn more basics after all.
<mupf> syntax error, unexpected DOLLAR_CURLY
init_6 has joined #nixos
<mupf> guess installing nixos and kicking eerything else out was a bit … premature
maximiliantagher has joined #nixos
<dramforever> mupf, can you try updating your nixos?
<mupf> to what version and why? I'm on NixOS 18.09?
<wedens> mupf: add `LIBGL_DRIVERS_PATH = "${mesa_drivers}/lib/dri";` somewhere inside mkDerivation
orivej has joined #nixos
<mupf> wedens: still doesn't work.
<wedens> same error?
<mupf> But at least the error is gone
<mupf> No. No error
superherointj has joined #nixos
reinhardt has quit [Ping timeout: 250 seconds]
<wedens> mupf: wait. you don't have libGL anywhere in you expression
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mupf> Yes, not on GitHub. Just locally like the others libxml2, etc
zupo has joined #nixos
<dramforever> mupf: They release bugfixes and security updates every now and the
<dramforever> *then
<dramforever> To get them: sudo nixos-rebuild switch --upgrade
<ottidmes> I am getting "tls-alpn-01 was not recognized" with the acme NixOS module, it used to work before without any problems, I checked, dont have any AAAA records for the domain either, not sure how to fix this, I guess I will try a different ACME client on NixOS
<mupf> wedens: "-I${getDev libGL}/include" etc
orivej has quit [Ping timeout: 252 seconds]
<mupf> dramforever: thanks
<gchristensen> sphalerite: hey how do you feel about meetings?
<wedens> mupf: you may want to look at how other packages that use sdl are defined. e.g. https://github.com/NixOS/nixpkgs/blob/92a047a6c4d46a222e9c323ea85882d0a7a13af8/pkgs/games/warsow/engine.nix
<wedens> mupf: you don't need this manual plumbing of libs/headers
dramforever has quit [Quit: Leaving]
winem_ has joined #nixos
<mupf> wedens: alright. someone from this channel helped me writing this file a few months back
<mupf> maybe it was different at the time
<srhb> mupf: Nothing big has changed, it's just an extremely manual approach.
yayforj has joined #nixos
<yayforj> when doing haskell, is there a way to make stack to pick up haskell dependencies from nix store?
<srhb> yayforj: Not really, no.
<yayforj> or should i just forget about it and use cabal?
<yayforj> srhb: oh
<srhb> yayforj: Some people like stack despite it not using the nix haskell libs, but only external nix deps and ghc.
<srhb> yayforj: I am not one of them. I'd say use cabal new-repl for development and the nix infrastructure for deps and builds.
<yayforj> srhb: i'm totally fine with ditching stack
<{^_^}> [nixpkgs] @Ma27 merged pull request #55282 → kitty: install completions → https://git.io/fh9lZ
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fh9wX
<yayforj> srhb: just needed to be shure
<srhb> yayforj: My very, uh, opinionated opinion is that that's the most powerful choice.
<srhb> There's also stackage2nix and stack2nix, which people tend to bring up at this point, but I can't do anything but mention their names and let you judge if they are useful to you.
<yayforj> srhb: i just have this very stack heavy project atm
<srhb> yayforj: If it has a abal file it's probably almost good to go with the nix infra already.
<srhb> cabal file*
reinhardt has joined #nixos
<yayforj> srhb: whit if you have a cabal file with bounds on practically everything that cant be jail braked btw
<yayforj> what*
<srhb> yayforj: That might be bothersome.
<srhb> yayforj: We generally only supply one version of each library, everything else is up to the user to fetch (using eg. callHackage "somepackage" "someversion" {} and friends)
<srhb> I'd say it's still worth it, but there's a learning curve.
<yayforj> srhb: it is. I tried stack2nix magic on it, but it generates the whole new `haskellPackages` set for you to build from scratch
<srhb> Indeed.
<srhb> One time cost though.
<srhb> Once everything's built once, it's built.
iqubic` has joined #nixos
<yayforj> It's fine when you have some kind of a build server, or at least a decent machine
<yayforj> mine nearly died there
iqubic has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55335 → conan: 1.11.2 -> 1.12.0 → https://git.io/fh9wH
<Taneb> Do you think a PR to add dontCheck to a whole load of GHCJS libraries would get accepted?
<srhb> yayforj: Yeah, haskell builds can be heavy. You might want to use fewer cores, fewer parallel builds, and go for the strategic overrides rather than a full blown new package set.
<yayforj> just curious, are there non haskell people here?
<srhb> Taneb: Yes.
<srhb> yayforj: Yes.
<srhb> yayforj: But fwiw there's a rather large overlap of Nix and Haskell users.
<gchristensen> whats haskell?
<srhb> gchristensen: :trollface:
<Taneb> srhb: OK, once I can get lens to build I'll make the PR
knupfer has quit [Ping timeout: 268 seconds]
<mpickering> Taneb: Do you know why there is still a `ghcjs` and `ghcjs-ng` compiler defined?
<gchristensen> less trolly, Nix was my first functional programming language, and is still the only one I actually use :P
<Taneb> mpickering: no idea, honestly
<srhb> gchristensen: We still love you though. One day we'll drag you screaming into the bright future. :-)
<Taneb> mpickering: I was just curious if lens builds on GHCJS and got the answer "no for a reason I might be able to fix"
<mpickering> I'm sure it does build on ghcjs as I'm sure reflex applications will use it
<gchristensen> srhb: ^_^ thanks, I love you all, too
agander has joined #nixos
<srhb> mpickering: Hmm, I'm not sure ghcjs-ng still exists, where is it?
<mpickering> In `compilers`
<srhb> I see
<srhb> Oh, it's the other way around then
simukis has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<srhb> I'm not sure ghcjs is used anymore. elvishjerricco?
<srhb> All the current attrs point to -ng
maximiliantagher has quit [Ping timeout: 245 seconds]
<Taneb> srhb: haskell.compiler.ghcjs ends up pointing to -ng
<srhb> Yeah, exactly.
<srhb> I think the ghcjs dir might be dead code entirely.
<{^_^}> [nixpkgs] @hedning merged pull request #55333 → copyq: 3.7.2 -> 3.7.3 → https://git.io/fh9Vb
<{^_^}> [nixpkgs] @hedning pushed commit from @r-ryantm to master « copyq: 3.7.2 -> 3.7.3 (#55333) »: https://git.io/fh9rv
<Taneb> OK, I can build lens, I'm going to push for reflex
<srhb> Taneb: reflex or reflex-dom? :P
<Taneb> Well, reflex for start
<Taneb> THEN reflex-dom
<srhb> reflex should be pretty simple.
<mpickering> are you going to build the very out of date hackage versions?
<Taneb> Well, I'll see how far I get before I get bored
<Taneb> Or my lunch break finishes
<srhb> mpickering: 0.5 is on Hackage now.
<mpickering> :o That is monumental
<srhb> Yes it is
<mpickering> can't wait two more years for the 0.6 release :P
<mpickering> Anyway that's good because I wanted to just use reflex and not reflex-dom recently
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55336 → cfr: 0.138 -> 0.139 → https://git.io/fh9rL
rauno has quit [Ping timeout: 272 seconds]
<sphalerite> gchristensen: aaaaaaaah I forgot about the planned shepherding stuff
<sphalerite> gchristensen: is that what the question was about or is there another thing?
<lassulus> /fset
<lassulus> ups
<gchristensen> sphalerite: it was a gentle prod, yes :)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb> gchristensen: "Socratic guilting"
<srhb> :-)
<gchristensen> LOL
<sphalerite> I have no negative feelings or traumatic experiences related to meetings.
* gchristensen started to make a freud joke, but there was no way for it to be appropritae
<{^_^}> [nixpkgs] @vcunat pushed 277 commits to staging-next: https://git.io/fh9r8
<gchristensen> https://lobste.rs/s/vj5iam/oil_success_with_interactive_shell#c_fzwy4o author of oil shell is "impressed" by our stdenv
<clever> gchristensen: i think i helped somebody package oil in here...
<clever> i remember them using substituteAll to patch some scripts
<{^_^}> [nixpkgs] @erictapen opened pull request #55337 → apvlv: fix build for poppler 0.73.0 → https://git.io/fh9r0
<clever> and they accidentally patched a .zip
<clever> and everything is length prefixed, so that made the zip invalid
<gchristensen> funny
<clever> but, it was concat'ing the zip onto the binary, and unpacking at runtime
<clever> so the error was defered, and not obvious
init_6 has quit []
reinhardt has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @erictapen opened pull request #55338 → nixopsUnstable: 1.6.1pre2706_d5ad09c -> 1.6.1pre2728_8ed39f9 → https://git.io/fh9rV
<{^_^}> [nixpkgs] @dotlambda pushed to master « home-assistant-cli: install shell completions »: https://git.io/fh9rw
agander has quit [Ping timeout: 244 seconds]
halfbit has joined #nixos
<ottidmes> gchristensen: saw that comment too, when it was just posted, do you know where this remark is coming from "IIRC Nix’s are significantly worse than Debian’s or Alpine’s.", does it have any merit, or is just a needless attack? I know that some important pieces are written as somewhat big scripts, but is that truly "significantly worse" than other distros?
<clever> gchristensen: oh, it was sphalerite i was helping with oil!
<clever> 2017-08-05 19:19:40< sphalerite> clever: http://ix.io/yUT is the expression, it contains the url for the source. It's also on github at https://github.com/oilshell/oil
Makaveli7 has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « sbt-extras: 2018-12-04 -> 2019-01-30 »: https://git.io/fh9r7
reinhardt has joined #nixos
<pbb> what is the cleanest way to build something that uses absolute paths in its Makefile?
<pbb> i.e. the Makefile contains instructions like /bin/echo ... or /bin/mv ...
acarrico has quit [Ping timeout: 268 seconds]
<pbb> I guess an FHSUserEnv would work but that's not very nice
<pbb> is there an equivalent for patchShebangs that is more adaptive and could be used to patch those paths?
<srhb> pbb: I think the most common way is manual patching.
superherointj has quit [Quit: Leaving]
<clever> pbb: sed or a .patch file
<pbb> okay, thanks
brejoc has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<pbb> a bit of find and sed seems to solve the problem
jmeredith has joined #nixos
cross has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55339 → brave: 0.58.21 -> 0.59.34 → https://git.io/fh9oU
<{^_^}> [nixpkgs] @Ma27 opened pull request #55340 → python3Packages.python-jenkins: 1.3.0 -> 1.4.0 → https://git.io/fh9ok
npmccallum has joined #nixos
Rusty1 has joined #nixos
drakonis has quit [Quit: WeeChat 2.3]
jabranham has joined #nixos
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/8008d0bbc69 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
alex`` has joined #nixos
maximiliantagher has joined #nixos
endformationage has joined #nixos
acarrico has joined #nixos
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #55341 → albert: 0.15.0 -> 0.16.1 → https://git.io/fh9o4
orivej has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #55233 → osrm-backend: 5.21.0 -> 5.22.0 → https://git.io/fh9eZ
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh9oR
simukis has quit [Quit: simukis]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55342 → python37Packages.beancount: 2.2.0 -> 2.2.1 → https://git.io/fh9o2
Tucky has quit [Ping timeout: 272 seconds]
<Taneb> We're hiring for a IT manager/sysadmin/devops-y role that'll involve a decent amount of Nix if anyone would be interested (Cambridge UK)
<betaboon> Taneb: remote or onsite ?
<gchristensen> Taneb: do you have a link to go with it?
<Taneb> betaboon: onsite, it involves maintaining physical servers
sicklorkin has joined #nixos
<Taneb> gchristensen: I'm afraid not, the company is myrtle.ai but our website is being redone, which apparently means we're not updating the "open positions" webpage
<Taneb> I'll ask if the full role description is posted anywhere public (it ought to be if it's not)
<sicklorkin> i've got a multi-user envrionemnet set up and someone is asking me to set up nix-serve. this presumably hosts whatever bincaches that are on disk. Is there a way to run this globally?
<gchristensen> Taneb: if you do, I'll share it around
<Taneb> gchristensen: thanks
lux1 has joined #nixos
<sicklorkin> gchristensen: not sure if u got the link i sent you yesterday.. here it is again. https://github.com/NixOS/nix/pull/2643
<{^_^}> nix#2643 (by buecking, 2 weeks ago, open): install: Check for a valid umask before running multi-user installer.
ikitat has joined #nixos
<gchristensen> sicklorkin: hey there, I did, but I haven't been able to look yet :( I'm sorry, I hope I can do it soon
<sicklorkin> gchristensen: no rush.. just didn't want to forget to leave my notes somewhere
drakonis has joined #nixos
<gchristensen> thank you for the work you have done :)
<sicklorkin> gchristensen: one question.. is it possible to bootstrap nix to pull packages during the test-setup phase?
maximiliantagher has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/874e0585e04 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
o1lo01ol1o has joined #nixos
notedge has joined #nixos
<{^_^}> [nixpkgs] @dotlambda opened pull request #55343 → dovecot: 2.3.4 -> 2.3.4.1 → https://git.io/fh9KJ
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55344 → appstream: 0.12.4 -> 0.12.5 → https://git.io/fh9KI
lux1 has quit [Quit: WeeChat 2.2]
<Ankhers> Is there a preferred way a foo2nix tool should work? For example, should it just everything to a default.nix file, or maybe keep deps separate in a deps.nix that the default.nix can pull in, or something else entirely?
Jetien has joined #nixos
<gchristensen> my only "requirement" is they print at the top of every generated file "Generated by foo2nix (https://github.com/foo/2nix) version x.x.x via: foo2nix --the --exact --arguments --they --called it with"
<Ankhers> Even if the generated file is not meant to go into the nixpkgs repo?
<gchristensen> yes
<Ankhers> I can deal with that. It makes a lot of sense.
thatuser has joined #nixos
<gchristensen> too many times I have seen "#generate by foo2nix" at the top (or not at all) and had to spelunk through history to figure out which foo2nix it was, then what version it was, and then how to use the thing
<infinee_> What's the difference between adding pkgs to configuration.nix and running nixos-rebuild vs using 'nix-env -i ...' ?
<Ankhers> You add the pkgs to configuration.nix then would need to run nixos-rebuild.
<Ankhers> That would make it available to everyone on the system.
<Ankhers> using nix-env -i ... makes it only available to you I believe.
<symphorien> infinee_: nix-env is usable by unprivileged users
<infinee_> so for system wide stuff (i.e. parted), I should use the nixos-rebuild?
<Ankhers> And if you are on nixos, I would suggest looking into home-manager (https://github.com/rycee/home-manager).
tdbgamer has joined #nixos
<infinee_> thanks
ThatDocsLady has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @jabranham closed pull request #54480 → redshift: Install systemd user unit files → https://git.io/fh2Sp
<thatuser> hey guys i'm trying to use flutter for app development, when building using nix-build i need to accept the SDK license by setting nixpkgs config option 'android_sdk.accept_license = true;'. However even after setting this in my /etc/nixos/configuration.nix it doesnt work. Is there something that I'm overlooking?
<symphorien> you must also set this config in ~/.config/nixpkgs/config.nix
<symphorien> see the same discussion for unfree:
<symphorien> ,unfre
<{^_^}> symphorien: Did you mean unfree?
<{^_^}> You cannot install your unfree software? See https://nixos.wiki/wiki/FAQ/unfree
orivej has quit [Ping timeout: 268 seconds]
<sicklorkin> are there any guides to can help me migrate from stack to cabal-v2 and nix? the version i have right now is using stack2nix and it appears to I cannot take advantage of any nix package cache, instead it's building everything from source which is suboptimal
nocent[m]1 has joined #nixos
<sicklorkin> s/to/that/
dbmikus has joined #nixos
<{^_^}> [nixpkgs] @vcunat opened pull request #55345 → luajit_*: avoid double callPackage → https://git.io/fh9KV
dbmikus_ has joined #nixos
hph^ has joined #nixos
thatuser has quit [Quit: Page closed]
dbmikus has quit [Ping timeout: 244 seconds]
periklis has joined #nixos
nocent[m]1 is now known as nocent
__monty__ has joined #nixos
<gchristensen> a coworker of mine just wrote / published https://www.tweag.io/posts/2019-02-06-mapping-open-source.html and it is a really cool showcase of Nix's DAG https://www.tweag.io/posts/2019-02-06-mapping-open-source.html
<aminechikhaoui> wow, scary :D
cswl has joined #nixos
<simpson> gchristensen: Super-cool! Very cool visualisations.
<simpson> I worry that those log-log graphs suffer from the truism that everything looks linear when plotted log-log with fuzzy data and a fat marker.
<gchristensen> :)
<gchristensen> it is on lobsters and hackernews if anyone here is inclined to apply internet points
<kgz> gchristensen: I love those pictures!
hph^ has quit [Ping timeout: 246 seconds]
digitalgrease has quit []
warbo has joined #nixos
digitalgrease has joined #nixos
* hodapp sees "tweag", clicks
<warbo> hello, are there any usable binary caches for 32bit x86 nixpkgs? (possibly on cachix?)
<warbo> I've mostly been sticking to 17.x versions to avoid building everything locally :(
<gchristensen> warbo: cache.nixos.org does provide some 32b binaries, but not everything, you're right
<warbo> yeah, I have a derivation which produces some nice graphs with gnuplot
<warbo> I wanted to do data processing with a package that's only in newer nixpkgs versions
<gchristensen> newer nixpkgs versions do get built on 32b, just not all of it
<warbo> so I bumped the pinned version, and now it's wanting to build Python, Bash, GCC, Grep, ....
<warbo> yes
<gchristensen> what revision did you bump it to? it should have at least those built
o1lo01ol1o has quit [Remote host closed the connection]
xkapastel has joined #nixos
<warbo> 6a3f5bc (which appears as 18.09 on https://github.com/NixOS/nixpkgs/releases )
jmchapman[m] has joined #nixos
maximiliantagher has joined #nixos
<gchristensen> try 2d6f84c1090ae39c58dcec8f35a3ca62a43ad38c ?
pmahoney has joined #nixos
<{^_^}> [nixpkgs] @dotlambda opened pull request #55346 → [18.09] dovecot: fix CVE-2019-3814 → https://git.io/fh96I
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
<dhess> gchristensen: wow, that is an amazing visualization
hph^ has joined #nixos
<srhb> Huh, thunderbird has rust components too nowadays?
<gchristensen> rust is marching ever forward whether you want it to or not, oxidizing your software
<gchristensen> except making it stronger instead of weaker ... hmm
<srhb> Well, the rustc update broke thunderbird, so I'm going with oxidation :-)
<gchristensen> that shouldn't happen
<srhb> *clearly* :P
<gchristensen> :P
<warbo> oooo
<warbo> copying paths
<warbo> oh. hang on, these might just be the source tarballs...
pie_ has joined #nixos
simukis has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed to master « python.pkgs.filetype: 1.0.2 -> 1.0.3 »: https://git.io/fh96G
maximiliantagher has quit [Ping timeout: 268 seconds]
<warbo> yeah, it still wants to build gcc-6.5.0, bash-4.4-p23, etc.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55347 → acme-sh: 2.7.9 -> 2.8.0 → https://git.io/fh96Z
<gchristensen> ok, what tools are you fetching?
<warbo> oops
<warbo> I'm wrong
<warbo> it does want tobuild a bunch of stuff, but it's also fetching a bunch from the cache :)
<gchristensen> nix-shell -p graphviz --option system i686-linux <- this worked fine, got me a 32 bit graphviz with no compilation on dbb9f8818af
<gchristensen> good :)
<pie_> jtojnar: I ran across https://github.com/NixOS/nixpkgs/issues/45830 because i want to set ion shell as my shell
<{^_^}> #45830 (by AmandaCameron, 22 weeks ago, open): powershell: Unable to use as a login shell
<pmahoney> i'm on macos with no `xz` in my $PATH. this command fails with 'tar: xz: Cannot exec: No such file or directory': nix-build -E 'fetchTarball https://releases.nixos.org/nixpkgs/nixpkgs-19.03pre167327.11cf7d6e1ff/nixexprs.tar.xz' is that expected? (works when `xz` is on $PATH)
<pie_> jtojnar: I havent been able to find anything on what the value of shellpath is supposed to be set to?
<{^_^}> [nixpkgs] @matthewbauer closed pull request #53327 → stdenv: assert whether `name` or (`pname` and `version`) are given → https://git.io/fhYqr
<jtojnar> pie_: it should be set to the shell executable location inside the package
<jtojnar> something like /bin/ion
zupo has joined #nixos
<pie_> jtojnar: oh!
<pie_> jtojnar: do you know if this is documented in a comment somewhere or something?
<jtojnar> I do not think so
hyper_ch2_ has quit [Quit: Page closed]
<pie_> :I
<pie_> ok thanks
<jtojnar> also can ion be used as a default shell? I thought they wanted to discard backwards compatibility
<pie_> jtojnar: kind of, isnt that fine though? shouldnt anythign that requres bash or whatever use a shebang?
warbo has quit [Read error: Connection reset by peer]
iqubic` has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<srhb> Oh, I see Mic92 already discovered this problem..
<jtojnar> pie_: I think /etc/profile is heavily used for desktop environments (GNOME) and it only supports bash, zsh & fish
<jtojnar> but feel free to try and report back
<pie_> jtojnar: huh. what does that do
<pie_> but yeahhhh it looks like it
<gchristensen> non-posix login shell is probably going to be a nightmare of bug reports (pretty sure the collective noun for "bug report" is "nightmare")
<pie_> gchristensen: heh :I
<{^_^}> [nixpkgs] @r-ryantm opened pull request #55348 → ccls: 0.20181225.7 -> 0.20181225.8 → https://git.io/fh96X
<pie_> I wonder if its possible to detect whether its being called with a posix script and fall back to system bash
<jtojnar> pie__: mostly setting environment variables we have not patched into expressions yet https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/desktop-managers/gnome3.nix#L174-L203
<ghostyy> i accidentally did nix-rebuild switch; nix-store --gc; reboot on a machine that had hardware.enableRedistributableFirmware set but then rebuilt into a configuration that didnt
hph^ has quit [Ping timeout: 268 seconds]
<ghostyy> how do i fix this? i cant access the internet on it...
<ghostyy> if i could somehow put the necessary parts of the store onto a usb or something
<infinisil> ghostyy: No other machine available?
<pie_> jtojnar: i just realized you said it supports fish ???
<ghostyy> infinisil, well obviously i have this one :P
<gchristensen> ghostyy: you should still have the previous generation
<ghostyy> hm
<jtojnar> pie_: yup, I use it
<ghostyy> so if i rebuild into a previous generation, the firmware should be there?
<gchristensen> should be!
<gchristensen> ghostyy: just reboot, and at the bootloader select the prior system version
<ghostyy> ah... ill try that
fusion809 has joined #nixos
<infinisil> Ah right, nix-store --gc doesn't do anything bad. I somehow thought that would remove prior generations
<jtojnar> pie_: we use fenv for running a bash script and extracting the set environment variables https://github.com/NixOS/nixpkgs/blob/52b4b07df9bfee7a7b5c23bc3eb88fec6134d389/nixos/modules/programs/fish.nix#L116
<ottidmes> is there some easy diff out there that is not line based (I am diffing compressed js files, making line based diffs pointless). I am trying to figure how I can make the compressed js files give me consistently the same output, but webpack seems to generate stuff that differs per build
<gchristensen> ottidmes: diffoscope is a nice tool
<gchristensen> another thing I've done with compressed / uglified JS is to run it through a JS formatter and then diff it
hedning has joined #nixos
o1lo01ol1o has joined #nixos
knupfer has joined #nixos
<ottidmes> gchristensen: thanks! I will look into diffoscope and pretty printing the JS is a good plan B indeed :)
hph^ has joined #nixos
maximiliantagher has joined #nixos
Avaq has quit [Ping timeout: 250 seconds]
dbmikus_ has quit [Read error: Connection reset by peer]
dbmikus_ has joined #nixos
<ottidmes> gchristensen: diffoscope works great, that is definitely a tool to keep :)
<gchristensen> for sure :)
<gchristensen> https://r13y.com/ see the diffoscope links
<ghostyy> bless you gchristensen that worked perfectly
<gchristensen> ghostyy: yay nixos :)
<ottidmes> managed to find the issue immediately, cache tag was different in both files, so I checked the webpack config and voila: 'CACHE_TAG': JSON.stringify(Math.random().toString(36).substring(7))
<ghostyy> i thought since i did a garbage collect then all the firmware would be gone and id have to dig out a sufficiently long cat5 cable
<gchristensen> nooo random please
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
<gchristensen> ghostyy: nixos won't let you (unless you go around its protections) garbage collect the nixos generation you booted from :)
<ghostyy> ahhhh thats very clever!
<{^_^}> [nixpkgs] @dotlambda opened pull request #55349 → dino: 2018-11-29 -> 2019-02-05 → https://git.io/fh96j
<ottidmes> gchristensen: my thought exactly, guess I will patch that randomness by basing it on the version or the sha
samrose has quit [Ping timeout: 250 seconds]
<gchristensen> ottidmes: always us ethe sha
<gchristensen> versions can be republished by mistake
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
rcshm has joined #nixos
gunix has joined #nixos
<ottidmes> gchristensen: hmm, good point, so `rev = "v${version}";` should really be the sha1 of the commit, right?
<gchristensen> oh, no
<gchristensen> I mean when generating cache tags
<gchristensen> cache tags are by / for computers, so putting a version number is not meaningful
<ottidmes> gchristensen: these cache tags are probably just needed for JS/CSS invalidation though
<gchristensen> exactli
<{^_^}> [nixpkgs] @homich1991 opened pull request #55350 → chromedriver: 2.43 -> 2.46 → https://git.io/fh9ik
<ottidmes> would it be safe to just take the first 7 chars of the sha256?
<gchristensen> do cache tags have to be short?
<ottidmes> gchristensen: no clue, guess I could just try the full sha256 and see :P
<gchristensen> doiiit
hph^ has quit [Ping timeout: 268 seconds]
Avaq has joined #nixos
<{^_^}> [nixpkgs] @dotlambda closed pull request #55349 → dino: 2018-11-29 -> 2019-02-05 → https://git.io/fh96j
rcshm_ has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
rcshm has quit [Ping timeout: 272 seconds]
dermetfan has quit [Ping timeout: 245 seconds]
erasmas has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #55291 → dino: 2018-11-29 -> 2019-02-06 → https://git.io/fh9R3
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to master: https://git.io/fh9iW
orivej has joined #nixos
maximiliantagher has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @timor opened pull request #55351 → kio-extras: enable man protocol → https://git.io/fh9iR
maximiliantagher has joined #nixos
<yayforj> nix-env -iA nixpkgs.haskellPackages.stackage2nix fails with
<yayforj> builder for '/nix/store/sz8zjfhnyb6dx2sm7h66zlls3vxa81vs-gitlib-test-3.1.1.drv' failed with exit code 1builder for '/nix/store/sz8zjfhnyb6dx2sm7h66zlls3vxa81vs-gitlib-test-3.1.1.drv' failed with exit code 1
<yayforj> how, why, por que?
drakonis has quit [Quit: Leaving]
<clever> yayforj: there should be an error above that line
<yayforj> ghc fails to deduce MonadFail somewhere in sourcess
Avaq has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @baracoder opened pull request #55352 → Update jetbrains editors → https://git.io/fh9io
<yayforj> clever: i'm just surprised that a package straight from nix-stable channel doesn't compile
<yayforj> clever: i would think that it's a more or less commonly used package
maximiliantagher has quit [Ping timeout: 244 seconds]
erictapen has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @veprbl merged pull request #55249 → fff: 2.0 -> 2.1 → https://git.io/fh9Ts
<{^_^}> [nixpkgs] @veprbl pushed commit from @tadeokondrak to master « fff: 2.0 -> 2.1 »: https://git.io/fh9iP
nD5Xjz has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
regulus_ has quit [Ping timeout: 272 seconds]
regulus_ has joined #nixos
maximiliantagher has joined #nixos
<dhess> Stupid question time: if my local Nix host's system type is "foo", and I have remote builders of type "foo" in /etc/nix/machines, but I want nix-build and friends to use my local Nix host as well as the remote builders, should I add a localhost line to my /etc/nix/machines, or is there an easier way?
<dckc> are there norms / conventions for managing database-backed services? where I want to be able to upgrade the config without wiping out the db
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maximiliantagher has quit [Ping timeout: 246 seconds]
winem_ has quit [Ping timeout: 240 seconds]
maximiliantagher has joined #nixos
* dckc reads up on nixos containers
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55338 → nixopsUnstable: 1.6.1pre2706_d5ad09c -> 1.6.1pre2728_8ed39f9 → https://git.io/fh9rV
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @erictapen to master « nixopsUnstable: 1.6.1pre2706_d5ad09c -> 1.6.1pre2728_8ed39f9 »: https://git.io/fh9ix
Ariakenom has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @dywedir merged pull request #55347 → acme-sh: 2.7.9 -> 2.8.0 → https://git.io/fh96Z
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fh9ip
<gchristensen> ,locate libsysfs.h
<{^_^}> Found in packages: systool
<Twey> Is there a command to just print out the value of some attribute?
<Twey> I thought nix-instantiate could do it somehow, but I forget how
<clever> $ nix eval nixpkgs.lib.version
<clever> "19.03pre166449.be445a9074f"
<Twey> Ah, thanks :) Is there a pre-2.0 (i.e. stable interface) way?
<clever> "19.03pre166449.be445a9074f"
<clever> ]$ nix-instantiate '<nixpkgs>' -A lib.version --eval
<clever> $ nix-instantiate --eval -E 'with import <nixpkgs> {}; lib.version'
<dckc> hmmm... `nixos-container create xxx` gives permission denied (mkdir /etc/containers) but adding sudo gives version `CURL_OPENSSL_3' not found (required by /usr/lib/libnixstore.so)
<Twey> clever: Neat, thanks!
<Taneb> On my "get haskell.packages.ghcjs.reflex" building sidequest, I've hit something I can't solve with dontCheck
<Taneb> "Encountered missing dependencies: ghcjs-base -any"
<Twey> ls
<Twey> >.> every time, sorry
<dckc> are there norms for using sudo with the nix-env of a non-root user?
<dckc> `sudo -E` doesn't seem to do what I want either
<Taneb> I have neovim installed with nix and normally do sudo $(which nvim) if I want to run it as root
<dckc> yeah, I used the full path... but like I say... I got version `CURL_OPENSSL_3' not found (required by /usr/lib/libnixstore.so)
<jabranham> dckc: Does nix-env --profile do what you want?
<dckc> it certainly doesn't create a container. What would I normally want it to do? (it says error: '--profile' requires an argument)
<jabranham> dckc: yeah, you'd need to point it to the profile you want. The man page should explain that.
<dckc> "Specifies the profile to be used by those operations that operate
<dckc> on a profile" <- I am not enlightened.
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « appstream: 0.12.4 -> 0.12.5 »: https://git.io/fh9Pg
notedge has quit [Ping timeout: 272 seconds]
maximiliantagher has quit [Remote host closed the connection]
periklis has quit [Ping timeout: 250 seconds]
periklis has joined #nixos
<dckc> jabranham, help me understand the relevance of `nix-env --profile`?
maximiliantagher has joined #nixos
<clever> dckc: normally, .bashrc for root will change $NIX_PROFILE to change things
<jabranham> dckc: I missed your first message; I don't think --profile will be helpful
reinhardt has quit [Ping timeout: 240 seconds]
hph^ has joined #nixos
maximiliantagher has quit [Ping timeout: 245 seconds]
<dckc> I can reproduce the "version `CURL_OPENSSL_3' not found" with `sudo -E $(which ldd) /usr/lib/libnixstore.so`
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55339 → brave: 0.58.21 -> 0.59.34 → https://git.io/fh9oU
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « brave: 0.58.21 -> 0.59.34 »: https://git.io/fh9Py
maximiliantagher has joined #nixos
<dckc> `sudo $(which lddtree) /usr/lib/libnixstore.so` gives "... lddtree: line 44: scanelf: command not found"
<dckc> sudo -E doesn't help.
sinner has joined #nixos
<dckc> is the https://xkcd.com/149/ pattern just not a thing with nix?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55341 → albert: 0.15.0 -> 0.16.1 → https://git.io/fh9o4
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @Synthetica9 to master « albert: 0.15.0 -> 0.16.1 »: https://git.io/fh9PS
periklis has quit [Ping timeout: 272 seconds]
sinner is now known as Guest34677
<gchristensen> lol
<gchristensen> yikes
o1lo01ol1o has quit [Remote host closed the connection]
<dckc> oh... right... "Setuid and setgid programs are not currently supported by Nix."
<ottidmes> how do I deal with a Rust package no longer building on Rust 1.31 (the rustc version on nixos-unstable at the moment), if I want to publish it to Nixpkgs?
maximiliantagher has quit [Ping timeout: 268 seconds]
<dckc> trying `nix-env -i sudo` ...
ikitat has quit [Ping timeout: 240 seconds]
<symphorien> ottidmes: 1.32 is in staging so wait a few days ?
<clever> dckc: the sudo made by nix-env cant be used, ever
zupo has joined #nixos
reinhardt has joined #nixos
<clever> it must be setuid root to function, and /nix/store/ doesnt support the setuid bit
<ottidmes> symphorien: this was the issue BTW, hopefully 1.32 works too, since they used 1.33 to build successfully: https://github.com/SergioBenitez/Rocket/issues/870
<{^_^}> SergioBenitez/Rocket#870 (by yoshuawuyts, 6 weeks ago, closed): No method named subspan for type proc_macro::Literal
<gchristensen> maybe we should rename it so `sudo` isn't a valid package name
<dckc> `nix-env -i sudo` didn't add a sudo command to my nix-profile. wild.
<ottidmes> symphorien: but thanks for the info! I will postpone the PR until then
<gchristensen> rename `sudo` to `sudo_which_is_not_useful`
<symphorien> ,-A dckc
<{^_^}> dckc: You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<symphorien> just so you know
<dckc> well, that presumes I know what to put after -A
<clever> nixpkgs.sudo
<dckc> and I know that how?
<gchristensen> guessing, or `nix search`
<gchristensen> or: $ hello
<gchristensen> The program ‘hello’ is currently not installed. It is provided by
<gchristensen> several packages. You can install it by typing one of the following:
<gchristensen> nix-env -iA nixos.hello
<dckc> so `nix search sudo` followed by `nix-env -iA nixpkgs.sudo` is faster than `nix-env -i sudo`?
<gchristensen> might be: `nix search` caches results
<clever> i think `nix search` also does parallel evaluation
<clever> though that might only be on a branch
<symphorien> dckc: it is the attribute name column of https://nixos.org/nixos/packages.html#
<dckc> ok... `nix search` seems new-ish. it's not what I get when I search for "apt nix cheat-sheet"
<symphorien> dckc: the most important thing is that nix-env -iA is unambiguous
* gchristensen copy-pastes that feedback to #nixos-wiki
Jetien has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @adisbladis pushed 3 commits to master: https://git.io/fh9Xk
reinhardt has quit [Ping timeout: 246 seconds]
<dckc> re "You can install it by typing one of the following" this is an Ubuntu box
<dckc> deployment is CentOS or SLES. (yes, shoot me now)
ikitat has joined #nixos
o1lo01ol1o has joined #nixos
simukis has quit [Quit: simukis]
maximiliantagher has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
simukis has joined #nixos
yayforj has quit [Ping timeout: 250 seconds]
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
sigmundv_ has quit [Ping timeout: 246 seconds]
xkapastel has joined #nixos
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
reinhardt has joined #nixos
Jetien has joined #nixos
doyougnu has joined #nixos
<infinee_> which nix pkg do I install for 'make'?
<hodapp> hmm, for what purpose do you need make? are you building something?
<clever> infinee_: `nix-shell -p`
<infinee_> hodapp, yeah I have a golang project I've been working on that uses a makefile
<hodapp> generally there you make an environment with the dependencies needed, nix-shell your way into it, and make will be present
ryantrinkle has joined #nixos
dermetfan has joined #nixos
<infinee_> clever, oh wow amazing
ubert has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @pSub pushed to update-dwm « dwm: 6.1 -> 6.2 »: https://git.io/fh9X2
maximiliantagher has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @NeQuissimus pushed 4 commits to master: https://git.io/fh9Xa
<infinee_> how did that work? without nix-shell 'make' didnt work.
stranger___ has joined #nixos
<clever> infinee_: nix-shell sets env vars to put make into PATH
<{^_^}> [nixpkgs] @pSub opened pull request #55354 → dwm: 6.1 -> 6.2 → https://git.io/fh9Xo
Ariakenom has joined #nixos
<stranger___> what do you think? https://github.com/NixOS/nixpkgs/pull/53659
<{^_^}> #53659 (by gnidorah, 4 weeks ago, open): adlplug, opnplug: init at 1.0.0-beta.5
<hodapp> doing your builds inside nix-shell, with dependencies declared there, is also good practice for if you eventually want the result of that build put into a derivation of its own
<infinee_> cuz when I did a `which make` it wasn't found, I assumed it wasn't installed anywhere
<clever> infinee_: nix allows things to be downloaded, but not "installed"
fusion809 has quit [Remote host closed the connection]
<infinee_> hodapp, yeah but golang has it's own way of downloading deps so I'm not sure if the nix way of doing things translates well to go projects. I'll see as I get more experience with this. brb switching to my nix machine :)
infinee_ has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to release-18.09: https://git.io/fh9X1
<{^_^}> [nixpkgs] @pSub pushed to update-dmenu « dmenu: 4.8 -> 4.9 »: https://git.io/fh9XM
samrose has joined #nixos
Czen has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @pSub opened pull request #55355 → dmenu: 4.8 -> 4.9 → https://git.io/fh9XH
Czen has joined #nixos
infinee has joined #nixos
knupfer has quit [Ping timeout: 264 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jwiegley merged pull request #55295 → ledger: 3.1.1 -> 3.1.2 → https://git.io/fh90f
<{^_^}> [nixpkgs] @jwiegley pushed 2 commits to master: https://git.io/fh9Xx
maximiliantagher has joined #nixos
freeman42x has joined #nixos
maximiliantagher has quit [Ping timeout: 272 seconds]
zupo_ has joined #nixos
o1lo01ol1o has joined #nixos
slyfox_ has joined #nixos
Czen has quit [Remote host closed the connection]
Jetien has quit [Ping timeout: 240 seconds]
erasmas has quit [Read error: Connection reset by peer]
fusion809 has joined #nixos
erasmas has joined #nixos
slyfox has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @atopuzov closed pull request #53117 → Bump teamviewer version to 14 → https://git.io/fhtv0
zupo has quit [Ping timeout: 250 seconds]
<{^_^}> antonym/netboot.xyz#304 (by Lassulus, 2 minutes ago, open): Adds NixOS
o1lo01ol1o has quit [Ping timeout: 272 seconds]
o1lo01ol1o has joined #nixos
<Twey> infinee: Lots of things have their own ways of downloading deps, but there's no stopping nixpkgs ;) You can auto-generate expressions for Go (dep) packages using https://github.com/nixcloud/dep2nix
Czen has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @lejonet opened pull request #55356 → Ceph libvirt qemu → https://git.io/fh912
slyfox has joined #nixos
slyfox_ has quit [Ping timeout: 246 seconds]
<infinee> but one advantage of Go is that it's cross platform so I can build it on another machine easily. If I relied on nixpkgs, that other system would need nix
<hodapp> you don't need to have it be the sole source of your build
<srhb> infinee: Conversely, with nix, you only need Nix, not even go!
<infinee> what's screenshot tool do you recommend that provides auto upload ? just tried flameshot but it's not working and there's an open issue on their github reporting same problems
Judson has joined #nixos
DrLambda has quit [Ping timeout: 250 seconds]
<gchristensen> srhb: not to mention the part where that remains true for *EVERY* project
Judson is now known as Guest54897
<srhb> infinee: And that argument scales to more than just go. :-)
<srhb> Dammit
<infinee> wait a minute. Nix is a pkg management tool right? how are we replacing a programming language such as Go with it?
<srhb> gchristensen: Stealing muh thunder
<gchristensen> srhb: I'm so sorryw!
<srhb> infinee: The recipient of yourpackage need not care about a go toolchain if it's nixified. Nix will take care of that.
<srhb> infinee: Likewise for a rust project, a haskell project, a ... project
<infinee> damn it. your nick is yellow on my default irssi+term and totally illegible. I don't even know who I'm chatting with :(
<srhb> You can pronounce it "shrub" :-P
<infinee> oh you're talking about the packaging aspect of Go. Ok, not the programming part. gotcha
<clever> infinee: first thing i always do is set the background color to black
<srhb> infinee: Indeed.
yayforj has joined #nixos
Mateon3 has joined #nixos
<srhb> infinee: It might seem a small argument, but keeping a toolchain version intact across various developers' machines is... In my experience really crucial, and something no people really do well outside of Nix land. :)
<srhb> Even Go runs into "works for me"
Mateon1 has quit [Ping timeout: 244 seconds]
Mateon3 is now known as Mateon1
jabranham has joined #nixos
<elvishjerricco> srhb: hear hear!
<gchristensen> nix: works for you
<gchristensen> (if we did ads, could be a cute ad here)
<srhb> gchristensen: Hey, are we actually using that? That's really good
<srhb> Pompous, but good.
<gchristensen> no, just came up with it :)
<infinee> No, I agree. That's why I'm here. one of my development teams use nix and when I was able to build on my local machine with ease I told myself I needed to give this a try
<infinee> ...build the project they'd been working on for months
mkoenig has quit [Ping timeout: 268 seconds]
<sicklorkin> I see two tools for converting a stack project to nix pkgs, 1) stackage2nix 2) stack2nix. My understanding is that I should run stackage2nix to create a nix w/those packages build w/the resolver and for all other dependencies I should use stack2nix.. or is there a canonical way of doing this?
<srhb> gchristensen++
<{^_^}> gchristensen's karma got increased to 71
<srhb> infinee: yay :)
<clever> sicklorkin: i think stackage2nix is just for converting an entire stackage snapshot, and has nothing to do with stack.yaml
PLPD-Bot has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @pSub pushed to update-rrdtool « rrdtool: 1.7.0 -> 1.7.1 »: https://git.io/fh91H
<pie_> I'm trying to build something that uses wxpython4 like this and im runing into some errors https://bpaste.net/show/9112d9454512
<sicklorkin> clever: humm. so i'm way off.. what's the correct way of configuring nix to fetch packages from the resolver otherwise build locally?
rfold has joined #nixos
<{^_^}> [nixpkgs] @pSub opened pull request #55357 → rrdtool: 1.7.0 -> 1.7.1 → https://git.io/fh915
<jabranham> on nixOS my screen turns off after some period of inactivity. Anyone know what option(s) control this?
mkoenig has joined #nixos
<pie_> https://bpaste.net/show/5eda063ec7b7 not really sure where to start
<clever> sicklorkin: stack2nix or nix-tools
PLPD-Bot has joined #nixos
<clever> sicklorkin: https://github.com/input-output-hk/nix-tools is the newer stuff
<sicklorkin> clever: so stack2nix worked but i was forced to build all the haskell sources and I'm not quite sure why.. i was under the impression that it would *just* ffetch from whatever blob was used in that paticular lts
<clever> sicklorkin: it needs versions built by nix, but stackage isnt building with nix
<infinee> srhb: lol it took me this long to figure out copy/paste just to copy your replies to me and figure out I was talking with you :)
maximiliantagher has joined #nixos
<infinee> now to change this damn bgcolor
<srhb> infinee: Sorry :-P
srl295 has joined #nixos
Jetien has joined #nixos
<sicklorkin> clever: is there a way to get versions built by nix? Or does everyone just built them locally?
<clever> sicklorkin: when using stack2nix or nix-tools, your overriding the version of every single package, so hydra.nixos.org wont have things covered anymore
<clever> sicklorkin: the only way to get coverage from the cache, is to change the minimal subset you need, and to stay as close to nixpkgs as you can
<sicklorkin> clever: right, so i don't want this then
<sicklorkin> i think i want to try to do the latter
<sicklorkin> in which case, how does this set-up ivolve? just a make-deps section?
<clever> sicklorkin: ivolve?
fusion809 has quit [Remote host closed the connection]
<sicklorkin> clever: not sure what ivolve is, no duckduckgo love there
<sicklorkin> clever: i just realized my typo above .. s/ivolve/involve/
<clever> oh, lol
<clever> sicklorkin: what are you trying to build?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55209 → jackett: 0.10.660 -> 0.10.707 → https://git.io/fhSbY
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @Vskilet to master « jackett: 0.10.660 -> 0.10.707 »: https://git.io/fh9MZ
sigmundv_ has joined #nixos
lfish has joined #nixos
<{^_^}> [nixpkgs] @jamtrott opened pull request #55358 → petsc: 3.8.4 -> 3.10.3 → https://git.io/fh9M4
<sicklorkin> haskell projects (using stack) i'm using lts 12.18 and (ghc 8.4.4) and have 3 packages which i've copied and modified to fix various things, and finally I have 20 or so packages that aren't in the resolver.. What i want to accomplish is. use nix to fetch lts binaries, and build the remaining packages (which I can then share w/bincache or something)
<{^_^}> [nixpkgs] @Infinisil merged pull request #52852 → syncthing: Fix systemd service → https://git.io/fhUhR
<{^_^}> [nixpkgs] @Infinisil pushed 4 commits to master: https://git.io/fh9M0
<clever> sicklorkin: youll want to make an overlay using something like callCabal2nix
<clever> sicklorkin: let me find an example...
<joko> infinisil: ty for the merge
<sicklorkin> clever: we tried something ealier using overlay bt failed w/some infinite recursion or I can't remember what the error was
<clever> sicklorkin: this defines an override, so haskell.packages.ghc861 is a modified set of packages
<joko> Could someone point to me the way Hydra uploads to S3 the whole binary cache?
<clever> sicklorkin: basement/memory have the versions changed, and then 3 packages are loaded from cabal files
<clever> joko: one sec
<clever> joko: https://github.com/input-output-hk/iohk-ops/pull/352 this PR has the required changes, and the PR description explains things
<{^_^}> input-output-hk/iohk-ops#352 (by cleverca22, 34 weeks ago, merged): [DEVOPS-836] configure hydra to upload everything to S3
<LnL> err, joko ^
<lfish> hello! I'm following a tutorial on rails and I'm trying to set up an expression for developing the pages. I'm having trouble to get a project that uses the gem fog working. It (fog) needs libxml2 and libcurl to be built, and bundler can't find it. I've used bundix -m where the Gemfile is and have this expression so far https://pastebin.com/sWcDKFDz . Help please
<joko> Cool!
fusion809 has joined #nixos
o1lo01ol1o has joined #nixos
<joko> And does anyone know if it is possible to periodically clean this cache? I was thinking of setting up something like minio for mine
<sicklorkin> clever: thanks, that'll keep us busy for a little while
<srhb> joko: Not out of the box.
<dckc> so... what's the norm for invoking root privilege if there's no sudo?
<clever> dckc: su, ssh root@localhost, installing sudo
<srhb> dckc: su? NixOS does have sudo by default though.
<LnL> joko: not in a nice way, and nix might freak out if nars disappear
<gchristensen> srhb: my coworker suggested “Wenn nichts mehr geht hilft *Nix*”
<srhb> gchristensen: I like that too :P
<dckc> it has sudo_which_does_not_work, right?
<srhb> dckc: What?
<gchristensen> dckc: nixos does have a working sudo, but it is not directly installed by nix
<dckc> su involves a root password, right? (it's been so long since I used it...)
<srhb> dckc: Yes, normally.
<dckc> not directly... how, then?
<gchristensen> dckc: what is your question actually about? (nixos creates a capability wrapper to setuid prior to executing sudo)
<dckc> my question is: how do I use nix-container on Ubuntu?
<gchristensen> oh dear
<srhb> nixos-container or nix-container literally?
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<dckc> `nixos-container create funfun` gives me Permission denied
maximiliantagher has quit [Ping timeout: 246 seconds]
<dckc> nix-container? I didn't realize there was such a thing. I wonder where I went wrong
<srhb> You.. Probably will need to pull a few weeks out of your schedule to get that working.
<gchristensen> yeah, I feel pretty confident using that on anything but nixos hasn't really been considered
<clever> dckc: nixos-container needs root, and assumes its being used on nixos
<dckc> `nix search nix-container` no results
<srhb> It's made for executing containers using existing NixOS infrastructure, not executing NixOS containers on (otherthing)
<dckc> clever: ok, that's clear: you don't.
<srhb> dckc: I don't know of it either, just wanted to check if you were talking about something I didn't know of
<srhb> (otoh this is close in concept: https://github.com/nlewo/nix-container-images )
<dckc> stepping back, my goal is more about running nix-ish services in non-nixos environments.
<dckc> today's example is trac
<dckc> but also rstudio-server
<srhb> No chance of just spinning up a NixOS VM on $otherthing? :-)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/851cfedb532 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 4.4.172 -> 4.4.173 »: https://git.io/fh9MD
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.4.172 -> 4.4.173 »: https://git.io/fh9My
<dckc> no, VMs are against $IT_DEPT policy. :-/. (well, there's a separate process for making VMs.)
<dckc> (and that policy has never heard of nix...)
<srhb> dckc: If not, I suggest writing derivations that generate "units" for your init system of choice that you can symlink in place
<clever> srhb: one sec
<clever> this will just spit out systemd .service files, for any nixos service
<srhb> Yes, essentially that :)
<dckc> that sounds pretty good.
<clever> then you just need to deal with getting the users and dirs to exist, since users.users wont do it
<dckc> yeah... but maybe only a short trip into chmod hell
doyougnu has quit [Quit: WeeChat 2.0]
<dckc> do the nixos folks and the cloudabi folks talk? (I wish for capability security uber alles)
<clever> dckc: i dont see any existing modules for trac or rstudio
<dckc> I got trac to build in ~20min
<dckc> (and that was mostly about missing semi-colons and whatnot as I learn the nix language)
<srhb> dckc: Pull request? :-P
<dckc> oh. um.
<srhb> No pressure. (ok a little pressure. But only a little)
fusion809 has quit [Remote host closed the connection]
<clever> dckc: if you are making a simple trac module (like the snmpd.nix in the above gist) then youll know what it relies on the host to provide (users, dirs, and such)
<dckc> well... there's this weird thing where the things that seem to be useful start with `with import <nixpkgs>` but that's not how the stuff in the tree starts
<clever> ,callPackage dckc
<{^_^}> dckc: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<srhb> dckc: Right, packages in-tree list their actual dependencies as argset arguments, and rely on callPackage to provide each of them
<clever> with import <nixpkgs> {}; is a way to cheat around having to load it with callPackage
fusion809 has joined #nixos
_fusion809 has joined #nixos
_fusion809 has quit [Remote host closed the connection]
<srhb> dckc: Usually, that part is trivial, and the actual build is where you poured brain power that we want to ste^H^Hhare in
<dckc> yeah... I sorta knew that... I'm just saying that's between me and a PR
<srhb> ok :)
<srhb> Again, it was just a tiny reminder that it's possible, sometimes people forget that their 20 minutes of work may be actually useful :-)
<srhb> (to others, I mean!)
<dckc> so... do folks put `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'` in shell.nix or something?
<srhb> dckc: I often do.
<srhb> dckc: default.nix like the in-tree defs, then devel.nix (or shell.nix) with: { pkgs ? import <nixpkgs> {} }: pkgs.callPackage ./default.nix {}
<dckc> a down-side of nix is that it's under-constrained. norms aren't very strongly established.
<clever> dckc: you can also make default.nix do foo = callPackage ./foo.nix {};, and then foo.nix is the real package
<srhb> dckc: That should make default.nix equivalent to the in-tree version.
<srhb> dckc: Yeah, with great power etc...
<srhb> This happens a lot when you have a programming language instead of say a yaml file with some necessary fields or whatever.
<dckc> another downside is that lots of data is trapped in a turing-complete format. I think I saw somebody talking about re-shuffling a bit in a conference talk.
<gchristensen> srhb: eh, yaml has the same problem
maximiliantagher has joined #nixos
<srhb> True.
<gchristensen> srhb: unless the yaml parser is carefully constructed, it'll oftfen just execute whatever shell program you give it
<srhb> dckc: You're probably referring to "flakes"
<srhb> (I do hope we don't go with that name)
<dckc> yaml has the opposite problem: what the heck is the semantics of this? how many different forms of scary action-at-a-distance are in play here?
<gchristensen> srhb: me too
<clever> dckc: :D
<clever> dckc: i recently corrupted a yaml file, by doing yaml2json | jq | json2yaml
<clever> one of the fields was 2^64, but jq stores everything as floats
<gchristensen> just *clap* use *clap* json
<joko> clever and LnL: so if I purge my S3 and re-evaluate the Hydra jobs, don't the necessary derivations get re-built and copied there?
<dckc> that's pretty orthogonal to toothpaste-back-in-the-tube issues of tables vs code
<dckc> (JSON float interop is pretty orthogonal...)
<clever> joko: i think hydra will get very upset, and not rebuild things it thinks are already built
<LnL> joko: yeah, but you also need to purge the narinfo cache of all the clients
<simpson> gchristensen: That's not the problem clever had. I have this problem too, with JSON files generated in Python. How horrible it is that they don't load correctly in JS~
<dckc> `nix search` probably addresses 80% of my "how to run the code backwards" issues.
<joko> Ah, because of the DB persistence, I guess
<gchristensen> aye
maximiliantagher has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
drakonis has quit [Client Quit]
<thoughtpolice> So I finally released my RISC-V emulator and if anyone wants to use Nix with GitHub Actions, I've got a decent amount of stuff to lift/start with: https://github.com/thoughtpolice/rv32-sail/blob/master/.github/main.workflow -- in particular, I got Cachix uploads working nicely :) (cc domenkozar)
napping has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
zupo_ has quit [Ping timeout: 272 seconds]
<dckc> at the risk of beating a dead horse... I ran vulnix on this trac package and it finds 2 CVEs on glibc (along with the dozen or so on binutils, etc. ...). Let's see where in the process these are...
<dckc> CVE-2018-11236
<dckc> CVE-2018-11237
<{^_^}> [nixpkgs] @primeos pushed to master « signal-desktop: 1.20.0 -> 1.21.0 »: https://git.io/fh9MA
<thoughtpolice> I don't really know what a generic action for nix-build might look like (hard to imagine since Nix is more expressive than most) but the Cachix stuff should at least be pretty reusable
<thoughtpolice> I think.
<simpson> dckc: Nobody chooses Trac because of their security record~
<simpson> thoughtpolice: Exciting!
<dckc> #47122 opened on Sep 21, 2018
<{^_^}> https://github.com/NixOS/nixpkgs/issues/47122 (by ckauhaus, 19 weeks ago, open): Vulnerability roundup 47 (release-18.09)
<ckauhaus> dckc: those have been reported in Vulnerability roundup 44
<ckauhaus> and probably 47 again
<dckc> roundup 44 was Jul 2, 2018. so... >6months.
Thra11 has joined #nixos
agander has joined #nixos
<dckc> redhat released a fix 2018-10-30
<dckc> so they took a few months; I wonder when it was disclosed
<dckc> "on 32-bit architectures". oh. I can see why people would be not-so-motivated about that
rcshm_ has quit []
<ckauhaus> heh
<dckc> looks like it's not fixed in Ubuntu 18.04
<ckauhaus> security patches are quite fiddly stuff, so many pkg maintainers are not overly eager to patch stuff
attente[m] has joined #nixos
<dckc> looks like debian fixed it 07 Jul 2018, right away
<ckauhaus> so just in case you have some spare time, pick your fav from https://github.com/nixos/nixpkgs/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+vulnerability+roundup and fix it
<napping> I'm confused by the nixpkgs packaging of coq - The coq repository on github includes a default.nix for 8.9.0 that takes a buildDoc option, while the nixpkgs d
zupo has joined #nixos
<dckc> the upstream patch is 9 May
<ckauhaus> help is really appreciated
infinee has quit [Quit: rebuild switch st]
<attente[m]> has anyone gotten this script https://github.com/torhve/weechat-matrix-protocol-script working with weechat under nixos?
<dckc> I have negative spare time. about the best I can do is tune in every few months to see if nix's security story has gotten to the point where I might be able to sell it to $IT_DEPT
<napping> the nixpkg description doesn't build the documentation or seem to provide a way to pass that flag. Both were last touched by the same account, vbgl
<attente[m]> i've tried running it in a `nix-shell -p lua53Packages.cjson lua` with `LD_LIBRARY_PATH` including the location of `liblua.so`, but lua-cjson still doesn't resolve those symbols
<srhb> napping: What's the confusion? The discrepancy?
<dckc> I don't need 32 bit support, though, so I could sell them on that one CVE...
<{^_^}> [nixpkgs] @pSub pushed to master « pdfpc: 4.3.1_0 -> 4.3.2 »: https://git.io/fh9Dk
<napping> srhb: the difference, and how to install the manuals
<gchristensen> dckc: I think you probably overestimate how many CVEs get patched
<srhb> napping: Ah. Well, in general we don't ever reuse nix expressions from out-of-tree. So that's the discrepancy at least.
<srhb> napping: I don't know about the manuals.
<dckc> well, when they don't get patched, some process that $IT_DEPT understands provides some reason why.
<dckc> even if that reason is: they use tool X and tool X doesn't flag it.
<napping> If it doesn't use the out-of-tree expression, then I guess the nixpkgs version doesn't have an option to build the documentation?
<gchristensen> I'd sure love to spend some time working with those people
<srhb> napping: Seems likely.
<dckc> at least they use open source tools... let's see... spacewalk and ... umm...
<dckc> nexpose (is nexpose open source?)
infinee has joined #nixos
Ridout has joined #nixos
<dckc> (doesn't look like it... "Free trial")
<gchristensen> nixos offers free trials too
<{^_^}> [nixpkgs] @pSub pushed to update-groovy « groovy: 2.5.5 -> 2.5.6 »: https://git.io/fh9Dn
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<{^_^}> [nixpkgs] @pSub opened pull request #55359 → groovy: 2.5.5 -> 2.5.6 → https://git.io/fh9Dc
<dckc> anyway... I don't think spacewalk supports nixos / nix / nixpkgs. And I don't think nexpose actually tests vulnerabilities; I think it just looks up package versions in a database and sends nastygrams.
<gchristensen> yeah
<gchristensen> a big problem with _most_ systems is just knowing what you even have
rcshm has joined #nixos
<dckc> meanwhile, we build apps on top of these packages, and the scanners are utterly unaware of that stuff.
<gchristensen> this is why security teams I've worked with like Nix so much, it is crystal clear what you have
<dckc> our apps often borrow code from hither and yon
o1lo01ol1o has joined #nixos
<dckc> our security team spends ~95% of its time answering "I forgot my voicemail password" issues for 7000 people on campus. My group (medical informatics) is about 3 standard deviations outside the norm. So I can't justify pushing them too far.
gagbo has quit [Quit: I'm out !]
<dckc> in the 7 years I've been here, we moved from SLES 10 to SLES 11 to CentOS 6 and just recently to CentOS 7 and some version of redhat.
<dckc> if there's anything you can tell me about the security teams you've worked with, I'm interested to know.
o1lo01ol1o has quit [Ping timeout: 244 seconds]
<gchristensen> the main thing they wanted to know is what we had, and the opportunity to vet package changes
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen> being able to say "we updated from nixpkgs A to B and this is a diff of everything that changed" was golden to them
<gchristensen> security team like controls (not to control, but to have process controls)
<{^_^}> [nixpkgs] @srhb merged pull request #55356 → Add optional ceph support for libvirt and qemu → https://git.io/fh912
xkapastel has quit [Quit: Connection closed for inactivity]
<gchristensen> having everything built reproducibly from a single file really thrilled them, and they were willing to collaborate on making it an acceptable tool in the company
<dckc> python 2.7 CVE-2018-14647 is quite new... a Jan 25 patch is still under review in bugs.python.org
fusion809 has quit [Remote host closed the connection]
<gchristensen> security teams like being able to patch stuff. patching stuff is scary because undoing patches is hard. nix makes this easy. security teams are happy.
infinee has quit [Quit: leaving]
fusion809 has joined #nixos
<dckc> I am yet to play with rollback in nix.
<gchristensen> sometimes, security teams like to apply custom patches themselves. this sucks, because nobody knows how to make an rpm (not literally) and the last person who did quit three months ago. nix makes this trivial
<dckc> by the way... are there norms for upgrading running services? let alone rollback?
alex`` has quit [Quit: WeeChat 2.3]
<srhb> dckc: Data is usually ignored completely.
<srhb> Well, aside from a few kill switches that prevent you from doing Known Bad Stuff (stateVersion)
zupo has joined #nixos
yayforj has quit [Ping timeout: 245 seconds]
<gchristensen> my experience has been: I've never met a security team who wasn't willing to collaborate with me, once they understood I was trying to work with them, not around them
<dckc> packaging packages with nix is "trivial" compared to making an rpm? surely that's a matter of familiarity and lots more people are familiar with building RPMs than nix exprs
<srhb> dckc: I would say no..
xkapastel has joined #nixos
<srhb> (I don't actually know rpm, but I know deb packaging quite well)
* dckc struggles to find the source for the glibc package
<srhb> Nix packages is usually just a "replay" of what you'd do if you built the thing by hand.
<dckc> I did rpm once or twice. ugly, but made of known parts: shell, sed, colon-delimited-files
<dhess> I also know deb pretty well. I prefer Nix packaging by a country mile.
<gchristensen> sure, but it is a lot harder to add a patch to an RPM than
teehemka_ has joined #nixos
<srhb> And changing a package is way, way more trivial.
knupfer has joined #nixos
<gchristensen> nix-build -E '(import <nixpkgs> {}).hello.overrideAttrs (_: { patches = [ ./my-patch.patch ]; })'
<srhb> gchristensen: You just nuked all the old patches :'(
<dckc> sure! everybody knows that! (not)
yayforj has joined #nixos
<gchristensen> once you know how to do it with an rpm, this is still far far far easier
<srhb> dckc: Actually overrideAttrs is something people get to know pretty early in their packaging experience :)
<dhess> In fact, I just turned off my last Debian system a few weeks ago. And I'd been running Debian since... about 1997
<srhb> dckc: It's really not that facetious.
<gchristensen> this patch is in-line to your Nix deployment, a patched RPM is not in-line with your Chef / Puppet deployment
<gchristensen> a patched RPM means setting up a custom RPM server
<gchristensen> and a jenkins job, and signing keys, and publish infra
<dckc> "in-line to your Nix deployment" <- _that_ is the killer feature. And the fact that nix subsumes all of rpm, pypi, etc. (sort of)
acarrico has quit [Ping timeout: 240 seconds]
<gchristensen> or it means building right on the server, and you describe the build process in your puppet / chef files, and now you're just in hell
<dhess> Does NixOS have anything like nix-darwin's <darwin-config> path component? i.e., a part of NIX_PATH that points to the system's configuration.nix file?
<gchristensen> security teams love this stuff
<srhb> dhess: nixos-config
<dhess> I've only ever used the one in /etc/nix/configuration
<dhess> srhb: oh ok interesting.
<{^_^}> [nixpkgs] @jbaum98 opened pull request #55361 → Mark merlin and flycheck-ocaml as not borken → https://git.io/fh9DV
<srhb> dhess: nix-instantiate --find-file nixos-config
<srhb> :)
<dhess> ok part 2 of my question: anyone have anything clever that copies the <nixos-config> closure to the store?
<dhess> not just the configuration.nix file, but everythig that it imports as well
<gchristensen> it is very hard
<dhess> gchristensen: :( I'm running into this with darwin-config, yes.
<dckc> where is glibc in the nixpkgs source tree? I can't find it with github search or anything. I'm blind somehow.
<srhb> dhess: You're better off with convention there.
<srhb> dhess: eg. include a derivation that grabs the entire directory and forbid going outside it by convention.
<dhess> I actually don't care about the nixos-config as I use nixops; but I do care on nix-darwin.
<Ralith> does the declarative nginx config support multiple servers on the same vhost with different ports?
napping has left #nixos [#nixos]
<srhb> dckc: Handy command (sometimes): nix edit nixpkgs.glibc
<dhess> srhb: I've got something like that already but as soon as I do "import ./foo.nix" it doesn't put foo.nix into the store either
<dhess> so it seems liek it just has to be all in one file?
<dckc> thanks.
<srhb> dhess: No? Maybe I explained myself poorly. Include myConfigSource derivation in your systemPackages, make it use src = /path/to/your/config/dir
<srhb> dhess: I know it's hacky, but it certainly grabs all the contents.
<dhess> srhb: oh I see
<dhess> srhb: sorry, I'm dense. So when myConfigSource gets put into the store, does it replace src = /path/to/your/config/dir with /nix/store/<hash>-path-to-your-config-dir?
<dhess> or does the derivation in the store still point to /path/to/your/config/dir
<yayforj> can i use `fetchGit` on monorepo?
<srhb> dhess: Well, however you want to define the derivation. The cheap version is to literally copy the source tree into a store path
<dhess> srhb: ahh so you're basically doing a mkDerivation for your config dir
<srhb> dhess: Yes.
<dhess> is that right
<dhess> ok thanks. I'll pursue that option.
<srhb> dhess: Like I said, hacky, but it works :)
<dhess> works for me
<dhess> thanks!
<yayforj> i want a specific version of gogol-core
<dhess> srhb: so if you point nixos-config to /path/to/your/config/dir and there's a /path/to/your/config/dir/default.nix, it will know what to do ?
<yayforj> which is a submodule on gogol.git
erictapen has joined #nixos
<srhb> dhess: No, you have to add an actual package for it (somehow, eg. via overlay)
<dhess> I guess what I'm asking is, what do you set nixos-config to in the NIX_PATH ?
<srhb> dhess: I never touch that frankly.
<srhb> dhess: The package will just be a snapshot of the config source as it were when that config generation got built.
<dhess> srhb: ok let me rephrase. When you do, `nixos-rebuild switch` how do you point it to your derivation?
<srhb> dhess: I don't. In my configuration I have environment.systemPackages which refers to itself. Consider eg: environment.systemPackages = [ (pkgs.mkDerivation { ... copy ./. to $out }) ... ];
<srhb> dhess: Operative component being ./.
rcshm has quit []
<srhb> dhess: Since this source file (my config) lives in the directory I care to snapshot, ./. contains it.
<dhess> so that's in /etc/nix/configuration.nix
<srhb> dhess: /etc/nixos/configuration.nix, yes, for instance.
<srhb> (In reality that file is a symlink to /home/sarah/conf/nixos/p51.nix on my system, but that means /home/sarah/conf/nixos is the containing directory that I snapshot)
rcshm has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dhess> OK I think you've given me enough to go on here. I'll try to figure this out.
<dhess> What I'm trying to accomplish is to remove all of my non-Nix-store paths from NIX_PATH. So for macOS, the <darwin-config> portion of the NIX_PATH should be something like darwin-config=/nix/store/...-config.nix
<gchristensen> hmm... why, though?
<srhb> dhess: Hmm, that won't help you here...
<dhess> I've got that working, but it's just pointing to a single .nix file, and so anything that it includes is missing
<dhess> gchristensen: I'm trying to eliminate any sources of impurities
<dhess> things pointing into my home dir, or /etc/nix/X, etc.
<gchristensen> oh!
rcshm_ has joined #nixos
<gchristensen> you want nix's --pure flag!
<dhess> oh what's that
<gchristensen> No Impurities Mode
<dhess> is that in nix stable?
<gchristensen> nix-build --pure-eval -E 'let r = (builtins.fetchGit { rev = "'$(git rev-parse HEAD)'"; url = ./.; }); in import "${r}/pure.nix"' -A system --show-trace
<dhess> I'd rather not have to rely on passing that flag around all the time though
<gchristensen> well you'll have to pass around a lot more than a flag
<gchristensen> because you can't even say nix-build --pure-eval ./default.nix, because that is impure.
rcshm_ has quit [Remote host closed the connection]
<dhess> I want the default to be no impurities. Seemed like the easiest way to do that was just to clean up my NIX_PATH
rcshm_ has joined #nixos
teehemka_ is now known as teehemkay[away]
<dhess> I of course point to impure stuff when I run "rebuild switch"
<gchristensen> you said no impurities! :)
fusion809 has quit [Remote host closed the connection]
<dhess> yeah that should be the default :)
<gchristensen> I did this with nixos for a bit
<dhess> you should have to work harder when you want impurities :)
<dhess> not the other way around
rcshm has quit [Ping timeout: 246 seconds]
<gchristensen> it'd be pretty annoying to have to have to specify all that for every nix-build you want to run
<dhess> yeah
<dhess> or nix-shell etc.
Glider_IRC_ has joined #nixos
<gchristensen> from --pure-eval, you cannot access anything without declaring how to fetch it
<dhess> Too hard to keep my ~/git/nixpkgs in sync all the time on all my boxes
fusion809 has joined #nixos
<gchristensen> the pure.nix referred to there is https://github.com/grahamc/nixos-config/blob/pure-eval/pure.nix
<dhess> so now I just make sure I have a fixed nixpkgs, fixed overlay set, etc. in my darwin-config
<dhess> just like I do with NixOps
<dhess> I suppose I'm kind of re-doing what channels are supposed to do.
<dhess> oh well
drakonis has joined #nixos
<gchristensen> it would be unusable if it was in --pure-eval mode by default, of course
<srhb> dhess: How about some shell.nix files with shellhooks?
Glider_IRC has quit [Ping timeout: 240 seconds]
<srhb> This is what I do for NixOps and I can see the appeal of doing it with NixOS as well.
<srhb> (Maybe it's easier to just manage your local install with NixOps as well though, if you've already solved that)
<dhess> srhb: I do that for NixOps, yeah
<dhess> srhb: this is only for macOS. The NixOS/NixOps thing is a solved problem :)
<srhb> Ah, right.
<srhb> Well, shells still work then :)
<dhess> I mean basically I'm trying to emulate what my shell.nix thing does with NixOps, which is to pass in the fixed nixpkgs as a -I
<dhess> so that it's always "pure"
<srhb> NIX_PATH=whatever nix expr you like in the shell drv
reinhardt has quit [Quit: Leaving]
<dhess> exactly
<dhess> *but*: I would also like the configuration.nix (or equivalent) to be put in the store, purely, as well
<srhb> Same method, no?
<dhess> and then set NIX_PATH=darwin-config=/nix/store/... so that I know what config is running
<dhess> everything is working except for that last bit
<dhess> srhb: yep that part works great
<srhb> Hmm. I think that's what I just described. Let me write it out so I can see if I got some obvious caveat wrong..
<dhess> it's just the "serialize my config to the nix store" bit that isn't quite. I can only get the top-level .nix config file to serialize
<dhess> srhb: you've already been a big help, don't worry about it
<dhess> I'll take your advice, play around, see if I can get it to work
_kwstas has joined #nixos
<dhess> I'll ping you again if I run into more problems :)
_kwstas has quit [Remote host closed the connection]
<dhess> thank you for your help
<{^_^}> [nixpkgs] @veprbl merged pull request #54592 → imagemagick: add djvu support → https://git.io/fhKOn
<{^_^}> [nixpkgs] @veprbl pushed commit from @pacien to master « imagemagick: add djvu support »: https://git.io/fh9y4
<dhess> gotta /afk for now, thanks again.
<srhb> mkDerivation { ... NIX_SHELL="nixos-config=${/home/sarah/conf/nixos}"; }
<srhb> dhess: seeya
teehemkay[away] has quit [Quit: ZZZzzz…]
<srhb> That should be NIX_PATH of course.. bleh
orivej has joined #nixos
rcshm_ has quit [Remote host closed the connection]
rcshm has joined #nixos
rcshm has quit [Remote host closed the connection]
rcshm_ has joined #nixos
stranger___ has quit [Quit: Connection closed for inactivity]
rcshm__ has joined #nixos
rcshm has joined #nixos
rcshm_ has quit [Ping timeout: 240 seconds]
<manveru> lfish: you figured it out?
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
cswl has quit [Quit: Connection closed for inactivity]
<lfish> manveru: not yet, had to move on with other things
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
<manveru> ok, ping me if you need some help :)
rcshm__ has quit [Ping timeout: 240 seconds]
maximiliantagher has joined #nixos
rcshm has quit [Ping timeout: 240 seconds]
o1lo01ol1o has joined #nixos
rcshm has joined #nixos
tzemanovic has joined #nixos
frem has joined #nixos
_kwstas has joined #nixos
rcshm_ has joined #nixos
ckauhaus has quit [Quit: WeeChat 2.2]
rcshm has quit [Ping timeout: 245 seconds]
eadwu has joined #nixos
agander has quit [Quit: Leaving]
rcshm has joined #nixos
nrdxp has joined #nixos
rcshm_ has quit [Ping timeout: 244 seconds]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
rcshm has quit [Read error: Connection reset by peer]
rcshm_ has joined #nixos
nrdxp has quit [Quit: leaving]
nrdxp has joined #nixos
redj_ has joined #nixos
redj has quit [Read error: Connection reset by peer]
tzemanovic has quit [Ping timeout: 250 seconds]
xwvvvvwx has joined #nixos
rcshm has joined #nixos
rcshm_ has quit [Read error: Connection reset by peer]
redj_ is now known as redj
redj has left #nixos ["http://quassel-irc.org - Chat comfortably. Anywhere."]
xwvvvvwx has quit [Quit: Lost terminal]
Ariakenom has quit [Quit: Leaving]
nrdxp has quit [Quit: leaving]
maximiliantagher has quit [Ping timeout: 250 seconds]
ddellacosta has joined #nixos
<lejonet> srhb: that went fast xD
rcshm has quit []
rcshm has joined #nixos
rcshm has quit [Remote host closed the connection]
rcshm has joined #nixos
<{^_^}> [nixpkgs] @veprbl merged pull request #53717 → nicotine-plus: init at 1.4.1 → https://git.io/fhZ06
<{^_^}> [nixpkgs] @veprbl pushed commit from @8084 to master « nicotine-plus: init at 1.4.1 (#53717) »: https://git.io/fh9SB
tzemanovic has joined #nixos
nrdxp has joined #nixos
nrdxp has quit [Client Quit]
kvda has joined #nixos
maximiliantagher has joined #nixos
nrdxp has joined #nixos
npmccallum has quit [Ping timeout: 272 seconds]
nrdxp has quit [Client Quit]
nrdxp has joined #nixos
<{^_^}> [nixpkgs] @veprbl merged pull request #52536 → buildbot: 1.4.0 -> 1.8.1 → https://git.io/fpjyP
<{^_^}> [nixpkgs] @veprbl pushed 3 commits to master: https://git.io/fh9SH
maximiliantagher has quit [Ping timeout: 246 seconds]
<Ankhers> Is there a way to deprecate a package within Nix?
ddellacosta has quit [Quit: WeeChat 2.2]
tzemanovic has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
tzemanovic has joined #nixos
kisik21 has joined #nixos
<simpson> There's no uniform clean way. Which package do you want to deprecate?
DeaDSouL has quit [Ping timeout: 240 seconds]
<kisik21> hey there? any reasons why the binary cache for i686 doesn't contain all packages? using nixos-18.09 channel rn
knupfer has quit [Ping timeout: 264 seconds]
<simpson> kisik21: Sure. It can't contain unfree packages, packages which fail to build, etc.
<Ankhers> rebar3-open. It is now useless.
DeaDSouL has joined #nixos
tzemanovic has quit [Ping timeout: 240 seconds]
<kisik21> can't believe so many packages fail to build on i686, including (weirdly) firefox
kisik21 has quit [Client Quit]
<simpson> > rebar3-open
<{^_^}> "<derivation /nix/store/z3lgdbwcfq5wbiyhm0kzqa0pcsccs72w-rebar3-3.6.1.drv>"
<simpson> > rebar3
<{^_^}> "<derivation /nix/store/hx5gpqdcvkz9dzymxnyi2h4xgbk74gpm-rebar3-3.6.1.drv>"
<simpson> Huh, guess it's not here yet. Could have sworn I saw a patch in nixpkgs addressing this.
kisik21 has joined #nixos
<Ankhers> 54115?
<Ankhers> I don't know the bot commands in here :(
<clever> kisik21: years ago, i found myself unable to build firefox on 32bit gentoo, because it needed >3gig of memory to link the main binary
<clever> kisik21: but its imposible to get >3gig of ram in a single process on 32bit
<kisik21> it's 4 gig, not 3
<symphorien> the kernel reserves a part of the adress space
<kisik21> oh ok
<clever> kisik21: 3/1 split, 3gig to userland, 1gig to kernel
<{^_^}> #54115 (by k32, 2 weeks ago, open): rebar3: 3.6.1 -> 3.9.0
maximiliantagher has quit [Ping timeout: 244 seconds]
bpa has quit [Remote host closed the connection]
<simpson> Ah, okay. Then no, I don't think that there's anything extra needed. Maybe some docs.
ryantrinkle has quit [Ping timeout: 250 seconds]
<kisik21> clever: any lightweight browsers that actually build on i686? I need one for my grandma real quick before she starts complaining that I'm doing maintenance on her computer too long (i broke her OS four times trying to connect her to WiFi)
<kisik21> the lighter on resources the better, her system is constantly overheating
<__monty__> kisik21: Midori?
<Ankhers> clever: Thanks.
<Ankhers> sorry. That was meant for simpson.
<__monty__> Don't know any user friendly lightweight browsers tbh.
Jetien has quit [Ping timeout: 272 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kisik21> __monty__: trying to build now
<kisik21> the --build-host option is very nice btw for an overheating 800MHz single core machine
<clever> kisik21: you can also use nix-copy-closure to just copy something you already have to another machine
<__monty__> I'd definitely set up remote builds and configure max-jobs to 0.
<__monty__> Nix is not fun with too few resources.
<clever> kisik21: or just go ham, and control the box with nixops
<symphorien> kisik21: you might be interested in https://nixos.wiki/wiki/Distributed_build
<kisik21> clever: nix-copy-closure is nice but the 3 times as powerful machine is used headlessly...
<clever> so you pre-build the entire thing, and deploy it to the box
jackdk has joined #nixos
<__monty__> kisik21: Why does headlessness matter? It doesn't affect copy-closure.
<kisik21> --build-host allows me to launch builds from local machine and building on remote... it handles copying dependencies and configuration seamlessly
<kisik21> and while copy-closure may be more efficient since it evaluates configuration.nix only one time, I'm ok with what I have now
<__monty__> Yeah but it downloads everything to the client, uploads it to the server, then downloads the products again.
<__monty__> If it works well enough for you though.
zupo has joined #nixos
<bbarker> I've got this call to patchelf: --set-interpreter "exec $(cat $NIX_CC/nix-support/dynamic-linker) $exfi $@"; when I run patchelf --print-interpreter $exfi I just get /lib64/ld-linux-x86-64.so.2. Is this expected? Cause it doesn't execute when I run it this way
tzemanovic has joined #nixos
halfbit has quit [Quit: WeeChat 2.3]
<clever> bbarker: the exec shouldnt be in there
<clever> bbarker: and the " is too far at the end
<clever> bbarker: you are telling it to set the interpreter to "exec $(cat $NIX_CC/nix-support/dynamic-linker) $exfi $@"
<clever> bbarker: and you are not telling it what file to edit
lassulus_ has joined #nixos
<{^_^}> [nixpkgs] @eadwu opened pull request #55362 → vscode: 1.30.2 -> 1.31.0 → https://git.io/fh99a
eadwu has quit [Quit: WeeChat 2.3]
lassulus has quit [Ping timeout: 246 seconds]
lassulus_ is now known as lassulus
<bbarker> clever, yeah, sorry, my full commands was a bit longer, like:
<bbarker> patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
<bbarker> --set-rpath "$libPath:$(patchelf --print-rpath $exfi)" \
<bbarker> --force-rpath $exfi
eadwu has joined #nixos
<clever> bbarker: and are you running that before or after the file gets copied to $out, and what is $exfi?
perique has joined #nixos
<bbarker> clever, this would be after it is copied to $out
<bbarker> but during installPhase
<bbarker> $exfi is just an executable in $out/bin
<clever> bbarker: what does it output if you just run `cat $NIX_CC/nix-support/dynamic-linker` in the installPhase?
simukis has quit [Quit: simukis]
kvda has joined #nixos
Sophos[m] has left #nixos ["User left"]
rfold has quit [Quit: leaving]
<attente[m]> how do i get the correct path of `/nix/store/*-gcc-*-lib/lib` for the `gcc` package? globbing isn't good enough since there are multiple matches
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bbarker> clever, /nix/store/7gx4kiv5m0i7d7qkixq2cwzbr10lvxwc-glibc-2.27/lib/ld-linux-x86-64.so.2
<clever> > "${gcc.cc.lib}/lib"
<{^_^}> "/nix/store/sf0wnp30savqz9ljn6fsrn8f63w5v0za-gcc-7.4.0-lib/lib"
<clever> attente[m]: ^^^
_kwstas has quit [Quit: _kwstas]
<clever> bbarker: can you pastebin the entire nix file?
<attente[m]> is there a way to do it in `sh` outside of a `nix repl`?
<attente[m]> like with a `nix-env` query or something?
<clever> ,libraries attente[m]
<{^_^}> attente[m]: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<clever> [root@amd-nixos:~]$ nix-instantiate --eval -E 'with import <nixpkgs> {}; "${gcc.cc.lib}/lib"'
<clever> "/nix/store/sf0wnp30savqz9ljn6fsrn8f63w5v0za-gcc-7.4.0-lib/lib"
rprije has joined #nixos
<attente[m]> clever: but `nix-shell -p gcc` doesn't fix `LD_LIBRARY_PATH` correctly
<simpson> attente[m]: What are you building? You might get to write some Nix today.
<bbarker> clever, i'll note that if I do `exec $(cat $NIX_CC/nix-support/dynamic-linker) $file args` on the command line it works, where $file is one of the binaries
<clever> attente[m]: gcc is in the env by default, so just `nix-shell -p` will give it to you
o1lo01ol1o has quit [Remote host closed the connection]
<clever> bbarker: line 23, your for loop isnt looping over files
<clever> bbarker: add an `echo $exfi` and youll see the problem
<dhess> srhb: hmm interesting idea
rcshm has quit [Remote host closed the connection]
rcshm has joined #nixos
vk3wtf has joined #nixos
<attente[m]> for some reason i recall having to explicitly adding it to `LD_LIBRARY_PATH` in order for something i was building to find `libstdc++.so`, but tbh i really don't remember what it was any more...
o1lo01ol1o has joined #nixos
hexo_ is now known as plytkejsie
rcshm has quit [Remote host closed the connection]
<attente[m]> it was just something i hard-coded into my `.zshrc` but now i don't even remember why...
<plytkejsie> hi, please can you help with? gument 'wxPython', at /nix/store/7vzvgmg9h9bqqp7sc7ili7kw62sfnimn-nixos-18.09.1898.001b34abcb4/nixos/lib/customisation.nix:69:12
<attente[m]> oh! it was for `rustup`!
<plytkejsie> i'm trying to build my own kicad from git sources
rcshm has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #53874 → Grafana configuration → https://git.io/fhnK3
<{^_^}> [nixpkgs] @Ma27 pushed 3 commits to master: https://git.io/fh99b
<attente[m]> i was trying to install the nightly toolchain and that couldn't find `libstdc++.so` which was why i needed to add it to my `LD_LIBRARY_PATH`
<plytkejsie> is my package.nix
<plytkejsie> i got the error after calling nix build -f .
<plytkejsie> in directory with nix file
<clever> attente[m]: you need to patchelf the file, so you want to write a nix expression for that, which has "${gcc.cc.lib}/lib" in it somewhere
maximiliantagher has joined #nixos
<bbarker> clever, thanks, i'll see if i can fix it - one of these days, i should properly learn bash. Doing `for exfi in $out/bin/*` is closer but seem to get errors despite the conditional check: https://pastebin.com/sPTtyhrg
<bbarker> hmm, i guess -x doesn't check that it is an *ELF* executable though
<clever> bbarker: throw in an `set -x` and it will show every cmd as it runs it
<attente[m]> clever: is that necessary for the rust toolchain though? it installs in the user's home directory outside of the nix store
<clever> bbarker: there is a function called isELF in the stdenv
<attente[m]> feels out of the scope of nix
<clever> attente[m]: anything that downloads pre-built ELF files will fail hard on nixos, because /lib doesnt exist
<clever> attente[m]: all binaries must be installed using nix
<clever> attente[m]: rust is also already in nixpkgs
<attente[m]> does `nixpkgs` have the nightly rust toolchain though?
<clever> the mozilla overlay has it
<attente[m]> i thought rustup was building the toolchain locally but i might be mistaken
Synthetica has quit [Quit: Connection closed for inactivity]
<bbarker> clever, sweet, isElf did the trick! working now
<bbarker> *isELF
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
endformationage has quit [Ping timeout: 250 seconds]
slack1256 has joined #nixos
<pie__> trying to build wxpython 4: https://bpaste.net/show/b417f9215465
<pie__> any ideas? :/
<jackdk> that tail is probably not long enough
<{^_^}> [nixpkgs] @manveru opened pull request #55363 → defaultGemConfig.ovirt-engine-sdk: init → https://git.io/fh9Ht
<attente[m]> clever: you're right, thanks for your help. i'm going to try the mozilla overlay instead :)
ryantrinkle has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
__monty__ has quit [Quit: leaving]
npmccallum_ has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
Jetien has joined #nixos
work_ has joined #nixos
o1lo01ol1o has joined #nixos
perique has quit [Quit: PHX->SJC]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh9Hc
pmahoney has quit [Ping timeout: 250 seconds]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/919c37786ca (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
iqubic has joined #nixos
maximiliantagher has quit [Ping timeout: 245 seconds]
erasmas has quit [Quit: leaving]
<attente[m]> ^ this was from doing a `home-manager switch --upgrade`, not sure how to resolve it since both `gcc-wrapper` and `bin-utils` seem to provide `ld`
<simpson> Why are you installing gcc-wrapper and binutils at all?
Jetien has quit [Ping timeout: 240 seconds]
<attente[m]> simpson: i thought i needed them to build things from source, are they unnecessary?
<simpson> attente[m]: You probably don't need them in your user environment. Also, get used to writing Nix instead.
hedning has quit [Quit: hedning]
slack1256 has quit [Remote host closed the connection]
Widdershin has joined #nixos
<symphorien> attente[m]: with nix, if what you want to do involves a compiler it must be done inside nix-shell
slack1256 has joined #nixos
<Widdershin> Hi everyone! I'm trying to install Anki on MacOS with Nix, but the tests are failing (too many files open apparently). I'm trying to figure out how I can disable the check phase.
<symphorien> installing compilation tools in with nix-env or configuration.nix will rarely work
<Widdershin> I'm using LnL's overlay approach, and currently have something like this: https://gist.github.com/Widdershin/0faccc0b2a6a720802a0d900dea4a463
npmccallum_ has quit [Quit: npmccallum_]
<Widdershin> I've also tried setting `doCheck = false` but that doesn't work either
<Widdershin> What am I missing? Would really appreciate some help :)
silver_ has joined #nixos
<attente[m]> simpson, symphorien, thanks i'll try those things
maximiliantagher has joined #nixos
freeman42x has quit [Ping timeout: 252 seconds]
rcshm has quit [Remote host closed the connection]
rcshm has joined #nixos
silver has quit [Ping timeout: 246 seconds]
<Widdershin> Aha, I solved my own problem. Needed `overridePythonAttrs` instead of `overrideAttrs`.
frem has quit [Quit: Connection closed for inactivity]
maximiliantagher has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @romildo opened pull request #55365 → lxqt: 0.13.0 -> 0.14.0 → https://git.io/fh9HK
<attente[m]> is there a way to install the rust nightly with the wasm target from the mozilla nixpkgs overlay?
dbmikus_ has quit [Quit: WeeChat 2.3]
eadwu has quit [Quit: WeeChat 2.3]
<{^_^}> mozilla/nixpkgs-mozilla#91 (by flosse, 37 weeks ago, open): How to use rust overlay with additional targets?
suzu has joined #nixos
<suzu> is this the right place to ask questions about nix itself?
<suzu> i'm trying to install it on arch and it's shitting everywhere
<{^_^}> [nixpkgs] @ryantm merged pull request #55330 → coturn: 4.5.0.8 -> 4.5.1.0 → https://git.io/fh9VL
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh9HX
<suzu> nix-channel --update gives me:
<suzu> error: while setting up the build environment: getting attributes of path '': No such file or directory
<suzu> i'm installing it from this: https://aur.archlinux.org/packages/nix/
<suzu> allegedly this should work around it, but it does not:
<clever> suzu: what does `nix-channel --list` say?
<suzu> A workaround is to install busybox (it’s important to have a statically linked version of sh) and add: sandbox-paths = /bin/sh=/usr/bin/busybox to /etc/nix/nix.conf
<suzu> > nix-channel --list
<{^_^}> undefined variable 'nix-channel' at (string):218:1
tzemanovic has quit [Remote host closed the connection]
<clever> suzu: you must set /bin/sh to the nix version of sh, not the arch sh
<suzu> how do i do such a thing if i can't use any nix commands?
<clever> nix-build '<nixpkgs>' -A bash
<clever> it only fails when building things, but bash is in the binary cache
<ottidmes> suzu: others with your error message solved it by doing this: https://github.com/shazow/nixfiles/issues/3#issuecomment-450592191
<symphorien> suzu: have you applied the workaround you mentioned ?
<suzu> i've tried both workarounds with no success
<symphorien> does it appear in nix show-config ?
Widdershin has quit [Quit: Page closed]
<suzu> it does
<suzu> sandbox-paths = /bin/sh=/usr/bin/busybox
<symphorien> have you restarted the daemon ?
<suzu> shows up in that
<suzu> n..o
selfsymmetric-mu has joined #nixos
<suzu> one moment
<selfsymmetric-mu> I'm having trouble getting a nixpkgs PR moving. Can someone give me some beginner advice? https://github.com/NixOS/nixpkgs/pull/54443
<{^_^}> #54443 (by matthew-piziak, 2 weeks ago, open): add textlint rules and plugins
tzemanovic has joined #nixos
<suzu> restarting it caused it to get further this time
<suzu> while setting up the build environment: executing '/usr/bin/bash': No such file or directory
<clever> suzu: does `nix-build '<nixpkgs>' -A bash` work?
freeman42x has joined #nixos
<suzu> no
<suzu> warning: Nix search path entry '/home/user/.nix-defexpr/channels/nixpkgs' does not exist, ignoring
<suzu> error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
<clever> ah
<clever> > "${bash}"
<{^_^}> "/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23"
<clever> suzu: try `nix-store -r /nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23`
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55342 → python37Packages.beancount: 2.2.0 -> 2.2.1 → https://git.io/fh9o2
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « python37Packages.beancount: 2.2.0 -> 2.2.1 »: https://git.io/fh9HS
<suzu> lol alright
<suzu> that seems to be chugging along
<suzu> worked
<suzu> that installed but the issue is still the same
<clever> suzu: and then /bin/sh=/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23/bin/sh in the config file
<suzu> that seems dangerous
<suzu> but ok
<clever> that is how it normally works on nixos
xkapastel has quit [Quit: Connection closed for inactivity]
tzemanov_ has joined #nixos
tzemanovic has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55246 → mopidy-iris: 3.31.8 -> 3.32.1 → https://git.io/fh9Uy
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « mopidy-iris: 3.31.8 -> 3.32.1 »: https://git.io/fh9HF
<suzu> hmm, didn't work
<suzu> i've got this
<suzu> sandbox-paths = /bin/sh=/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23/bin/sh
<suzu> but still getting this
<suzu> while setting up the build environment: executing '/usr/bin/bash': No such file or directory
<suzu> i killed the daemon, restarted it, and also opened a new shell
dermetfan has quit [Ping timeout: 250 seconds]
<clever> suzu: try adding /usr/bin/bash=/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23/bin/bash
<suzu> sandbox-paths is showing properly in `nix show-config`
<suzu> ok
<suzu> do i append it to my current value, space separated?
<clever> i think so
<clever> yeah, space seperated
<suzu> ok
<ottidmes> clever: I always thought /bin/sh on NixOS used that of bash, but I got: sandbox-paths = /bin/sh=/nix/store/3jh2d752bf78b9j9f72qcq952azj2ffb-busybox-1.29.3/bin/busybox
<suzu> /nix/store/r997gyj1j189ifvbgszcyjnypk9i4701-unpack-channel.sh: line 1: mkdir: command not found
<suzu> new error
vk3wtf has quit [Ping timeout: 240 seconds]
<clever> suzu: oh, i think i know whats wrong
fusion809 has quit [Quit: Leaving]
tzemanov_ has quit [Ping timeout: 245 seconds]
<clever> suzu: normally, mkdir and friends, come from /nix/store/, via a config.nix file
<clever> suzu: because nix itself was not built with nix, its pointing to the arch binaries
<clever> suzu: and the sandbox is keeping those dirty arch binaries out of sight :P
<clever> so basically, the nix sandbox cant work, if nix was not built with nix
<suzu> the sandbox is to be isolated from all the system packages, yeah?
<clever> suzu: sandbox = false
<clever> that will fix everything
<suzu> is that safe?
<clever> it will still use build users, but it wont be putting them into dedicated containers
<suzu> sandbox = false worked. ( i tried that before but didnt think to restart the daemon )
<suzu> why doesn't stitching in arch busybox into nix's sandbox work?
<suzu> surely that can handle mkdir, sh, etc.
maximiliantagher has joined #nixos
<clever> that only gives you /bin/sh
<clever> it doesnt give you /bin/mkdir
o1lo01ol1o has joined #nixos
<suzu> hmm
<clever> you would need to add every binary that fails, and map them to something
<suzu> how is that a workaround that worked for anybody, then
<suzu> lol