worldofpeace_ changed the topic of #nixos to: NixOS stable: 20.03 ✨ https://discourse.nixos.org/t/nixos-20-03-release/6785 || 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/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
anderslu1dstedt has joined #nixos
ddellacosta has quit [Quit: WeeChat 2.8]
anderslundstedt has quit [Ping timeout: 256 seconds]
ddellacosta has joined #nixos
<{^_^}> [nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUuCk
<astylian> ok, I manage to install nix using the instractions from here https://nixos.org/download.html#nix-quick-install
<astylian> the instructions from https://nixos.org/guides/install-nix.html did not work for me
<Reiser> I've installed NixOS, and setup LVM with a dm-crypt root inside it. When I reboot, it doesn't detect the LVM groups at all. If I enable ssh in initrd, and manage to SSH while It's still trying to mount the disk ( 10 second timeout ), then I can `lvm vgchange -ay` and the cryptsetup unlock + boot works just fine
<Reiser> Is there something I've missed? Why isn't initrd detecting my LVM devices automatically?
wnklmnn has quit [Quit: Leaving]
h0m1 has quit [Quit: WeeChat 2.9]
h0m1 has joined #nixos
<{^_^}> [nixpkgs] @enderger opened pull request #98358 → update luakit → https://git.io/JUuCd
<Reiser> Figured it out! `preLVM` flag required if you have LVM as your outer layer
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/684d691c6e9 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
anderslundstedt has joined #nixos
Fare has quit [Ping timeout: 260 seconds]
anderslu1dstedt has quit [Ping timeout: 272 seconds]
bahamas has joined #nixos
bahamas has joined #nixos
bahamas has quit [Changing host]
Fare has joined #nixos
sigmundv_ has quit [Ping timeout: 272 seconds]
<infinisil> astylian: Glad it worked, but please answer the questions that are being asked in the future. I asked for the output of the installation because it gives additional debug info. Knowing it looks fine doesn't help with debugging
<infinisil> Similarly, if you report problems, say what the problems are, not just "does not work"
ris has quit [Ping timeout: 265 seconds]
bahamas has quit [Ping timeout: 260 seconds]
CMCDragonkai1 has joined #nixos
mariatsji has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #98229 → dwarf-fortress: update themes.json → https://git.io/JU05i
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUuWZ
mariatsji has quit [Ping timeout: 272 seconds]
ransom has joined #nixos
<matthewcroughan> Yo yo yo
<matthewcroughan> clever: I'm on nixpkgs unstable and with colemickens' packages, but it looks like Firefox is still trying to use Xwayland despite my Sway config having xwayland off
<matthewcroughan> (for screensharing)
gustavderdrache has left #nixos [#nixos]
<Jake[m]> [matthewcroughan](https://matrix.to/#/@freenode_matthewcroughan:matrix.org): try setting `MOZ_ENABLE_WAYLAND=1`
<matthewcroughan> Jake[m]: My reading was entirely inaccurate
<matthewcroughan> I have NO idea how, but sway is not getting its config from /etc/nixos/dotfiles anymore
<matthewcroughan> It used to be that it did, but now it does not, and I do not know why
<matthewcroughan> So, when actually using wayland, it just crashes, as does Chromium
<Jake[m]> Sway crashes?
<matthewcroughan> No, the browsers. Firefox and Chromium crash when trying to screenshare
kenran has joined #nixos
<{^_^}> [nixpkgs] @andrew-d opened pull request #98359 → perlPackages.HamAPRSFAP: init at 1.21 → https://git.io/JUulY
<{^_^}> [nixpkgs] @r-burns opened pull request #98360 → liboping: fix build on Darwin → https://git.io/JUulO
qyliss has quit [Quit: bye]
kenran has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @worldofpeace pushed 97 commits to gnome-3.38: https://git.io/JUuln
<{^_^}> [nixpkgs] @r-burns opened pull request #98361 → libversion: fix tests on Darwin → https://git.io/JUulC
qyliss has joined #nixos
arahael has quit [Ping timeout: 240 seconds]
ddellacosta has quit [Ping timeout: 256 seconds]
dermetfan has quit [Ping timeout: 272 seconds]
arahael has joined #nixos
h0m2 has joined #nixos
ntwhaaci^ has quit []
rajivr has joined #nixos
CMCDragonkai1 has quit [Ping timeout: 256 seconds]
Fare has quit [Ping timeout: 260 seconds]
<matthewcroughan> colemickens: maybe you know why? enable-webrtc-pipewire-capturer is not avail in my chromium package from your nixpkgs-wayland
h0m1 has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @worldofpeace pushed 31 commits to gnome-3.38: https://git.io/JUulh
<{^_^}> [nixpkgs] @worldofpeace pushed 31 commits to gnome-3.38: https://git.io/JUu8I
<colemickens> nixpkgs-wayland does not include chromium
<matthewcroughan> yeah not anymore,
<matthewcroughan> it looks like things have changed?
<matthewcroughan> Oh no, nvm, it came from your nixpkgs-chromium-ozone or something, maybe it was a flake
<colemickens> It never did. There was nixpkgs-chromium but it's been abandoned.
<matthewcroughan> Right, that makes sense.
<colemickens> correct.
veleiro has joined #nixos
<veleiro> join #novena
<matthewcroughan> Do you use Wayland every day then? colemickens
<colemickens> for almost 2 years now I think
<matthewcroughan> Do you avoid xwayland?
<colemickens> Sorta. As of now, VSCodium is the only exception and I'm working on something for that.
<matthewcroughan> What I'm after is a pure Wayland set up.
<matthewcroughan> aha, VSCodium is electron though isn't it?
<matthewcroughan> So through electron-ozone would support Wayland?
<colemickens> Right, thus XWayland for a bit longer.
<colemickens> (where "a bit" could be ... a while)
<matthewcroughan> Do you use Firefox then?
<colemickens> Yes
<matthewcroughan> I just cannot get Firefox/Chromium to play nicely under wayland.
<matthewcroughan> Firefox pops up this very annoying MASSIVE whole window when I turn on my webcam.
<colemickens> Chromium isn't ready quite yet. and I can't get Ozone working on Google Chrome Dev, I don't think it's ready yet.
<matthewcroughan> Rather than it being a simple overlay taking up 70px in the top middle of the screen, it allocates a whole window.
<colemickens> matthewcroughan: I think that's common.
<matthewcroughan> Additionally, screen sharing seems not to work. Do you have any nixpkg with the pipewire patch?
<colemickens> matthewcroughan: firefox + pipewire = https://github.com/NixOS/nixpkgs/pull/84233
<{^_^}> #84233 (by colemickens, 24 weeks ago, open): firefox: add pipewire patch for wayland users
<matthewcroughan> So, in progress, but not ready right now?
<colemickens> IMO it's ready to merge but no one has really reviewed :(
<cole-h> Anybody familiar with systemd -- how long does the build take on your machine? (with machine specs, or at least core count)
<colemickens> it's only not enabled in Firefox upstream because of some complication of their build system and how it interacts with WebRTC's build system
<cole-h> Wondering if I should just `git bisect skip` until I don't need to rebuild systemd lol
<matthewcroughan> How would I add this to my personal config.nix then? colemickens
<matthewcroughan> Is there an attribute I can override?
<matthewcroughan> I'm really not fully used to this whole system, I will be in a few months
<colemickens> Honestly, that question is hard to answer. Do we have a wiki page for this?
<colemickens> But it's not just that, and that page is not good. Sorry not sorry
<cole-h> :P
<matthewcroughan> So the practical answer is "wait until it's merged"
<colemickens> Like, answering this question properly requires understanding NIX_PATH, what nixos-rebuild does, what an overlay is, how to pull a attr from a diff package set, etc, etc.
<colemickens> matthewcroughan: probably :/
<matthewcroughan> man, this complexity comes at massive cost for not much gain sometimes.
<matthewcroughan> I can just install arch and get this done in no time at all.
<colemickens> matthewcroughan: fwiw, this question becomes much easier to answer in a post-flakes world
<cole-h> tbh I would just overlay firefox to add the stuff
<matthewcroughan> Sure, the reproducibility is lessened, but I feel it's so worth it
<matthewcroughan> For the small things like this, it is a massive pain in the ass.
<colemickens> matthewcroughan: I don't care. Do you still want help or someone to listen to you rant?
<matthewcroughan> I'm not ranting?
<colemickens> Cause like I got other things to do
<matthewcroughan> I thank you for your time, sorry if I pissed you off.
<colemickens> everytime you get help you end up comparing it and saying ARch is so much easier
<colemickens> it gets old, have a nice day
<matthewcroughan> It is, and I understand why.
<matthewcroughan> But I'm saying, why is it that we can't have cake and eat it too?
<colemickens> "matthewcroughan: fwiw, this question becomes much easier to answer in a post-flakes world"
<matthewcroughan> Arch will not let me do half the things nix will, reproducibly. But for this simple task, it is not possible to explain in simple terms how to reproduce what you've done in 3 commits, locally?
<cole-h> `firefox = prev.firefox.overrideAttrs ({ patches ? [], postPatch ? "", buildInputs ? [], ... }: { patches = patches ++ [ (final.fetchpatch { .... }) ]; buildInputs = buildInputs ++ [ final.pipewire ]; postPatch = postPatch + ''...''; };`
<cole-h> Seems like it might work?
<matthewcroughan> Ah, 1 commit 3 files, sorry.
<colemickens> The easy answer is, if you use your own nixpkgs, all of this is "easier", but then you end up maintaining your own nixpkgs branch.
Fare has joined #nixos
<matthewcroughan> Right, but for simple testing purposes, how could I just use your common.nix, one-time, right now?
<matthewcroughan> yes
<{^_^}> #94444 (by suhr, 7 weeks ago, closed): `iris` mesa driver segfaults
<cole-h> `nix-build -A firefox-or-whatever-the-attr-is-called -I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/31e54cdde34073b3b83e9fca4434cb0cedcb2829`
<matthewcroughan> In this issue, I was given a one-shot command like "nixos-rebuild switch -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/0c34580.tar.gz"
<colemickens> matthewcroughan: anywhere that you want to pull in a random file, you can reach for "builtins.fetchTarball". The output of that allows you to access any file in the tarball.
<unclechu> Ashy: okay, i created this bug report about this steam segfault: https://github.com/NixOS/nixpkgs/issues/98362
<{^_^}> #98362 (by unclechu, 2 minutes ago, open): Steam segfaults on specific hardware
<colemickens> matthewcroughan: so anywhere you wanted to "import" that file, you could write approximately `import "${builtins.fetchTarball { url ="../nixcfg"; sha256=".."; }/mixins/common.nix`
<colemickens> (well, I missed a matching brace, but I hope that helps)
<matthewcroughan> It doesn't quite yet, since I'm too noob, so you don't have to be completely accurate, it's helping me understand what's possible though
<colemickens> the url would be "https://github.com/colemickens/nixcfg/archive/master.tar.gz", for example.
<matthewcroughan> I was just hoping it would be possible to create a one-shot command like that nixos-rebuild switch command
<matthewcroughan> from 94444*
<{^_^}> [nixpkgs] @jbedo opened pull request #98363 → mosdepth: 0.2.9 -> 0.3.0 → https://git.io/JUu80
<colemickens> matthewcroughan: so, there sort of is, in a comment
<colemickens> matthewcroughan: but that's going to be from the branch that I wrote two months ago, so you're going to get a Firefox build that is ... old enough to be insecure possibly
<matthewcroughan> Yeah, I just wanna see if it works really
<matthewcroughan> This comment?
<colemickens> Yes.
Fare has quit [Ping timeout: 260 seconds]
<colemickens> But, it does still require pipewire to be running and the right env vars to be set. So you'll have to do that, or incorporate those parts into your system config and apply it.
<matthewcroughan> Right, and I do not believe I even have pipewire, nor would I know how to use it
<matthewcroughan> I can't wait til this gets merged I suppose
<colemickens> well it won't do anything if you don't have pipewire enabled?
<cole-h> colemickens: Do you use pipewire for audio?
<colemickens> cole-h: idk, I have it enabled, I assume it's being used for audio?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #84233 → firefox: add pipewire patch for wayland users → https://git.io/Jvb0q
<matthewcroughan> Do you maintain x11 and wayland setups for yourself?
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JUu8z
Fare has joined #nixos
<matthewcroughan> I'm thinking I'm just going to have to maintain x11 still and gradually switch, because I thought everything would be in place :D
<colemickens> cole-h: I honestly hadn't considered that it wasn't being used, but I bet pulseaudiod is running -_- because I do use pulseaudio -k? But maybe that works transparently too? now I'm curious....
<colemickens> matthewcroughan: me? no
<matthewcroughan> Hardcore
<colemickens> matthewcroughan: when I need to screenshare I use obs-v4l2sink
<matthewcroughan> Do you run firefox with pipewire locally thoug
<colemickens> also, I don't need ot screenshare :)
<matthewcroughan> Hmmmmm, I already prefer and love obs v4l2
<colemickens> matthewcroughan: I do, but only so that I am true to my word on that PR
<matthewcroughan> Can this all be done without pipewire then?
<colemickens> matthewcroughan: yes
<matthewcroughan> I thought you'd still need to run pipewire to get that stuff into firefox
<colemickens> Nope, obs-v4l2sink exposes the output as a new v4l2 device via kernel module
<colemickens> v4l2loopback kernel module
<matthewcroughan> So pipewire is not necessary, even on wayland, to use v4l2 etc?
<colemickens> they have absolutely nothing to do with each other
<matthewcroughan> Yeah it's a video device just like the webcam right.. crap
<colemickens> you got it
<matthewcroughan> I just didn't think about it
<cole-h> colemickens: I just remember trying it one time and I wasn't pleased with the results(?)
<matthewcroughan> GDI
<colemickens> cole-h: tbh I did "services.pipewire.enable=true" and thought that was enough. I didn't disable PA though, so ?
<matthewcroughan> I simply thought that screensharing was going to be easier to fix than OBS on Wayland, but apparently not :D
<colemickens> cole-h: I definitely have a "pulseaudio" process running, so I'm doubting my earlier assumption.
<cole-h> I think pipewire bridges PA? So native pipewire applications work, as well as PA apps?
cosimone has quit [Quit: Quit.]
<colemickens> matthewcroughan: well, luckily I have the OBS build in the overlay :)
<colemickens> matthewcroughan: and actually, the obs-v4l2sink is getting upstreamed
<colemickens> so this will all change (to a simpler method) in a while when that PR merges and is released.
<colemickens> (which is good, obs-v4l2sink is abandonware)
inkbottle has joined #nixos
zebrag has quit [Ping timeout: 264 seconds]
<colemickens> cole-h: so when you tested, what did you do to "switch" to pipewire?
tsrt^ has joined #nixos
<cole-h> colemickens: I don't even remember, it was soooo long ago (like, right when I switched to NixOS). Pretty sure it was just enabling pipewire. Maybe I also tried disabling PA?
<cole-h> Sorry :s
ddellacosta has joined #nixos
<colemickens> cole-h: eh, it's all good, idle wondering, thanks
<cole-h> Man, all these periods of nixpkgs being busted really hurts my bisecting efforts.... lol
<cole-h> colemickens: Oh, I think I wasn't thrilled because I was trying to get JACK and Pipewire to communicate, and that didn't go over well
<cole-h> (JACK in general didn't go over well)
<matthewcroughan> jack needs re-creating
hnOsmium0001 has joined #nixos
<matthewcroughan> it has issues that just need to be fixed, that can't be worked around or accounted for
<cole-h> Jack itself, or Jack + NixOS integration?
<matthewcroughan> I've tried with the dummy device to get it to handle hotplugs, but something always screws up
<matthewcroughan> jack itself
<cole-h> You know you're having a bad time bisecting when `git bisect log | rg 'bisect skip' -c` is 22...
<matthewcroughan> what hardware are you bisecting on?
<matthewcroughan> colemickens: uh, so the pipewire stuff just got merged
<cole-h> 4c4t Skylake (I think)
<matthewcroughan> Before I could even build your damned cache version from your comment
<cole-h> So yeah
<cole-h> building 12 things even though I only have 4 cores
<cole-h> :|
<matthewcroughan> cole-h: Is it not possible to sort this out by using hydra?
<cole-h> That's the problem
<matthewcroughan> I would happily give you access to a better machine if it could be trustless
<matthewcroughan> Like if I could just run workers on a machine
c4droid has joined #nixos
<cole-h> nixpkgs was (probably) blocked when these commits were merged lol
<cole-h> so I'm stuck `git bisect skip` or just waiting
* cole-h can't wait until Oct 8th
<cole-h> AMD pls make Zen 3 super omega good
<matthewcroughan> epyc
<matthewcroughan> 1024 * 10 core cluster
<matthewcroughan> 1 core per nixpkg
<cole-h> lol
<cole-h> I wish
<matthewcroughan> lol and 8TB of ram
<matthewcroughan> A virtual machine, running in ram, per nixpkg
<matthewcroughan> No disks, only ram
c4droid has quit [Remote host closed the connection]
* cole-h fans self
<matthewcroughan> Uh, so how does pipewire work
<cole-h> Probably better to consult their repo or the Arch wiki
<{^_^}> [nixpkgs] @marsam merged pull request #98356 → [20.09] svgbob: fix build → https://git.io/JUunp
<{^_^}> [nixpkgs] @marsam pushed 2 commits to release-20.09: https://git.io/JUu8d
marusich has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @jbedo opened pull request #98364 → singularity: 3.6.2 -> 3.6.3 → https://git.io/JUu8N
<matthewcroughan> cole-h: services.pipewire.enable=true; wasn't enough :D
<matthewcroughan> I mean, I expected it to start and enable the systemd service
<matthewcroughan> It did not do that, so I'm unsure what is supposed to happen
Henson has joined #nixos
knerten2 has joined #nixos
<matthewcroughan> supposed to disable PA?
<Henson> does anybody here use procmail on NixOS? I'm trying to make a .procmailrc file do some mail forwarding, and it's not working and I keep getting a "/bin/sh: : No such file or directory" error an am wondering if there's a variable in the .procmailrc file I need to set to make it work properly with NixOS. I've tried the SHELL variable already but it didn't do anything.
<cole-h> matthewcroughan: I don't think PA and Pipewire are mutually exclusive.
<chipb> matthewcroughan: is pipewire even meant for general consumption at this point?
<chipb> what are you expecting out of it?
<{^_^}> #84233 (by colemickens, 24 weeks ago, merged): firefox: add pipewire patch for wayland users
<matthewcroughan> this just got merged, and I want to try it
<matthewcroughan> so in order to try it, I need to configure pipewire
<{^_^}> [nixpkgs] @peterhoeg opened pull request #98365 → f3: clean-ups and compile on darwin → https://git.io/JUu4Z
<colemickens> you have to have the env vars set
<matthewcroughan> Sorry, where are they? I do not see them in the PR
knerten1 has quit [Ping timeout: 240 seconds]
<matthewcroughan> Ah okay I see, it's in your home manager config
ransom_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
<matthewcroughan> do I need all of them? So MOZ_USE_XINPUT2 and sessino type, and current desktop?
<{^_^}> [nixpkgs] @worldofpeace pushed 14 commits to gnome-3.38: https://git.io/JUu4u
waleee-cl has quit [Quit: Connection closed for inactivity]
<matthewcroughan> Seems not to work, despite having your config cole-h
<matthewcroughan> colemickens: *
<matthewcroughan> I'm not using homemanager, but I do not know how much this matters
<matthewcroughan> I'm starting firefox manually with those envvars, and have pipewire and xdg configured as your opening snippet says
Pwnna has quit [Quit: Bye]
Pwnna has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed to gnome-3.38 « squash! gtk-doc: 1.32 -> 1.32.1 »: https://git.io/JUu4V
<chipb> can you get more debug out of firefox?
<chipb> does pipewire do render offload magic? is it perhaps hardware and/or driver dependent (and you have different setup than colem...) or is it supposed to be agnostic to that?
<matthewcroughan> Unsure, but I've screwed around enough to know that this probably means it's going to suck my time away :D
<matthewcroughan> I was very hopeful that the work done by colemickens would make wayland and sway plug and play today. But it's clear that a lot of work needs to be done
<matthewcroughan> So I hope I can contribute, am going to have to make a crappy x11 config for now though :D
<{^_^}> #57602 (by primeos, 1 year ago, open): sway: Optimal NixOS integration
<matthewcroughan> I see this Issue for example is quite extensive
<cole-h> idk, sway was pretty plug-and-play for me
<cole-h> Though maybe because I was using sway on Arch before NixOS
<matthewcroughan> sway IS plug and play. Wayland features are not
<matthewcroughan> I mean, like I said, they could be easy to do once and never again on Arch.
<matthewcroughan> Yknow, write-only configuration, that's what Arch is lol
philr has quit [Ping timeout: 240 seconds]
mariatsji has joined #nixos
<chipb> I mean, it may be straightforward and it's just a small thing.
<matthewcroughan> Maybe, but man it's going to have a learning curve
philr has joined #nixos
<matthewcroughan> Learning nixos and wayland at the same time is like switching from Windows to Linux all over again
<matthewcroughan> By playing with both, I will learn the differences, and get a lot of nixOS exp, so I'll do this.
<matthewcroughan> There will come a day when the nixos wiki is as well rounded as the arch wiki
<matthewcroughan> Pipewire integrates differently into NixOS, a lot of things do. So it's hard to transition.
<matthewcroughan> Some things *are* the same as any other distro. But at the same time, a lot of things are not, and assumptions are broken. And the wiki doesn't yet fill in that gap, hope I can help..
<matthewcroughan> May write an article about zfs on root now, since that isn't actually sufficient I think.
mariatsji has quit [Ping timeout: 260 seconds]
<matthewcroughan> Looks like lots has changed actually, it's much better now. No mention of luks on it though, will edit :D
Henson has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<{^_^}> [nixpkgs] @worldofpeace pushed to gnome-3.38 « gnome3.gnome-initial-setup: 3.36.4 -> 3.38.0 »: https://git.io/JUuBI
dansho has joined #nixos
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
cmk_zzz has quit [Ping timeout: 240 seconds]
spacefrogg has joined #nixos
cmk_zzz has joined #nixos
stephank has quit [Quit: stephank]
stephank has joined #nixos
philr has quit [Ping timeout: 260 seconds]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
lordcirth has quit [Remote host closed the connection]
lordcirth has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
kenran has joined #nixos
stoile has quit [Ping timeout: 256 seconds]
cjpbirkb1 has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed to gnome-3.38 « pantheon.elementary-session-settings: 2020-06-11 -> 2020-07-06 »: https://git.io/JUuBz
zecnate has joined #nixos
cole-h has quit [Quit: Goodbye]
<zecnate> In my builder script I have `head -1 ./Configure ; patchShebangs ./Configure; head -1 ./Configure` and patchShebangs doesn't seem to alter the `#!` line which remains unchanged with `#! /usr/bin/env perl`.
<zecnate> How do I use `patchShebangs`?
cole-h has joined #nixos
cjpbirkbeck has quit [Ping timeout: 240 seconds]
<zecnate> Oh, sorry, the version that exits successfully is `patchShebangs --build ./Configure`. Without `--build` it fails with "/nix/store/6k829xz9v508ncxfcf2p1b8g1wq54946-patch-shebangs.sh: line 56: pathName: unbound variable"
<zecnate> Ah, I discovered the problem: I was missing perl in buildInputs. But in that case, couldn't `patchShebangs` exit with a more friendly error message saying perl wasn't found?
cjpbirkbeck has joined #nixos
cjpbirkb1 has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixos-20.09-small advanced to https://github.com/NixOS/nixpkgs/commit/36fe916089e (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-20.09-small)
cjpbirkb1 has joined #nixos
cjpbirkbeck has quit [Ping timeout: 240 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Ping timeout: 272 seconds]
Supersonic112 is now known as Supersonic
orivej has quit [Ping timeout: 260 seconds]
cjpbirkbeck has joined #nixos
cjpbirkb1 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @worldofpeace pushed to gnome-3.38 « fixup! gnome3.polari: 3.36.3 -> 3.38.0 »: https://git.io/JUuRT
mmohammadi981261 has joined #nixos
cjpbirkb1 has joined #nixos
cjpbirkbeck has quit [Ping timeout: 240 seconds]
modaljunk has joined #nixos
modaljunk has quit [Remote host closed the connection]
modaljunk has joined #nixos
<modaljunk> hi #nixos, new user here. I'm on nixos 20.03 and I'm trying to install mopidy with the mopidy-mpd extensionpackage. mopidy-mpd is on github, but when i try to include it in extensionpackages for services.mopidy I get the error "attribute 'mopidy-mpd' missing"
<{^_^}> [nixpkgs] @zowoq opened pull request #98366 → age: 1.0.0-beta4 -> 1.0.0-beta5 → https://git.io/JUuRc
<modaljunk> its not for 20.03 yet, can I just use this one newer package without upgrading the whole system?
zakame has quit [Ping timeout: 240 seconds]
justanotheruser has quit [Ping timeout: 272 seconds]
ydlr[m] has left #nixos ["User left"]
zakame has joined #nixos
domogled has quit [Ping timeout: 258 seconds]
justanotheruser has joined #nixos
orivej has joined #nixos
ericsagnes has quit [Ping timeout: 260 seconds]
night has quit [Read error: Connection reset by peer]
NightA has joined #nixos
modaljunk has quit [Remote host closed the connection]
modaljunk has joined #nixos
<modaljunk> nvm i figured it out
modaljunk has quit [Client Quit]
ericsagnes has joined #nixos
stoile has joined #nixos
zakame has quit [Ping timeout: 260 seconds]
Sanchayan has joined #nixos
zakame has joined #nixos
orivej has quit [Ping timeout: 258 seconds]
dansho has quit [Remote host closed the connection]
dansho has joined #nixos
mallox has joined #nixos
ddellacosta has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #98367 → shadowsocks-rust: 1.8.17 -> 1.8.18 → https://git.io/JUu0n
thelounge81 has quit [Quit: The Lounge - https://thelounge.chat]
mmohammadi981261 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
<matthewcroughan> cole-h: you up?
endformationage has quit [Quit: WeeChat 2.9]
<matthewcroughan> still bisecting? lol
<cole-h> Unfortunately, yet
<cole-h> s/yet/yes
<matthewcroughan> How could the community help with that?
<matthewcroughan> For example, let's say I was able to get you access to faster hardware, would that help?
<matthewcroughan> why is it that we don't have infra for this?
<cole-h> Because it costs money
<matthewcroughan> IDK, I'm building myself a really decent server soon, why can't I run a worker for you on it?
Orbstheorem has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @bryanasdev000 opened pull request #98368 → maintainer: Add bryanasdev000 → https://git.io/JUu0w
<cole-h> Only reason I'm still bisecting is because I wasted some time trying to setup a packet.net builder :P
<matthewcroughan> Right so I *can* run this in a VM and give you access?
<cole-h> You could indeed.
<matthewcroughan> Problem is, I don't have fast storage
<matthewcroughan> I have 24 threads at 2.4ghz on an dual X5675 system laying around, but I doubt that will help
<matthewcroughan> Do you think it would?
<matthewcroughan> Would be on a basic sata ssd, with 16G ram?
<matthewcroughan> gigabit
<cole-h> It would help more than my 4c4t machine, for sure. But I'm giving packet another go (this time, while I'm building, so I don't waste time...).
<matthewcroughan> Well if you think it's worth it or need it for a period of time let me know and I'll sort that out
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0b67d9e87ae (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/21d8e70a69f (from 7 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
<cole-h> Cheers, I appreciate the offer :)
<cole-h> I'll get in touch if I get frustrated ;P
mariatsji has joined #nixos
<matthewcroughan> cole-h: Do you know of an easier way to search through man pages?
<matthewcroughan> like, for a flag
mariatsji has quit [Ping timeout: 246 seconds]
<cole-h> `/--flag` is what I use
<matthewcroughan> I wanted to look up what 'nix-env -q' does, but then searching for -q results in a hell of a lot
<cole-h> Well, I can tell you that `-q` means `--query`
<matthewcroughan> right, just going through the nix pills
<cole-h> You could do `PAGER=cat man nix-env | grep something` if `/` isn't doing it fory ou
<matthewcroughan> I don't yet understand the difference between my configuration.nix and what I've done via nix-env -I
<matthewcroughan> is there one?
<cole-h> How do you mean?
<matthewcroughan> well, I've defined some stuff in my configuration.nix,
<matthewcroughan> I have also one-off installed something with nix-env -I
<cole-h> `nix-env -i` installs a package imperatively, while environment.systemPackages installs a package declaratively
<matthewcroughan> So the output of `nix-env -q` has nothing to do with environment.systemPackages/
<matthewcroughan> ?
<cole-h> Correct
<{^_^}> [nixpkgs] @kquick opened pull request #98369 → Gnatfix upd → https://git.io/JUu09
<matthewcroughan> cole-h: why does the generations from nix-env --list-generations not equate to what I see in the systemd-boot menu?
<matthewcroughan> system-boot shows there have been 38 generations, but `nix-env --list-generations` says only 16 have
Rusty1 has quit [Quit: WeeChat 2.3]
<cole-h> No idea. Can't say I've used `nix-env --list-generations` before x)
<matthewcroughan> just going through the nix pills here and getting confused lol
<cole-h> I think the nix pills are out of date?
<matthewcroughan> ahh bugger
<matthewcroughan> really?
<matthewcroughan> so where do I learn
<cole-h> I've heard https://github.com/tazjin/nix-1p recommended before
<matthewcroughan> oh god that language syntax and operators table
<matthewcroughan> finally....
<cole-h> Never used either, though. I kinda just stumbled through Nixpkgs until I understood... :P
zakame has quit [Ping timeout: 240 seconds]
<matthewcroughan> yeah I gather that is most people
<{^_^}> [nixpkgs] @danieldk merged pull request #98083 → tensorflow: Fix compilation with numpy 1.19.x → https://git.io/JUBoC
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JUu07
<matthewcroughan> but it's a deeper programming endeavour than I have traditionally done, so it's going to require some study from me
knupfer has joined #nixos
cjpbirkb1 has quit [Quit: Goodbye, take care]
zakame has joined #nixos
lordcirth has quit [Read error: Connection reset by peer]
<matthewcroughan> cole-h: it looks like neither describe the "let" keyword very well?
lordcirth has joined #nixos
<cole-h> `let` binds variables to values `in` a scope.
<cole-h> > let a = "asdf"; in a
<{^_^}> "asdf"
<matthewcroughan> a == asdf ?
<cole-h> > let b = "jkl"; in b
<{^_^}> "jkl"
<matthewcroughan> b == jkl ?
<cole-h> > let c = "zxcv"; in c
<{^_^}> "zxcv"
<matthewcroughan> yes, but does c == zxcv?
<cole-h> It just binds the variable to that value in that scope.
<cole-h> So c == "zxcv" in that scope
<cole-h> Outside, it doesn't exist.
<matthewcroughan> right, so this is a complicated way of setting the value of a variable
<matthewcroughan> but is that all it is?
mallox has quit [Quit: WeeChat 2.9]
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/21d8e70a69f (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<matthewcroughan> okay so the answer to this should be 30
<matthewcroughan> let a = 15; a=2; in a * b
<matthewcroughan> > let a = 15; a=2; in a * b
<{^_^}> error: attribute 'a' at (string):323:13 already defined at (string):323:5
<matthewcroughan> eh? What did I get wrong
<cole-h> :P
<cole-h> `let a = ....; a = .....`
<matthewcroughan> oh I'm an idiot lmfao
<cole-h> You redefined a
<matthewcroughan> okay, great, you cannot redefine like this
<matthewcroughan> is that on purpose? In python it would take the latest definition
gerschtli1 has quit [Quit: WeeChat 2.7.1]
<matthewcroughan> here it throws an error, is there a philosophical reason for that?
<matthewcroughan> > let a = 15; b = 2; in a * b
<{^_^}> 30
<{^_^}> [nixpkgs] @bryanasdev000 opened pull request #98370 → popeye: init at 0.8.10 → https://git.io/JUuEJ
gerschtli has joined #nixos
<matthewcroughan> Right, I get that. I don't mind it, I just find it strange.
<cole-h> Nix is not a general-purpose programming language, so it's harmful to compare it to something like Python or Rust or C.
<matthewcroughan> You could do it in ANY manner of ways, this is just a choice, and it's not a bad one.
<matthewcroughan> It's less text overall.
<matthewcroughan> Wait no it's not lol. Why is it like this :D
<matthewcroughan> why not just have the `=` operator do what `let` does?
<cole-h> > a = "asdf"
<{^_^}> a defined
<cole-h> > a
<{^_^}> "asdf"
<matthewcroughan> > a
<{^_^}> "asdf"
<cole-h> I'm afraid I can't answer the specifics of why, because I didn't create the language ;) You might find some information in Eelco's thesis, though:
<cole-h> ,thesis matthewcroughan
<matthewcroughan> > let a = hjkl; in b
<{^_^}> "asdf"
<matthewcroughan> > let a = hjkl; in b
<{^_^}> "asdf"
<matthewcroughan> Wat
<cole-h> > b
<{^_^}> "asdf"
<matthewcroughan> yes, but why does it print asdf upon definition
<cole-h> Because it's evaluating `b`
<cole-h> That's not a definition
<matthewcroughan> b is unset though, right?
<matthewcroughan> > let a = hjkl; in new_variable
<{^_^}> undefined variable 'new_variable' at (string):323:18
<matthewcroughan> > let a = hjkl; in new-variable
<{^_^}> undefined variable 'new-variable' at (string):323:18
<matthewcroughan> new-variable = 0
<matthewcroughan> > new-variable = 0
<zecnate> matthewcroughan: Beware that `nix-repl` is different than evaluating nix expressions for building packages.
<{^_^}> new-variable defined
<cole-h> (and {^_^} is basically a supercharged `nix repl`)
<matthewcroughan> > let new-variable = hjkl; in b
<{^_^}> "asdf"
<matthewcroughan> > b
<{^_^}> "asdf"
<matthewcroughan> ah I don't get it
<cole-h> Why not?
<matthewcroughan> Why can't I redefine b
<cole-h> `b` is already bound to "asdf"
<zecnate> In `nix-repl` as a convenience, you can just say `blah = 42` and `blah` will remain bound in later expressions. When using `nix-build` there's a single expression, whereas in `nix-repl` you are evaluating a sequence of interactive expressions.
<cole-h> If you want to define b, you need to use =
Fare has quit [Quit: Leaving]
<cole-h> > b = "asdfghjkl"
<{^_^}> b defined
<cole-h> > b
<{^_^}> "asdfghjkl"
<matthewcroughan> Oooooh okay, I se..
knupfer has quit [Ping timeout: 246 seconds]
<cole-h> `let a = "fdsafa"; in b` is not setting `b` to the value of `a`
<zecnate> I don't think expressions as used by `nix-build` even allow `a = …`. You can only use `let` (or `import` or `with` etc…).
<matthewcroughan> > new-variable = 5
<{^_^}> new-variable defined
<cole-h> It's setting `a` to "fdsafa" and evaluating the previously-defined value of `b`
<matthewcroughan> > let a = 1; b = 2 in a + b + new-variable
<{^_^}> error: syntax error, unexpected IN, expecting ';', at (string):324:18
<matthewcroughan> > let a = 1; b = 2; in a + b + new-variable
<{^_^}> 8
<matthewcroughan> right. this makes sense.
<matthewcroughan> the = is used, I see what you mean by scope entirely now..
<zecnate> matthewcroughan: In a language like C or rust, `let … in …` is a little like a locally nested block: `do_stuff(); { int a = 42; call_thingy(a); } do_other_stuff_without_a()`
<matthewcroughan> `let` and `in` are like a loop, but purely for definition of variables within a loop or "scope" as we're calling it
<matthewcroughan> in a for loop, in python, if you defined a variable it would only be accessible within that loop. This is the same way, but instead of "for" you have `let`
<zecnate> Which languages are you most familiar with?
<matthewcroughan> shell, honestly
<cole-h> The for-loop is the scope
<matthewcroughan> which is more analogous, because it has "let" and "in". This is like `if` and `fi`
<simpson> matthewcroughan: If you know Python, then the correct analogy is to a with-block, I think, and even that is still missing it a bit since there's an entire tradition of languages like ML and Nix using let/in purely for reusing subexpressions.
<matthewcroughan> except in is actually a function that evaluates some stuff
<zecnate> Yeah, nix expressions are substantially different than shell. ;-)
<cole-h> matthewcroughan: You're trying to equate different things.
<matthewcroughan> Yeah I see how it does not make sense now.
<cole-h> `if` and `fi` are control flow, while `let ... in` is just bringing a variable into a specific scope.
<matthewcroughan> I understand it, in a vague syntactical way.
<matthewcroughan> That does not mean I know what one could/should/would do with it.
<simpson> In general, factor out common subexpressions; when you see something defined twice in a block, then you can factor it out and only define it once.
<zecnate> `let <bindings> in <expr>` defines the bindings only within `<expr>`. It keeps those definitions local to that usage so you don't need to worry about your variable definitions interfering with other code.
<matthewcroughan> `let` starts the scope, `in` ends scope. That's all I see. Even if it's technically wrong.
<matthewcroughan> in ends the scope, by producing a return value.
<zecnate> The scope ends with `<expr>`, not immediatley with `in`, so the syntax might be a big unusual from a shell/python background.
<matthewcroughan> does this "swallow" the scope? Does this mean this was ephemeral?
<simpson> `let` binds values to names and `in` starts the scope. Nix doesn't have a terminator for that scope.
lordcirth has quit [Remote host closed the connection]
<matthewcroughan> It reminds me a bit of forth
<matthewcroughan> you know how they have reverse polish notation in forth?
<zecnate> You know how if you have a function in python, like `def foo(a, b): <statements>` then `a` and `b` are only available inside the function body? It's very similar.
lordcirth has joined #nixos
<zecnate> It's almost like this: nix `let a = 42; in 2 * a` is sorta like this python:
<matthewcroughan> yes zecnate exactly, I get this, but I just find it arbitrary why it was done this way
<simpson> It's not really at all like Forth, except in that things are done in a sequence. And yes, in ML (e.g. OCaml), let/in is used for sequencing actions.
<zecnate> def _no_actual_name(a): return 2*a
<matthewcroughan> because I don't know what benefits this provides, or what the need for it is, it seems like "oh cool, but why" to me
<zecnate> _no_actual_name(42)
<matthewcroughan> Has anyone got an example of let/in being used in an actual package now?
<matthewcroughan> zecnate: what's the need to say "_no_actual_name"
<simpson> matthewcroughan: There's a massive syntactic tradition you're not seeing: ML. SML, Haskell, OCaml, and indeed Nix are all part of a long-standing usage of this pattern: https://en.wikipedia.org/wiki/Let_expression
<zecnate> Toy example: `let othermod = import ./other-mod.nix; in othermod.make_a_package_definition("my-package")`
<{^_^}> [nixpkgs] @JesusMtnez closed pull request #97950 → vscode: 1.48.2 -> 1.49.0 → https://git.io/JU8Kz
<matthewcroughan> simpson: That's all I needed to hear :D
<matthewcroughan> I thought this ought to be deeper than nix. I did not know where to look.
<zecnate> matthewcroughan: In that python example the function gets called immediately. I gave it a funky name, because in `let / in` there's no name that sticks around.
<matthewcroughan> in the same way as I think there are other languages that use `if` `fi` than shell.
<zecnate> So in fact, it's closer to this python `(lambda a: 2 * a)(42)`
lordcirth has quit [Remote host closed the connection]
<matthewcroughan> zecnate: yes, now I need an actual example, I understand the syntax
<matthewcroughan> we can do math with it, but what else do people do with it in packages?
<zecnate> In shell, `if` and `fi` are syntax to identify the start/end of the if-clause, but scoping is very different. Generally, most shell variables are globals.
lordcirth has joined #nixos
<matthewcroughan> zecnate: yes, but in python they are not
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #98368 → maintainer: Add bryanasdev000 → https://git.io/JUu0w
<{^_^}> [nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JUuE6
<matthewcroughan> so basically, I understand this in a very screwed up way, because I actually did not know they were globals in shell, since I never think about scope
<matthewcroughan> but I knew for a fact that they were not global in python
<matthewcroughan> so to me, I think about scope from the perspective of Python, even when I'm doing shell, even though I shouldn't, lol.
<matthewcroughan> so if I defined some variables inside of if/fi, in shell, then I wouldn't expect them to be global actually.
<matthewcroughan> Are you saying that they in fact would be?
<matthewcroughan> AH yes.. I have written some scripts that do that, like entrypoints in dockerfiles.
<matthewcroughan> if/elif scripts that look for a global variable, then set yet another global variable if something is true in the env..
<zecnate> I'm a nix noob, btw, but here's a relatively concise example I wrote a couple days ago: https://github.com/nathan-at-least/zcash/blob/50eeccf40b3fdb2496a7a54f89cca42dfbbd838c/zcutil/nix-builder/pkgs-pinned.nix
<matthewcroughan> I've used Python's `os.environment` to do the same thing at times too. But I usually do that to avoid scope hahaha
<{^_^}> [nixpkgs] @rnhmjoj merged pull request #98116 → sc-controller: fix missing icons (librsvg) → https://git.io/JURe0
<{^_^}> [nixpkgs] @rnhmjoj pushed 2 commits to master: https://git.io/JUuE9
<{^_^}> [nixpkgs] @bryanasdev000 opened pull request #98371 → velero: init at 1.5.1 → https://git.io/JUuEH
<matthewcroughan> zecnate: oh hell yeah, that makes so much sense.
<matthewcroughan> Thanks a lot.
mir100 has quit [Ping timeout: 240 seconds]
<matthewcroughan> These are the attributes that are overriden, and this is how they are overriden.
<matthewcroughan> so, with a `nix-env` command I could overwrite your channelrev.
mir100 has joined #nixos
<zecnate> Hm, in that example link the attributes cannot be overridden, AFAIK (but I haven't learned about nix overlays yet).
<matthewcroughan> Okay then, so is this what is meant by immutability?
<{^_^}> [nixpkgs] @bbigras opened pull request #98372 → kopia: 0.6.4 -> 0.7.0 → https://git.io/JUuE7
<matthewcroughan> Whether or not the params can be overriden?
<zecnate> That example is exactly the same as `import (fetchTarball "https://github.com/NixOS/nixpkgs-channels/archive/61525137fd1002f6f2a5eb0ea27d480713362cd5.tar.gz")` the only difference is I gave a name to some of the pieces, which makes it easier to edit.
<zecnate> -and also I can comment a specific binding.
<matthewcroughan> yeah that makes sense
<matthewcroughan> I'm saying, I can override your bits in my configuration.nix right?
sangoma has joined #nixos
<zecnate> One thing about immutability is that those two expressions, with the let or here in the channel give the same result no matter what. Nothing can surprisingly change the bindings in the let. That's what immutability means.
<matthewcroughan> zecnate: nix-shell -p 'dolphinEmuMaster.overrideAttrs (old: rec { src = builtins.fetchGit "https://github.com/dolphin-emu/dolphin"; version = "dolphin-really-master"; cmakeFlags = [ "-DUSE_SHARED_ENET=ON" "-DENABLE_LTO=ON" "-DDOLPHIN_WC_REVISION=${src.rev}" "-DDOLPHIN_WC_DESCRIBE=really-master" "-DDOLPHIN_WC_BRANCH=master" ]; })'
<zecnate> shell is very different, because if you say: `a = 42; setup; do_thingy "$a"` you have no guarantee that `setup` didn't change `a` when you weren't looking.
<matthewcroughan> This command was given to me the other night by clev
<matthewcroughan> clever: *
<matthewcroughan> This command looks to me like it overrides the builtins.fetchGit(), the cmakeFlags(), etc.
<zecnate> Hrm, sorry I don't understand overrides yet. I think the "standard" way to do things in `nixpkgs` is to define functions that take package derivations as arguments, maybe with defaults, then the caller can choose to swap out pacakges, or something like that.
<clever> matthewcroughan: it overrides src and cmakeFlags
<matthewcroughan> which are variables in the dolphinEmu nixpkg?
<matthewcroughan> Which are defined by let/in?
<zecnate> In the example I linked, I specifically want to exclude overrides, so I just evaluate to that very specific import.
<zecnate> So with my understanding of nix, the way you would "override" something given that sets are immutable is you create a new set with the default/fallback values plus some new override values.
<matthewcroughan> No, it's not defined by let/in
<zecnate> That's built in with the `//` operator:
<matthewcroughan> So, what's the point of let/in
<zecnate> > {a = 42} // {b = "banana"}
<clever> matthewcroughan: let/in let you reuse a value multiple times in a later expr, or give it a name and shove it somewhere out of the way
<{^_^}> error: syntax error, unexpected '}', expecting ';', at (string):324:8
<zecnate> > {a = 42; } // {b = "banana"; }
<{^_^}> { a = 42; b = "banana"; }
<matthewcroughan> clever: right, so cmakeFlags can't be used in a later expr?
<matthewcroughan> since it is not defined with let/in?
<zecnate> matthewcroughan: `let` is how you define bindings, aside from function arguments. That's it. You can't define global bindings.
<matthewcroughan> isn't cmakeFlags in this file "global"?
<zecnate> Oh, that's different. That's an attribute. Also, I was wrong about bindings: `rec { ... }` is a way to introduce bindings.
<zecnate> Let's start with no `let` and `no` `rec`:
<zecnate> > { cmakeFlags = "bananas"; }
<{^_^}> { cmakeFlags = "bananas"; }
<matthewcroughan> So what I am thinking of as "global", end up as attributes?
<matthewcroughan> so you can have dolphineEmu.cmakeFlags ?
<zecnate> That expression is very much just like a JSON doc: `{"cmakeFlags": "bananas"}`
<clever> > builtins.toJSON({ cmakeFlags = "bananas"; })
<{^_^}> "{\"cmakeFlags\":\"bananas\"}"
<clever> nix can even convert a set into json
<clever> but its now got quotes inside a quoted string, and it gets ugly
palo1 has joined #nixos
<matthewcroughan> clever: where is it that you learned?
<matthewcroughan> I tried nix-pills but it seems outdated?
mir100 has quit [Ping timeout: 240 seconds]
<clever> matthewcroughan: i learned nix before the pills existed
<zecnate> Yeah, what happens is that this whole file evaluates to a function that takes a bunch of parameters. Somewhere else in `nixpkgs` (probably in a file called `all-packages.nix`) that function gets called and all of those parameters get passed in. The function returns a set, which is similar to a json object with a bunch of things defined, IIUC.
<matthewcroughan> Is it outdated? I veered off into https://github.com/tazjin/nix-1p
<clever> matthewcroughan: the pills are now on nixos.org
<matthewcroughan> Yes
NightA is now known as night
<matthewcroughan> This, seems outdated, maybe you can answer what I asked earlier, one second
bahamas has joined #nixos
<zecnate> > { cmakeFlags = "--enableWarpDriveOptimizations"; releaseFlags = "${cmakeFlags} --Wall"; }
<{^_^}> { cmakeFlags = "--enableWarpDriveOptimizations"; releaseFlags = <CODE>; }
<matthewcroughan> So, on my system. `nix-env --list-generations` produces 16 generations clever
<zecnate> oops. I expected an error. :-D
<matthewcroughan> but systemd-boot shows 38 generations
<matthewcroughan> what is the difference?
<zecnate> > { cmakeFlags = "--enableWarpDriveOptimizations"; releaseFlags = "${cmakeFlags} --Wall"; } .releaseFlags
<{^_^}> undefined variable 'cmakeFlags' at (string):324:68
<zecnate> There we go.
palo has quit [Ping timeout: 260 seconds]
palo1 is now known as palo
<clever> matthewcroughan: `nix-env --list-generations` shows generations for your user profile, not the system profile
<zecnate> So this is where `rec` comes in: it sets each attr as a binding that you can reuse in other attrs:
<clever> matthewcroughan: your thinking of `nix-env --list-generations --profile /nix/var/nix/profiles/system`
<zecnate> > (rec { cmakeFlags = "--enableWarpDriveOptimizations"; releaseFlags = "${cmakeFlags} --Wall"; }) .releaseFlags
<{^_^}> "--enableWarpDriveOptimizations --Wall"
<matthewcroughan> nix-env by default doesn't manage the system?
<clever> matthewcroughan: no, nix-env only manages ~/.nix-profile on one user
<matthewcroughan> okay, so why are these things separate?
<clever> matthewcroughan: so you can use nix-env without being an admin
<clever> matthewcroughan: so you can use nix-env without being on nixos (it even works on darwin)
<zecnate> matthewcroughan: fwiw, I've found the nix documentation to be a bit hard to penetrate. I am fairly new to it where I'm starting a new project about a week ago, but I'm also really familiar with the kind of language that nix expressions are.
<matthewcroughan> I just did `sudo nix-env --list-generations` and got even more confused
<matthewcroughan> hah
<clever> matthewcroughan: that would be roots ~/.nix-profile, stuff root installed with nix-env -i
<zecnate> I've been pondering how to improve the docs. It could also be the way I read is … potentially uh, unique.
<clever> matthewcroughan: each user, including root, has its own personal profile, none of them have any impact on the system profiles
<matthewcroughan> I don't like that I have these random bits of state on my system :d
konobi has quit [Quit: konobi]
<matthewcroughan> As I thought the point was to eliminate it
<clever> matthewcroughan: then stop using `nix-env -i`
konobi has joined #nixos
<clever> matthewcroughan: tools like home-manager can help to enforce that
<matthewcroughan> my user "matthew" can access "emacs"
<matthewcroughan> emacs is installed in the sudo nix-env
<matthewcroughan> why?
<clever> roots profile acts as a default for all users
<matthewcroughan> nix-env -q of matthew does not show emacs installed
<clever> do `which emacs` and you should see roots profile
<matthewcroughan> /nix/var/nix/profiles/default/bin/emacs
<clever> yep, thats roots profile
<clever> you should see emacs in `sudo nix-env -q`
<matthewcroughan> right, and this does not work the other way around
<clever> root's profile is special, and is in the $PATH for all users
<clever> so when people come from debian, and expect root installing something to be global, it is
<matthewcroughan> nix is so indirect, I would be very surprised if there aren't some incredible exploits awaiting discovery haha
<matthewcroughan> it's such an extra layer on top of already decent knowledge
<clever> there are 3 profiles that executables can come from for each user
<clever> $USER, root, and system
<matthewcroughan> if I manage system with nix-env, will I break stuff?
<clever> only root can modify root and system, and those are also common to every user
<clever> if you use nix-env -i on /nix/var/nix/profiles/system, yes
<clever> other stuff, it depends
<matthewcroughan> system is defined by configuration.nix then?
<clever> yeah
<clever> /nix/var/nix/profiles/system is the system profile, managed by configuration.nix
<matthewcroughan> very good, that all makes perfect sense
<matthewcroughan> it would be nice if there was a tool like `git` for adding to your configuration.nix
<clever> nix-env has 2 main modes it can operate in, declarative and imperative mode
<clever> nix-env -p /nix/var/nix/profiles/per-user/root/rpi3-netboot -f not-os/release.nix -A rpi_image -I nixpkgs=./nixpkgs/ --set
<clever> --set is the declarative mode, used by nixos mainly, but this is an example of using it manually
<zecnate> How do I determine the build/target platform and architecture?
<matthewcroughan> nix config 'pulseaudio.enable = true'; nix commit -m "added pulseaudio.enable because bla bla bla"
<zecnate> Like "linux" "x86_64" ?
<clever> this creates a custom profile called rpi3-netboot
<clever> it then loads not-os/release.nix, while overriding what <nixpkgs> maps to, and fetches the rpi_image attribute of that file
<Ke> I still haven't learned, how to reset user profiles to system profile
<clever> and then it replaces the entire rpi3-netboot profile with whatever it just built
<matthewcroughan> yeah I want that! Ke
<clever> Ke: simplest answer, just use `nix-env -e` to uninstall each thing in `nix-env -q`
<matthewcroughan> I feel like I've muddied up my system enough to want to reset to the baseline of system
<clever> repeat removing things until `nix-env -q` and `sudo nix-env -q` are both blank
<clever> then only configuration.nix will matter
<matthewcroughan> nix env -e * ?
<matthewcroughan> or `nix env -e $(nix env -q)` ?
<clever> $ nix-env -e '.*' (remove everything)
<clever> from the man page for nix-env
<Ke> zecnate: like nix eval '((import <nixpkgs> {}).stdenv.platform.kernelArch)'
Jackneill has quit [Ping timeout: 260 seconds]
<Ke> clever: does this also reset any channels user might have set up?
<clever> Ke: nope, channels are in a seperate channels profile
<clever> Ke: which is normally managed with nix-channel
<Ke> I would even rather disallow users from creating gc handles outside their home
<Ke> so that anything could be reset by removing files from homedir
<Ke> well /tmp or any writable place is ok too
<{^_^}> [nixpkgs] @bjornfor merged pull request #98349 → prometheus: Unbreak IPv6 listenAddress → https://git.io/JUusj
<{^_^}> [nixpkgs] @bjornfor pushed commit from @kirelagin to master « prometheus: Unbreak IPv6 listenAddress »: https://git.io/JUuuZ
<matthewcroughan> "
<matthewcroughan> purpose-built. Nix only exists to be the language for Nix, the package manager. While people have occasionally used it for other use-cases, it is explicitly not a general-purpose language.
<matthewcroughan> clever: "
<matthewcroughan> Whoops.. did't mean that
SanchayanM has joined #nixos
<matthewcroughan> Anyway, what are some of these general purpose uses for nix that people have tried?
<{^_^}> [nixpkgs] @danieldk opened pull request #98373 → [20.09] tensorflow: Fix compilation with numpy 1.19.x → https://git.io/JUuuW
Sanchayan has quit [Ping timeout: 260 seconds]
agb has quit [Quit: Reconnecting]
agb has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #97800 → fontmatrix: 0.6.0 → 0.6.0-qt5 → https://git.io/JUWhf
<{^_^}> [nixpkgs] @vbgl pushed to master « fontmatrix: 0.6.0 → 0.6.0-qt5 (#97800) »: https://git.io/JUuuz
mariatsji has joined #nixos
mariatsji has quit [Remote host closed the connection]
philr has joined #nixos
Jackneill has joined #nixos
<srhb> matthewcroughan: replacing json/yaml/whatnot with a real language is nice.
<srhb> matthewcroughan: And fairly common.
<{^_^}> [nixpkgs] @vbgl merged pull request #98023 → ocamlPackages.apron: 0.9.12 → 0.9.13 → https://git.io/JU4Pe
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.apron: 0.9.12 → 0.9.13 »: https://git.io/JUuuP
<srhb> matthewcroughan: In general, generating config files.
<srhb> When you have many thousands of them, it scales really well :)
JosW has joined #nixos
<matthewcroughan> clever: zecnate: interesting, so a path is actually a datatype in nix?
<Ke> we run tests with it, they kind of map to builds
<Ke> there is even command line parser with help and everything, but no ui
<zecnate> matthewcroughan: Yes. If a derivation has a path attribute or input, it gets copied into the store to ensure immutability/reproducibility.
mmohammadi981261 has joined #nixos
<matthewcroughan> what is "interpolation" zecnate?
<matthewcroughan> # strings support interpolation "Hello ${name}"
growpotkin has quit [Quit: ZNC 1.8.1 - https://znc.in]
<clever> > let name = "clever"; in "hello ${name}"
<{^_^}> "hello clever"
growpotkin has joined #nixos
<{^_^}> [nixpkgs] @vbgl pushed to release-20.09 « fontmatrix: 0.6.0 → 0.6.0-qt5 (#97800) »: https://git.io/JUuud
JosW has quit [Remote host closed the connection]
saschagrunert has joined #nixos
Orbstheorem has joined #nixos
<{^_^}> [nixpkgs] @bjornfor pushed commit from @kirelagin to release-20.09 « prometheus: Unbreak IPv6 listenAddress »: https://git.io/JUuux
cfricke has joined #nixos
<{^_^}> [nixpkgs] @knedlsepp opened pull request #98374 → nvtop: Make independent of Nvidia driver version → https://git.io/JUuuh
<matthewcroughan> > let name = "clever"; in "hello $name"
<{^_^}> "hello $name"
<matthewcroughan> ah neat
<matthewcroughan> clever what about "(common prefix whitespace is dropped)"
<matthewcroughan> for multiline strings
<clever> matthewcroughan: if you make a ''string'' with multiple lines, and 4 spaces at the start of each, all of them are removed
<matthewcroughan> is this a good/bad thing when it happens?
<clever> good
<clever> it lets you indent the nix code, without the resulting config file having extra indent
<matthewcroughan> Ooooh I see
<matthewcroughan> it gets rid of TRAILING whitespace.
<cole-h> No
<clever> leading whitespace
<clever> on each line
<clever> but only the amount of whitespace that is common to each
<matthewcroughan> right, so if I don't indent my code correctly, it will look weird
<matthewcroughan> but if I indent it correctly the resultant config will look fine
growpotkin has quit [Quit: ZNC 1.8.1 - https://znc.in]
Orbstheorem has quit [Ping timeout: 244 seconds]
<matthewcroughan> clever: do lists have to work like this? [ 1 2 3 ]. What will happen if I did [1 2 3]
<cole-h> They're the same.
<cole-h> > [ 1 2 3 ] == [1 2 3]
<{^_^}> true
<matthewcroughan> so the space at the start is not necessary okay
<cole-h> The extra whitespace just makes it look nice
Orbstheorem has joined #nixos
niksnut has joined #nixos
dramaturg has joined #nixos
<matthewcroughan> Okay, last question I think..
<matthewcroughan> What is a recursive attribute set ?
<matthewcroughan> > rec { a = 15; b = a * 2; }
<{^_^}> { a = 15; b = <CODE>; }
<clever> > { cmakeFlags = "--enableWarpDriveOptimizations"; releaseFlags = "${cmakeFlags} --Wall"; } .releaseFlags
<{^_^}> undefined variable 'cmakeFlags' at (string):324:68
<clever> > (rec { cmakeFlags = "--enableWarpDriveOptimizations"; releaseFlags = "${cmakeFlags} --Wall"; }).releaseFlags
<{^_^}> "--enableWarpDriveOptimizations --Wall"
<clever> matthewcroughan: it lets a set refer to its own attributes
domogled has joined #nixos
<matthewcroughan> clever: when would you ever not want this to be possible/
<cole-h> Well, it increases evaluation times IIRC, so it should only be used sparingly.
<matthewcroughan> ah ok
<matthewcroughan> the godot game engine has a custom language called gdscript, which is largely based upon python for this reason
<matthewcroughan> so they have const, in python, basically.
<matthewcroughan> more typing = faster runtime, I assume
<clever> matthewcroughan: when parsing and evaling, nix has a scope chain
<clever> matthewcroughan: so if you do `let foo = "foo"; in { key = expr; }`
<clever> matthewcroughan: there is a foo in the parent scope, and then more in the next scope up the chain
<clever> matthewcroughan: if you never use with, then nix can find typos in your variable names at parse time, and optimize things a little better
<clever> rec slightly complicates the parsing, and i think defers things to eval time
<clever> [root@amd-nixos:~]# nix-instantiate --parse -E 'x: { a=b; }'
<clever> UndefinedVarError
<clever> 1| x: { a=b; }
<clever> matthewcroughan: there was no with statement, so it knew that b doesnt exist, without even knowing what x was
<clever> [root@amd-nixos:~]# nix-instantiate --parse -E 'x: with x; { a=b; }'
<clever> (x: (with x; { a = b; }))
<clever> but now there is a with, so b might be in x
<clever> you wont know until you give it an x, and the answer can differ, depending on what x is
<matthewcroughan> doesn't that mean it's not functional then?
Orbstheorem has quit [Ping timeout: 246 seconds]
<clever> matthewcroughan: it is functional, its just a function, that takes an arg
<clever> the `with` problem is more about this:
<clever> with pkgs; let foo = "foo"; in fop
<clever> if you mis-spell a variable from the let block, and such a variable happens to be a valid package, you get the wrong thing, instead of an error
<clever> > src
<{^_^}> <LAMBDA>
<clever> > pkgs.src.meta.description
<{^_^}> "Simple single-file revision control"
<clever> for example, there is a package called "src", so if you try to do `src = src;` and then mistype src in the let block
<clever> > let scr = "something important"; in { src = src; }
<{^_^}> { src = <CODE>; }
<clever> > :p let scr = "something important"; in { src = src; }
<{^_^}> { src = <LAMBDA>; }
<clever> thats not the src you wanted, and because of pkgs.src exists, it leaked in and covered the scr mistake
mariatsji has joined #nixos
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
<matthewcroughan> clever: okay, so to evaluate this
<matthewcroughan> nix-shell -p 'dolphinEmuMaster.overrideAttrs (old: rec { src = builtins.fetchGit "https://github.com/dolphin-emu/dolphin"; version = "dolphin-really-master"; cmakeFlags = [ "-DUSE_SHARED_ENET=ON" "-DENABLE_LTO=ON" "-DDOLPHIN_WC_REVISION=${src.rev}" "-DDOLPHIN_WC_DESCRIBE=really-master" "-DDOLPHIN_WC_BRANCH=master" ]; })'
<matthewcroughan> what is .overrideAttrs
<clever> a function, to override the attributes of dolphinEmuMaster
<matthewcroughan> how do we know whether this will exist?
<clever> you give it another function, which takes a set, and returns the things to change
<matthewcroughan> how do you see all member functions of a nixpkg?
<clever> tab completion, docs
<clever> > builtins.attrNames dolphinEmuMaster
<{^_^}> [ "__ignoreNulls" "all" "args" "buildInputs" "builder" "cmakeFlags" "configureFlags" "depsBuildBuild" "depsBuildBuildPropagated" "depsBuildTarget" "depsBuildTargetPropagated" "depsHostHost" "depsHostH...
<clever> and that
<clever> in `nix repl '<nixpkgs>'` do `dolphinEmuMaster.<tab><tab>`
ManiacOfMadness has joined #nixos
marusich has joined #nixos
<matthewcroughan> I do not see overrideAttrs defined anywhere in https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/emulators/dolphin-emu/master.nix
<clever> matthewcroughan: stdenv.mkDerivation adds it to every single package
<clever> it will be in the nixpkgs manual
<matthewcroughan> so derivations have functions
<matthewcroughan> and there is a set of functions that are applied to all deriviations
<matthewcroughan> nixos development would be comprised largely of adding to the quality and quantity of these functions?
<clever> stdenv.mkDerivation is a function that takes a set of attributes, and makes a derivation
<clever> it also adds helpers like overrideAttrs to that derivation
<matthewcroughan> is there a list of all the functions you will be guaranteed to have inside a derivation?
<clever> that would be in the nixpkgs manual
marusich has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @roberth merged pull request #97119 → Introduce `types.anything` → https://git.io/JU35R
<{^_^}> [nixpkgs] @roberth pushed 6 commits to master: https://git.io/JUuzb
<{^_^}> [nixpkgs] @avdv opened pull request #98375 → [20.09] Backport fix for tensorflow 1 → https://git.io/JUuzh
cole-h has quit [Quit: Goodbye]
Orbstheorem has joined #nixos
<{^_^}> [nixpkgs] @avdv closed pull request #98375 → [20.09] Backport fix for tensorflow 1 → https://git.io/JUuzh
cfricke has quit [Ping timeout: 258 seconds]
sputny has joined #nixos
<zecnate> If I change a derivation expression code, but it evaluates to exactly the same result as a previous `nix-build`, is that considered already cached? (All build inputs are unchanged.)
cr4y1 has joined #nixos
cr4y1 has quit [Remote host closed the connection]
cr4y1 has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<clever> zecnate: yeah
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
cfricke has joined #nixos
<zecnate> Woah dude. That blows my mind.
<zecnate> That's awesome!
f0i has joined #nixos
<srhb> zecnate: (The key is in "evaluates" -- that is, it produces the exact same drv)
Orbstheorem has quit [Ping timeout: 272 seconds]
<zecnate> Ok, good to know.
<dminuoso> zecnate: Roughly, a derivation is similar to a makefile in that it represents a way to build something for the nix store.
<dminuoso> It is not important how you express that, but the actual value of that derivation
mmohammadi981261 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
<dminuoso> Feel free to look inside a derivation inside the nix store, this might help you understand better what a derivation is and why this caching works the way it does.
mmohammadi9812 has joined #nixos
<dminuoso> Use `nix show-derivation` :)
lafa has joined #nixos
lsix has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #98226 → [20.09] streamlit: fix build → https://git.io/JU0QS
<{^_^}> [nixpkgs] @jonringer pushed to release-20.09 « streamlit: fix build »: https://git.io/JUug5
<zecnate> I have a strong suspicion that as I'm learning nix and working on my project I'm reinventing a bunch of wheels.
<zecnate> I think after I get it working, I'll learn how to streamline all my expressions and hopefully remove most/all build scripts using standard conventions.
<dminuoso> (Note by derivation I do not mean the code `mkDerivation ...`, but the actual artifact that comes out of it)
<{^_^}> [nixpkgs] @max-wittig opened pull request #98377 → gitlab-runner: 13.3.1 -> 13.4.0 → https://git.io/JUugx
oida has quit [Ping timeout: 240 seconds]
civodul has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/2a14d21224f (from 4 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<{^_^}> [nixpkgs] @r-burns opened pull request #98378 → [20.09] iproute_mptcp: fix preConfigure → https://git.io/JUu2T
oida has joined #nixos
alp has joined #nixos
Orbstheorem has joined #nixos
Peter_Storm has joined #nixos
<Peter_Storm> Hello, can someone help me find where libgthread is located in nix? 😅
<Peter_Storm> I read something about maybe having to do some patchelf stuff to make it available to my shell... but I’m in over my head 😅
<clever> ,locate libgthread
<{^_^}> Found in packages: glib, glib.debug, signal-desktop
<clever> Peter_Storm: its in glib
<Peter_Storm> Oh, I have glib installed
<Peter_Storm> Sorry
<Peter_Storm> But opencv from Python doesn’t seem to be able to see it
<clever> Peter_Storm: installing it wont make it available to everything, try `nix-shell -p glib`
<Peter_Storm> I’ve exposed some paths in the shell hook
<clever> did you add glib to the buildInputs ?
<Peter_Storm> Nope, I’ll try that, thank you
<clever> ,libraries Peter_Storm
<{^_^}> Peter_Storm: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<Peter_Storm> Roger, thanks guys l, I’ll see if I can make it work
<Peter_Storm> Yeah, it still doesn’t work :(
<Peter_Storm> It’s opencv from Python that apparently can’t see it in the shell
<clever> you may need to set LD_LIBRARY_PATH=${glib}/lib in the shellHook then
<Peter_Storm> Ah makes sense, I’ll see if I can figure that out
<Peter_Storm> Nope, that didn’t work either... maybe I’m doing it wrong?
<Peter_Storm> Sorry, it’s an actual picture 😍
<clever> you forgot the export keyword
<Peter_Storm> Still can’t find it :(
bahamas has quit [Ping timeout: 256 seconds]
<clever> Peter_Storm: what is the error?
<{^_^}> [nixpkgs] @hannesweisbach opened pull request #98379 → fontconfig: Add CoreFoundation to buildInputs → https://git.io/JUuaC
<Peter_Storm> Sorry, again actual picture
<clever> and what is line ?? of ?? doing ?
<clever> (the image cut the filename off)
<Peter_Storm> Ah, it’s the opencv library from Python
<Peter_Storm> I’ve been solving files it needs all morning
<Peter_Storm> First it couldn’t find libGL
<clever> if you run ldd on that library, what does it say?
<Peter_Storm> How do I do that?
<clever> run the ldd command on that path
<Peter_Storm> It’s just a .py file
<clever> what is the problematic line doing?
<Peter_Storm> Well, that’s just the import that OpenCV needs
<Peter_Storm> It needs that file
<Peter_Storm> Like it needed libGL
<Peter_Storm> Which is fixed
<clever> it needs which file?
<clever> how is it importing it?
<Peter_Storm> the libgthread file
<clever> have you tried not doing `source env/bin/activate` when you open the shell?
<Peter_Storm> Nope, but then I don’t have access to all the other stuff I need for running it :(
<Peter_Storm> But again
<clever> what other stuff?
<Peter_Storm> I fixed the other errors in the shell hook
<Peter_Storm> Like torch
<Peter_Storm> And gym[atari]
<Peter_Storm> Python packages
<clever> add that to the python.withPackages ?
<Peter_Storm> But they are not the correct ones
<Peter_Storm> And some of them are not available
<clever> i suspect that the opencv you got from virtualenv is "broken" and wont work with nix
<clever> but the opencv nix gives you, will just work
reptarmigan has joined #nixos
<Peter_Storm> I have the one from nix
bahamas has joined #nixos
<clever> https://usercontent.irccloud-cdn.com/file/flgpH0Xf/1600674116.JPG what is the filename on the bottom of the backtrace?
<{^_^}> [nixpkgs] @vcunat pushed 264 commits to staging-20.09: https://git.io/JUuaH
<Peter_Storm> That’s the file I need from glib
<clever> what is the filename?
<clever> the one in env/lib/python3.6/site-pack....
<Peter_Storm> That’s the opencv library that tries to import the file
<clever> what is the name of that file?
<Peter_Storm> __init__.py
<Peter_Storm> It’s just normal Python stuff
<Peter_Storm> But as I said
<Peter_Storm> I exposed all the other files it needed in the shell hook
<Peter_Storm> And that worked
<{^_^}> [nixpkgs] @vbgl merged pull request #98164 → ocamlPackages.zarith: 1.9 -> 1.10 → https://git.io/JURQB
<clever> what other files are in that directory?
<{^_^}> [nixpkgs] @vbgl pushed commit from @Zimmi48 to master « ocamlPackages.zarith: 1.9 -> 1.10 »: https://git.io/JUuax
<Peter_Storm> So its because I’m not exposing the libgthread file correctly
<Peter_Storm> Other Python files
<clever> if you `echo $LD_LIBRARY_PATH`, what is the path for glib?
<Peter_Storm> It’s something in the store
<Peter_Storm> But ah
<Peter_Storm> The rest might not be correct
<Peter_Storm> There’s another bin folder
<clever> i think you want ${glib.out}
<clever> /lib
<Peter_Storm> Ah, I’ll try that :)
<Peter_Storm> Yes!
<Peter_Storm> Thank you!
<Peter_Storm> Now it needs another file at least, haha, I hate this, but it worked what you suggested :)
nixuser has joined #nixos
zecnate has quit [Remote host closed the connection]
sangoma has quit [Read error: Connection reset by peer]
thc202 has joined #nixos
zecnate has joined #nixos
<zecnate> I'm not passing `builder` to a `mkDerivation` for an autotools project. Can I pass specific `./configure` options? How? Where do I read about this?
<clever> zecnate: configureFlags = [ "--foo" ];
Darkmatter66_ has joined #nixos
<zecnate> Also, I have some common patterns for some autotools dependencies, but I am currently writing manual builders. One pattern: "apply a bunch of patches before ./configure stage".
Darkmatter66 has quit [Ping timeout: 260 seconds]
<zecnate> clever: Thanks. Where is that documented?
knupfer has joined #nixos
<clever> zecnate: nixpkgs manual
<clever> zecnate: https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L952 is the default way configure gets ran
<{^_^}> [nixpkgs] @doronbehar merged pull request #98204 → bluej: init at 4.2.2 → https://git.io/JU0Eu
<{^_^}> [nixpkgs] @doronbehar pushed 3 commits to master: https://git.io/JUuVr
<zecnate> Thanks!
<{^_^}> [nixpkgs] @peti pushed to master « untrunc: update to latest git version »: https://git.io/JUuVX
knupfer has quit [Client Quit]
knupfer has joined #nixos
devalot has quit [Ping timeout: 264 seconds]
sputny has quit [Quit: sputny]
sputny has joined #nixos
<zecnate> Different question: I want to make a derivation whose source is a git repo, and I want the `version` attr to be calculated based on git tags. Is this possible?
<zecnate> The derivation expression is inside the git repo...
<clever> zecnate: builtins.fetchGit ./. will return a set containing the git rev
<clever> zecnate: lib.commitIdFromGitRepo can also do it
<zecnate> Nice! That's a start.
<zecnate> How can I dump all attrs of a set? I've been playing with `pkgs.lib.debug` but often they are unevaluated thunks...
zecnate has quit [Remote host closed the connection]
<clever> you can run nix repl on the file, and then just eval any attr
sangoma has joined #nixos
<{^_^}> [nixpkgs] @r-burns opened pull request #98380 → lizardfs: fix build → https://git.io/JUuwL
<{^_^}> [nixos-homepage] @raboof opened pull request #547 → Don't break '60 000' → https://git.io/JUuwE
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
orivej has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
cr4y1 has quit [Read error: Connection reset by peer]
cr4y1 has joined #nixos
<reptarmigan> Hey, I'm pretty new to nixos (installed it last night) I'm really liking it, I was wondering if anyone could help me figure out a funny ecryptfs issue, or more specifically a mount argument issue
cr4y1 has quit [Read error: Connection reset by peer]
cr4y1 has joined #nixos
<reptarmigan> If i try to recover my ubuntu ecryptfs home directory using the ecryptfs-recover-private command I have mount returning "mount: Max 2 arguments"
domogled has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @teto merged pull request #98378 → [20.09] iproute_mptcp: fix preConfigure → https://git.io/JUu2T
<{^_^}> [nixpkgs] @teto pushed commit from @r-burns to release-20.09 « iproute_mptcp: fix preConfigure (#97747) (#98378) »: https://git.io/JUurY
<reptarmigan> Ahaha, I knew if I poked at it long enough I would get it
f0i has quit [Remote host closed the connection]
f0i has joined #nixos
f0i has quit [Remote host closed the connection]
f0i has joined #nixos
f0i has quit [Remote host closed the connection]
<reptarmigan> I think there's probably an issue with the way ecryptfs-recover-pirvate operates, I'll poke around and see if I can document
<{^_^}> [nixpkgs] @avdv opened pull request #98381 → fritzing: 0.9.3b -> 0.9.4 → https://git.io/JUuru
zebrag has joined #nixos
inkbottle has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @doronbehar merged pull request #91745 → beets: add extrafiles plugin → https://git.io/JJvV1
<{^_^}> [nixpkgs] @doronbehar pushed 2 commits to master: https://git.io/JUur1
sgrunert has joined #nixos
HedgeMage has quit [Remote host closed the connection]
HedgeMage has joined #nixos
sputny has quit [Quit: sputny]
drvirgilio has quit [Ping timeout: 244 seconds]
drvirgilio has joined #nixos
saschagrunert has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @gvolpe opened pull request #98382 → dconf2nix: 0.0.5 -> 0.0.6 → https://git.io/JUuoe
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.38 « squash! gjs: 1.64.4 -> 1.66.0 »: https://git.io/JUuoL
sangoma has quit [Quit: WeeChat 2.9]
sangoma has joined #nixos
<{^_^}> [nixpkgs] @flokli closed pull request #72802 → More flexible systemd expression for minimal builds → https://git.io/Je26U
<{^_^}> [nixos-homepage] @garbas pushed to nix-shell-in-recordings « nix-shell in recordings should be (green) the same »: https://git.io/JUuor
<{^_^}> [nixos-homepage] @garbas opened pull request #548 → nix-shell in recordings should be (green) the same → https://git.io/JUuoK
boxscape has joined #nixos
dermetfan has joined #nixos
<{^_^}> [nixos-homepage] @garbas merged pull request #547 → Don't break '60 000' → https://git.io/JUuwE
<{^_^}> [nixos-homepage] @garbas pushed 2 commits to master: https://git.io/JUuo9
cr4y1 has quit [Read error: Connection reset by peer]
<{^_^}> [nixos-homepage] @garbas merged pull request #548 → nix-shell in recordings should be (green) the same → https://git.io/JUuoK
<{^_^}> [nixos-homepage] @garbas pushed 2 commits to master: https://git.io/JUuoQ
<{^_^}> [nixos-homepage] @garbas pushed 0 commits to nix-shell-in-recordings: https://git.io/JUuo7
astylian has quit [Remote host closed the connection]
veleiro has quit [Ping timeout: 264 seconds]
cr4y1 has joined #nixos
<{^_^}> [nixos-homepage] @garbas pushed to h1-space-on-mobile « on mobile page have less margin-bottom between page-title and content »: https://git.io/JUuKf
<{^_^}> [nixos-homepage] @garbas opened pull request #549 → on mobile page have less margin-bottom between page-title and content → https://git.io/JUuKU
sigmundv_ has joined #nixos
pf has quit [Ping timeout: 264 seconds]
pf has joined #nixos
werner291 has joined #nixos
<Ke> don't ask to ask, just state your problem
<Ke> reptarmigan: if you just use mount command, nixos is like any other distro
<Ke> what is the exact command you are running?
teto has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.38 « squash! gnome-tour: 0.0.1 -> 3.38.0 »: https://git.io/JUuKE
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.38 « squash! gnome-tour: 0.0.1 -> 3.38.0 »: https://git.io/JUuKz
tbe has joined #nixos
sputny has joined #nixos
cosimone has joined #nixos
<{^_^}> [nixos-org-configurations] @edolstra pushed to master « Remove t4a »: https://git.io/JUuK9
<{^_^}> [nixos-org-configurations] @edolstra pushed 2 commits to master: https://git.io/JUuK7
<{^_^}> [nixos-org-configurations] @edolstra merged pull request #122 → removing nixos-org folder since the website is moved to netlify → https://git.io/JURtF
<{^_^}> [nixos-org-configurations] @edolstra pushed 0 commits to remove-nixos-org: https://git.io/JUuK5
pingiun has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bahamas has quit [Ping timeout: 272 seconds]
sputny1 has joined #nixos
<Peter_Storm> ,locate GLU
sputny1 has quit [Client Quit]
<{^_^}> Found in packages: openscenegraph, haskellPackages.GLURaw, haskellPackages.OpenGL, python27Packages.pyopengl, python37Packages.pyopengl, python38Packages.pyopengl
spudly- has joined #nixos
spudly- has joined #nixos
spudly- has quit [Changing host]
marek has quit [Changing host]
marek has joined #nixos
spudly has quit [Ping timeout: 272 seconds]
spudly- is now known as spudly
nikivi has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
nikivi has joined #nixos
dstzd has quit [Quit: ZNC - https://znc.in]
dstzd has joined #nixos
dstzd has joined #nixos
dstzd has quit [Changing host]
<Ke> how does this locate work?
<Ke> if there some database of package contents available for nixos build
ad__ has joined #nixos
<bqv> it uses nix-locate
<bqv> which may or may not still be broken
mmohammadi9812 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
stree has quit [Quit: Caught exception]
stree has joined #nixos
<{^_^}> [nix] @edolstra merged pull request #4036 → nix-prefetch-url: Add --executable flag → https://git.io/JU0yh
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/JUuim
alp has quit [Remote host closed the connection]
alp has joined #nixos
meh` has joined #nixos
<{^_^}> [nixpkgs] @raboof opened pull request #98383 → openjdk: add derivation to generate bespoke minimal JRE's → https://git.io/JUuiE
<{^_^}> [nix] @edolstra merged pull request #4023 → Fix the nix-daemon Mac OS SSL CA cert → https://git.io/JUBj8
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/JUuiu
<{^_^}> [nixos-homepage] @Profpatsch opened pull request #552 → news.xml: fix links as far as possible → https://git.io/JUuia
cosimone has quit [Quit: Quit.]
bahamas has joined #nixos
cosimone has joined #nixos
sangoma has quit [Ping timeout: 260 seconds]
sangoma has joined #nixos
pf has quit [Ping timeout: 258 seconds]
bahamas has quit [Ping timeout: 260 seconds]
pf has joined #nixos
cosimone has quit [Quit: Quit.]
cosimone has joined #nixos
acarrico has quit [Ping timeout: 272 seconds]
meh` has quit [Ping timeout: 272 seconds]
meh` has joined #nixos
<{^_^}> [nixpkgs] @prusnak opened pull request #98384 → slack: 4.8.0 -> 4.9.1 → https://git.io/JUuPl
nikivi has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
joesventek has quit [Quit: Quit]
dstzd has quit [Quit: ZNC - https://znc.in]
sputny has quit [Remote host closed the connection]
srhm has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
nikivi has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
joesventek has joined #nixos
nikivi has quit [Client Quit]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
joesventek has quit [Client Quit]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<{^_^}> [nix] @regnat opened pull request #4043 → Update lowdown version → https://git.io/JUuP9
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<{^_^}> [nix] @edolstra merged pull request #4043 → Update lowdown version → https://git.io/JUuP9
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/JUuPH
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
bahamas has joined #nixos
bahamas has joined #nixos
bahamas has quit [Changing host]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
nikivi has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
joesventek has joined #nixos
<{^_^}> [nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUuPx
Pidgeotto has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
bahamas has quit [Ping timeout: 256 seconds]
nikivi has quit [Client Quit]
joesventek has quit [Client Quit]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
cosimone has quit [Remote host closed the connection]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
cosimone_ has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
arianvp has quit [Quit: WeeChat 2.7.1]
<{^_^}> [nixpkgs] @marsam merged pull request #98360 → liboping: fix build on Darwin → https://git.io/JUulO
Pidgeotto has joined #nixos
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUuXJ
Pidgeotto has quit [Excess Flood]
arianvp has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
<{^_^}> [nixpkgs] @marsam pushed commit from @r-burns to release-20.09 « liboping: fix build on Darwin »: https://git.io/JUuXU
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
lb5tr has quit [Ping timeout: 272 seconds]
dstzd has joined #nixos
dstzd has joined #nixos
dstzd has quit [Changing host]
Pidgeotto has joined #nixos
joesventek has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #98355 → [20.09] vmmlib: fix build → https://git.io/JUuG6
<{^_^}> [nixpkgs] @marsam pushed 2 commits to release-20.09: https://git.io/JUuXk
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<{^_^}> [nixpkgs] @marsam merged pull request #98367 → shadowsocks-rust: 1.8.17 -> 1.8.18 → https://git.io/JUu0n
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUuXI
nikivi has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #98364 → singularity: 3.6.2 -> 3.6.3 → https://git.io/JUu8N
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUuXY
<{^_^}> [nixpkgs] @marsam merged pull request #98346 → gallery-dl: 1.14.5 -> 1.15.0 → https://git.io/JUuOh
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUuXO
<{^_^}> [nixpkgs] @marsam merged pull request #98344 → [20.09] openssh_hpn: fix source → https://git.io/JUuYH
<{^_^}> [nixpkgs] @marsam pushed 2 commits to release-20.09: https://git.io/JUuXl
knupfer has joined #nixos
kolaente_ has joined #nixos
<{^_^}> [nixpkgs] @WilliButz merged pull request #98374 → nvtop: Make independent of Nvidia driver version → https://git.io/JUuuh
<{^_^}> [nixpkgs] @WilliButz pushed 2 commits to master: https://git.io/JUuX2
<{^_^}> [nixpkgs] @Profpatsch merged pull request #95714 → Duplicity fix b2 backend → https://git.io/JJbUE
<{^_^}> [nixpkgs] @Profpatsch pushed 2 commits to master: https://git.io/JUuXo
<{^_^}> [nix] @edolstra pushed to master « Disable precompiled headers in 'nix develop' »: https://git.io/JUuXP
terrorjack has quit []
<{^_^}> [nixpkgs] @marsam merged pull request #98284 → linuxPackages.xpadneo: 0.8.2 -> 0.8.3 → https://git.io/JUElP
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUuXH
<{^_^}> [nixpkgs] @marsam pushed commit from @MetaDark to release-20.09 « linuxPackages.xpadneo: 0.8.2 -> 0.8.3 »: https://git.io/JUuXF
never_released_ has joined #nixos
never_released has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #98380 → lizardfs: fix build → https://git.io/JUuwL
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUuXh
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.38 « networkmanager: fix build »: https://git.io/JUu1e
<{^_^}> [nixpkgs] @marsam pushed commit from @r-burns to release-20.09 « lizardfs: fix build »: https://git.io/JUu1v
dermetfan has quit [Quit: WeeChat 2.7.1]
iqubic` has joined #nixos
iqubic has quit [Ping timeout: 260 seconds]
teto has quit [Ping timeout: 272 seconds]
<{^_^}> Channel nixos-20.09-small advanced to https://github.com/NixOS/nixpkgs/commit/775b368bb94 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-20.09-small)
sangoma has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @marsam merged pull request #98348 → gitAndTools.git-imerge: 1.1.0 -> 1.2.0 → https://git.io/JUus4
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUu1w
sangoma has joined #nixos
meh` has quit [Ping timeout: 246 seconds]
nikivi has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
dstzd has quit [Quit: ZNC - https://znc.in]
waleee-cl has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
joesventek has quit [Quit: Quit]
terrorjack has joined #nixos
Peter_Storm has quit [Quit: Connection closed for inactivity]
nikivi has joined #nixos
dstzd has joined #nixos
dstzd has joined #nixos
dstzd has quit [Changing host]
joesventek has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
<{^_^}> [nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUuMf
<{^_^}> [nixpkgs] @oxalica opened pull request #98387 → nix-prefetch: fix compatibility with nixUnstable again → https://git.io/JUuMJ
alexherbo2 has joined #nixos
<kolaente_> Hey there, I'm trying to get a newer kernel on my system but can't get it to work. I simply assumed sticking boot.kernelPackages = pkgs.linuxPackages_latest; in my configuration.nix would be enough, but I get compilation errors (?) about time_t not being known when rebuilding
<kolaente_> This seems a bit odd to me since I thought the kernels would be pre built
<kolaente_> But it seems I missed some header files somewhere?
<{^_^}> [nixpkgs] @marsam merged pull request #98271 → fuzzel: 1.4.1 → 1.4.2 → https://git.io/JUEGV
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUuMm
superherointj has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #97813 → zeek: Fix zeek script coreutils and hardlinking → https://git.io/JUlUp
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JUuMG
boxscape has quit [Quit: Connection closed]
<{^_^}> [nixpkgs] @primeos merged pull request #98318 → androidStudioPackages.{dev,canary}: 4.2.0.10 -> 4.2.0.11 → https://git.io/JUExB
<{^_^}> [nixpkgs] @primeos pushed commit from @meutraa to master « androidStudioPackages.{dev,canary}: 4.2.0.10 -> 4.2.0.11 »: https://git.io/JUuMW
cfricke has quit [Quit: WeeChat 2.9]
gustavderdrache has joined #nixos
iqubic` has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
karantan has joined #nixos
<karantan> hey, is anyone interested in adding goss package to nix packages? (goss is a quick and easy server validation tool. see https://github.com/aelsabbahy/goss)
<karantan> I've already forked the repo and created a nix package. see https://github.com/karantan/goss/tree/add/nix-package-v3
f0i has joined #nixos
<karantan> I've created one package for nix packages already: https://github.com/NixOS/nixpkgs/pull/81492/ but I'll still need help with this one because it's in golang
f0i has quit [Remote host closed the connection]
rprije has quit [Ping timeout: 260 seconds]
<karantan> I know I have to create a similar PR to this one: https://github.com/NixOS/nixpkgs/pull/81492/files but with this content: https://github.com/karantan/goss/blob/add/nix-package-v3/default.nix
<{^_^}> [nixpkgs] @marsam opened pull request #98388 → mruby: 2.1.1 -> 2.1.2 → https://git.io/JUuMA
f0i has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg merged pull request #98365 → f3: clean-ups and compile on darwin → https://git.io/JUu4Z
<{^_^}> [nixpkgs] @peterhoeg pushed to master « f3: clean-ups and compile on darwin (#98365) »: https://git.io/JUuMh
<karantan> obviously it's not that simple. so if anyone is interesting in goss and merging this package upstream pls ping me
meh` has joined #nixos
kolaente_ has quit [Quit: WeeChat 2.7.1]
<simpson> It *is* that simple. Look at other Go applications in nixpkgs for inspiration and examples.
<{^_^}> [nixpkgs] @vbgl pushed commit from @Zimmi48 to release-20.09 « ocamlPackages.zarith: 1.9 -> 1.10 »: https://git.io/JUuDT
Rusty1 has joined #nixos
rihards has quit [Quit: rihards]
kgriffin has quit [Quit: ZNC 1.7.5 - https://znc.in]
kgriffin has joined #nixos
<{^_^}> [nixpkgs] @lsix opened pull request #98389 → pythonPackages.django: 2.2.15 -> 2.2.16 (for CVE-2020-24583 CVE-2020-24584) → https://git.io/JUuDV
<f0i> I am trying to run the demo from https://github.com/gfx-rs/wgpu-rs , but it can't find an "Adapter"
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
f0i has quit [Remote host closed the connection]
f0i has joined #nixos
AndroUser has joined #nixos
meh` has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @stigtsp merged pull request #98359 → perlPackages.HamAPRSFAP: init at 1.21 → https://git.io/JUulY
<{^_^}> [nixpkgs] @stigtsp pushed 2 commits to master: https://git.io/JUuDD
f0i has quit [Remote host closed the connection]
acarrico has joined #nixos
f0i has joined #nixos
karantan has joined #nixos
karantan has quit [Client Quit]
bahamas has joined #nixos
bahamas has joined #nixos
bahamas has quit [Changing host]
f0i has quit [Read error: Connection reset by peer]
f0i has joined #nixos
reptarmigan has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @zimbatm merged pull request #98377 → gitlab-runner: 13.3.1 -> 13.4.0 → https://git.io/JUugx
<{^_^}> [nixpkgs] @zimbatm pushed commit from @max-wittig to master « gitlab-runner: 13.3.1 -> 13.4.0 (#98377) »: https://git.io/JUuyk
bahamas has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @danieldk opened pull request #98390 → freeoffice: 976 -> 978 → https://git.io/JUuyC
<{^_^}> [nixpkgs] @drewrisinger opened pull request #98391 → pythonPackages.pecan: 1.3.3 -> 1.4.0, fix build; pythonPackages.WSME: fix build → https://git.io/JUuyl
dada_da has joined #nixos
da_dada has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @leenaars opened pull request #98392 → Sylk: 3.8.0 -> 3.8.4 → https://git.io/JUuyE
srhm has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @drewrisinger opened pull request #98393 → pythonPackages.Mako: cleanup & enable tests → https://git.io/JUuyu
srhm has joined #nixos
<{^_^}> [nixpkgs] @buffet opened pull request #98394 → kakounePlugins.kakoune-gdb: init at 2019-11-24 → https://git.io/JUuyo
czer00 has joined #nixos
reptarmigan has joined #nixos
astylian has joined #nixos
lordcirth has quit [Read error: Connection reset by peer]
lordcirth_ has joined #nixos
ottidmes has quit [Ping timeout: 258 seconds]
lb5tr has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #91170 → apache-kafka: 2.4.0 -> 2.4.1/2.5.0 → https://git.io/Jfb1X
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/JUuSI
ottidmes has joined #nixos
<{^_^}> [nixpkgs] @jtobin opened pull request #98395 → vimPlugins.hoon-vim: init at 2020-02-19 → https://git.io/JUuSL
lordcirth_ has quit [Remote host closed the connection]
lordcirth_ has joined #nixos
karantan has joined #nixos
lordcirth_ has quit [Remote host closed the connection]
meh` has joined #nixos
<{^_^}> [nixpkgs] @petabyteboy opened pull request #98396 → duf: init at 0.1.0 → https://git.io/JUuS3
lordcirth has joined #nixos
bahamas has joined #nixos
mmohammadi9812 has joined #nixos
veleiro has joined #nixos
alp has quit [Ping timeout: 240 seconds]
bahamas has quit [Ping timeout: 246 seconds]
werner291 has quit [Ping timeout: 240 seconds]
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @mmahut merged pull request #98384 → slack: 4.8.0 -> 4.9.1 → https://git.io/JUuPl
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/JUuSQ
ManiacOfMadness has quit [Ping timeout: 246 seconds]
AndroUser has quit [Ping timeout: 258 seconds]
alp has joined #nixos
<{^_^}> [nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUu9t
f0i has quit [Remote host closed the connection]
ManiacOfMadness has joined #nixos
<siraben> Wow, nix-pills looks different https://nixos.org/guides/nix-pills/index.html
<siraben> Is it just cosmetic or has the content changed as well?
SanchayanM has quit [Quit: leaving]
fendor has joined #nixos
teto has joined #nixos
<etu> I think it's mostly cosmetic, and it's changed together as nixos.org changed I think :)
<etu> nixos.org is so much better now
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.38 « squash! gnome3.tali: 3.36.4 -> 3.38.0 »: https://git.io/JUuHn
szicari has quit [Ping timeout: 256 seconds]
<LambdaDuck> If I want to fix an issue on a package, should I open an issue for it first and then submit a pull request, or is just the pull request sufficient?
lunik1 has quit [Quit: :x]
<siraben> etu: wow, it is.
orivej has joined #nixos
yodeler has joined #nixos
lunik1 has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.38 « squash! gnome3.gnome-mahjongg: 3.36.2 -> 3.37.1 »: https://git.io/JUuHQ
werner291 has joined #nixos
ydlr has quit [Ping timeout: 260 seconds]
ddellacosta has joined #nixos
lunik1 has quit [Client Quit]
<{^_^}> [nixpkgs] @Gerschtli closed pull request #98165 → Update jetbrains products → https://git.io/JUR7w
lunik1 has joined #nixos
ad__ has left #nixos ["Leaving"]
ydlr__ has joined #nixos
ydlr__ has quit [Client Quit]
ydlr has joined #nixos
Denommus has joined #nixos
<Denommus> hello
<Denommus> I'm trying to configure Nvidia PRIME properly on my machine. And it seems to work well as of now
<Denommus> but I just noticed, with nvidia-smi, that my X server is in fact running on my nvidia
<Denommus> and I expected it to run over my Intel, and only with nvidia-offload to have processes on my nvidia
nixuser has quit [Ping timeout: 260 seconds]
yodeler has quit [Ping timeout: 272 seconds]
Denommus` has joined #nixos
Denommus has quit [Read error: Connection reset by peer]
Denommus` is now known as Denommus
karantan has joined #nixos
Sanchayan has joined #nixos
karantan has quit [Client Quit]
pingiun has joined #nixos
yodeler has joined #nixos
yodeler has quit [Client Quit]
<lordcirth> I have my machines configured via flake, using nixpkgs = 20.03. How can I pull in a few newer packages from unstable?
<lordcirth> (I could switch everything to unstable, but I'd prefer not to)
<infinisil> ,unstable lordcirth
<{^_^}> lordcirth: How to install from unstable while remaining on stable: https://nixos.wiki/wiki/FAQ#How_can_I_install_a_package_from_unstable_while_remaining_on_the_stable_channel.3F . Also note that there's nixpkgs-unstable and nixos-unstable
hnOsmium0001 has joined #nixos
ydlr has quit [Ping timeout: 272 seconds]
<lordcirth> infinisil, yes, I know how to do it normally, but I don't know how to do it in a flake. You can't import "<>" stuff
<Denommus> if anyone can give me insight I'd appreciate
ydlr has joined #nixos
<lordcirth> I need to somehow pass the nixpkgs-unstable into the ./ipfs.nix file?
<infinisil> lordcirth: Ah true, I don't use flakes myself, but you'd probably add another nixpkgs input with an alternate name
<lordcirth> Yeah, adding the input is done, I just need to figure out how to use it
Denommus has quit [Quit: ERC (IRC client for Emacs 27.1)]
<infinisil> lordcirth: I guess the easiest would be to just add a module in your flake.nix to the nixosSystem function that does `{ environment.systemPackages = [ inputs.altNixpkgs.foo ]; }`
bahamas has joined #nixos
<infinisil> `modules = ... ++ [ { environment.systemPackages = ...; } ]`
<lordcirth> Hmm, ok. But I already have an ipfs.nix file and I'd *prefer* to keep everything IPFS in there...
<lordcirth> Maybe I can just pass it in, I'll try
<infinisil> lordcirth: I suggest doing `{ _module.args.inputs = inputs; }` then
cjpbirkbeck has joined #nixos
<infinisil> You can then use `{ inputs, lib, pkgs, config, ... }` in the ipfs.nix module, and use `inputs.altNixpkgs` within it
<lordcirth> Does that supply it as an arg to all modules?
<lordcirth> Hmm, that sounds good
<lordcirth> That goes parallel to modules = [] ?
<infinisil> Yeah it passes it to all modules
<infinisil> lordcirth: `modules = [ ... ] ++ [ { _module.args = ...; } ]`
<lordcirth> Oh, it's part of the module list?
<infinisil> Yeah
pingiun has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lordcirth> undefined variable 'inputs'
<infinisil> `_module.args` is a NixOS option like any other actually, it's just one added internally
mekster has quit [Read error: Connection reset by peer]
<lordcirth> Thanks, it seems very handy (once I figure it out)
<infinisil> lordcirth: Well you need to actually refer to the inputs in your flakes
<infinisil> Whatever the variable name is
<lordcirth> What do you mean? This is in flake.nix and inputs is defined at the top
<infinisil> Hm I think maybe `outputs = inputs@{ self, whatever }:`
<lordcirth> I'll try, what does "inputs@" do?
zebrag has quit [Remote host closed the connection]
<lordcirth> Well, it parsed and it's downloading stuff!
zebrag has joined #nixos
mekster has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #97133 → Improve `generators.toPretty` → https://git.io/JU3ja
<{^_^}> [nixpkgs] @Infinisil pushed 8 commits to master: https://git.io/JUu55
<{^_^}> [nixpkgs] @lunik1 opened pull request #98399 → fdkaac: 1.0.0 → v1.0.1 → https://git.io/JUu5x
emmanuel_erc has joined #nixos
<lordcirth> infinisil, ok, so it built, but when I change to "environment.systemPackages = [ inputs.nixpkgs-unstable.ipfs-migrator ];" it says "attribute 'ipfs-migrator' missing". Do I need to do something to the repo to use it?
<{^_^}> [nixpkgs] @doronbehar opened pull request #98400 → bump: init at 0.2.2 → https://git.io/JUudJ
<lordcirth> inputs.nixpkgs-unstable.pkgs.ipfs-migrator didn't work either
<lordcirth> And yes it does exist in unstable, I checked
<{^_^}> [nixpkgs] @magnetophon opened pull request #98401 → bsequencer: 1.6.0 -> 1.8.4 → https://git.io/JUuds
Sanchayan has quit [Quit: leaving]
mekster has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @magnetophon opened pull request #98402 → lsp-plugins: 1.1.24 -> 1.1.26 → https://git.io/JUudW
mekster has joined #nixos
erasmas has joined #nixos
<{^_^}> [nix] @edolstra merged pull request #4035 → libfetchers/github: allow `url` attribute → https://git.io/JU0rw
<{^_^}> [nix] @edolstra pushed 3 commits to master: https://git.io/JUud6
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<{^_^}> [nixpkgs] @thiagokokada opened pull request #98403 → pythonPackages.xlib: 0.25 -> 0.28 → https://git.io/JUudd
<{^_^}> [nixpkgs] @vcunat pushed 4 commits to master: https://git.io/JUuFJ
<{^_^}> [nixpkgs] @vcunat merged pull request #97922 → signal-desktop: fix test → https://git.io/JU8Ck
lotharn has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @zimbatm merged pull request #98392 → Sylk: 3.8.2 -> 3.8.4 → https://git.io/JUuyE
<{^_^}> [nixpkgs] @zimbatm pushed commit from @leenaars to master « Sylk: 3.8.0 -> 3.8.4 (#98392) »: https://git.io/JUuFW
pingiun has joined #nixos
kenran has quit [Ping timeout: 256 seconds]
bahamas has quit [Ping timeout: 272 seconds]
rsa has quit [Ping timeout: 240 seconds]
mmohammadi98129 has joined #nixos
mmohammadi9812 has quit [Ping timeout: 265 seconds]
mmohammadi98129 is now known as mmohammadi9812
cole-h has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #98336 → pythonPackages.mohawk: init at 1.1.0 → https://git.io/JUutX
<{^_^}> [nixpkgs] @jonringer pushed commit from @austinbutler to master « pythonPackages.mohawk: init at 1.1.0 »: https://git.io/JUuFD
never_released_ has quit [Quit: ZNC 1.8.1 - https://znc.in]
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
never_released has joined #nixos
vpfeiffer[m] has joined #nixos
<vpfeiffer[m]> I tried to connect to a vpn using openconnect but got the following error: Error: any valid prefix is expected rather than "dev".
never_released has quit [Excess Flood]
<{^_^}> [nixpkgs] @drewrisinger opened pull request #98404 → python3Packages.clifford: fix tests → https://git.io/JUuFd
<vpfeiffer[m]> It looks like the error was from `ip route`. Any ideas why this happened? Thanks in advance.
night has quit [Read error: Connection reset by peer]
<lordcirth> vpfeiffer[m], sounds like an argument to ip route was empty?
NightA has joined #nixos
<{^_^}> Channel nixos-20.09-small advanced to https://github.com/NixOS/nixpkgs/commit/39a54c9899c (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-20.09-small)
NightA is now known as night
never_released has joined #nixos
<{^_^}> [nixpkgs] @veprbl merged pull request #98361 → libversion: fix tests on Darwin → https://git.io/JUulC
<{^_^}> [nixpkgs] @veprbl pushed commit from @r-burns to master « libversion: fix tests on Darwin (#98361) »: https://git.io/JUubL
ramses[m] has quit [Quit: Idle for 30+ days]
ftzm[m] has quit [Quit: Idle for 30+ days]
sebass[m] has quit [Quit: Idle for 30+ days]
rsa has joined #nixos
sangoma has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @thiagokokada opened pull request #98406 → python3Package.aionotify: init at 0.2.0 → https://git.io/JUubG
<{^_^}> [nixpkgs] @veprbl pushed commit from @r-burns to release-20.09 « libversion: fix tests on Darwin (#98361) »: https://git.io/JUubc
cjpbirkb1 has joined #nixos
cjpbirkbeck has quit [Ping timeout: 258 seconds]
abathur has joined #nixos
sgrunert has quit [Remote host closed the connection]
justanotheruser has quit [Quit: WeeChat 2.9]
<{^_^}> [nixpkgs] @Mic92 merged pull request #98387 → nix-prefetch: fix compatibility with nixUnstable again → https://git.io/JUuMJ
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JUubP
sangoma has joined #nixos
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #98370 → popeye: init at 0.8.10 → https://git.io/JUuEJ
<{^_^}> [nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JUubH
<{^_^}> [nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUubh
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #98371 → velero: init at 1.5.1 → https://git.io/JUuEH
<{^_^}> [nixpkgs] @AndersonTorres pushed 3 commits to master: https://git.io/JUuNe
justanotheruser has joined #nixos
noudle has joined #nixos
alexherbo22 has joined #nixos
<{^_^}> [nix] @edolstra pushed to master « Don't include <regex> in header files »: https://git.io/JUuNl
alexherbo2 has quit [Ping timeout: 256 seconds]
alexherbo22 is now known as alexherbo2
<{^_^}> [nixpkgs] @doronbehar merged pull request #97230 → cawbird: 1.1.0 -> 1.2.1 → https://git.io/JUsHR
<{^_^}> [nixpkgs] @doronbehar pushed 2 commits to master: https://git.io/JUuN8
<{^_^}> [nixpkgs] @doronbehar merged pull request #98326 → [20.09] cawbird: 1.1.0 -> 1.2.1 → https://git.io/JUuJ0
<{^_^}> [nixpkgs] @doronbehar pushed 2 commits to release-20.09: https://git.io/JUuNB
Orbstheorem has quit [Ping timeout: 244 seconds]
<rain1> how does nix work with python pip?
alexherbo23 has joined #nixos
alexherbo2 has quit [Ping timeout: 246 seconds]
alexherbo23 is now known as alexherbo2
orivej has quit [Ping timeout: 272 seconds]
pingiun has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @drewrisinger opened pull request #98407 → pythonPackages.spyder: fix build → https://git.io/JUuNP
Orbstheorem has joined #nixos
dansho has quit [Remote host closed the connection]
tobiasBora has quit [Ping timeout: 256 seconds]
dansho has joined #nixos
kenran has joined #nixos
<NobbZ[m]> [rain1](https://matrix.to/#/@freenode_rain1:matrix.org) depending on your exact use case you pack whatever you need from pip in a derivation and use that instead.
<rain1> that sounds like a good system
<rain1> so nix can actually subsume these PL specific package managers?
<symphorien[m]> it does not do version constraint resolution, but if all the correct versions are in nixpkgs, then yes
<{^_^}> [nixpkgs] @drewrisinger opened pull request #98408 → spyder: 4.1.4 -> 4.1.5 → https://git.io/JUuNN
kenran has quit [Ping timeout: 272 seconds]
msirabella has joined #nixos
<NobbZ[m]> And if not, it is possible to override with something that is within constraints/known to work.
<{^_^}> [nixpkgs] @jonringer merged pull request #98407 → python3Packages.spyder: fix build → https://git.io/JUuNP
<{^_^}> [nixpkgs] @jonringer pushed commit from @drewrisinger to master « python3Packages.spyder: fix build »: https://git.io/JUuAm
mjsir911 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @danieldk merged pull request #98390 → freeoffice: 976 -> 978 → https://git.io/JUuyC
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JUuAY
civodul has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #98408 → spyder: 4.1.4 -> 4.1.5 → https://git.io/JUuNN
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JUuAZ
alp has quit [Ping timeout: 272 seconds]
msirabella has quit [Quit: Goodbye, World!]
<{^_^}> [nixpkgs] @jonringer merged pull request #96230 → python3Packages.rising: init at 0.2.0post0 → https://git.io/JUJ81
<{^_^}> [nixpkgs] @jonringer pushed commit from @bcdarwin to master « python3Packages.rising: init at 0.2.0post0 »: https://git.io/JUuAC
mjsir911 has joined #nixos
philr has quit [Ping timeout: 272 seconds]
mjsir911 has quit [Remote host closed the connection]
averell has quit [Remote host closed the connection]
tobiasBora has joined #nixos
mjsir911 has joined #nixos
<{^_^}> Channel nixos-20.09-small advanced to https://github.com/NixOS/nixpkgs/commit/4c1ae47e8cc (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-20.09-small)
ris has joined #nixos
<{^_^}> [nix] @edolstra pushed 4 commits to master: https://git.io/JUuA6
Orbstheorem has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/72b9660dc18 (from 4 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<{^_^}> [nixpkgs] @drewrisinger opened pull request #98409 → [20.09] spyder: fix build → https://git.io/JUuA9
growpotkin has joined #nixos
teto has quit [Ping timeout: 272 seconds]
<{^_^}> [nix] @edolstra pushed to master « fmt.hh: Don't include boost/algorithm/string/replace.hpp »: https://git.io/JUuAp
alp has joined #nixos
pingiun has joined #nixos
Orbstheorem has joined #nixos
sangoma has quit [Read error: Connection reset by peer]
sangoma has joined #nixos
<{^_^}> [nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUuxG
rajivr has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @SuperSandro2000 opened pull request #98410 → rustscan: 1.8.0 -> 1.9.0 → https://git.io/JUuxR
dstzd has quit [Quit: ZNC - https://znc.in]
pingiun has quit [Quit: Textual IRC Client: www.textualapp.com]
dstzd has joined #nixos
dstzd has quit [Changing host]
dstzd has joined #nixos
dstzd has quit [Client Quit]
dstzd has joined #nixos
dstzd has joined #nixos
dstzd has quit [Changing host]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @danieldk opened pull request #98411 → freeoffice: 976 -> 978 → https://git.io/JUuxd
mjsir911 has quit [Ping timeout: 272 seconds]
alp has quit [Ping timeout: 272 seconds]
endformationage has joined #nixos
hyper_ch2 has quit [Ping timeout: 240 seconds]
hyper_ch2 has joined #nixos
mariatsji has quit [Remote host closed the connection]
msirabella has joined #nixos
mlen has quit [Ping timeout: 240 seconds]
saschagrunert has joined #nixos
amir has quit [Ping timeout: 260 seconds]
seku10 has joined #nixos
amir has joined #nixos
mariatsji has joined #nixos
seku10 is now known as seku
waleee-cl has quit [Quit: Connection closed for inactivity]
knupfer has joined #nixos
<yurb> Hi. I'm trying to compile (and potentially package) https://github.com/brunoherbelin/vimix
<{^_^}> [nixpkgs] @gebner merged pull request #98409 → [20.09] spyder: fix build → https://git.io/JUuA9
<{^_^}> [nixpkgs] @gebner pushed 2 commits to release-20.09: https://git.io/JUupV
<yurb> It seems to have vendored libs; for a proper package they probably need devendoring, but for getting it running locally I'm fine with it for now
<{^_^}> [nixpkgs] @Mic92 pushed commit from @oxalica to release-20.09 « nix-prefetch: fix compatibility with nixUnstable again »: https://git.io/JUupr
<yurb> However fetchFromGitHub doesn't do a recursive clone
<yurb> Is it possible to get submodules with fetchFromGitHub?
<simpson> yurb: To your immediate question, yes; pass `fetchSubmodules = true;` to fetchFromGitHub.
<bbigras> yes
<yurb> thanks a lot
<simpson> In general, you'll probably want to patch out those vendored libraries whenever possible, just for security and modularity (and sanity); keeping them is fine if only the vendored versions work.
<{^_^}> [nixpkgs] @jonringer merged pull request #97444 → rust-analyzer: 2020-08-24 -> 2020-09-14 and some clean-up → https://git.io/JUna5
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JUupy
<{^_^}> [nixpkgs] @jonringer merged pull request #98391 → pythonPackages.pecan: 1.3.3 -> 1.4.0, fix build; pythonPackages.WSME: fix build → https://git.io/JUuyl
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JUupS
alp has joined #nixos
<{^_^}> [nixpkgs] @pbogdan opened pull request #98412 → [gnome 3.38] glib: apply upstream MR #1648 → https://git.io/JUupN
<{^_^}> [nixpkgs] @danieldk opened pull request #98413 → softmaker-office: remove /bin/ls intercept → https://git.io/JUupp
mlen has joined #nixos
<yurb> simpson: I'll need to learn how to do that; currently I need to get it running so I can see if it's useful at all (for me); if I'll be using it long-term, I'll probably invest time in making a proper PR.
<simpson> Ah, yes, the pain of not being sure if one even *wants* the package that one is preparing.
<yurb> wow, it has Roboto and Font awesome inside...
<yurb> Good it's not using Google Web Fonts (hopefully)
Thra11 has joined #nixos
<lejonet> Hmm, anyone know what package append-initrd-secrets is from?
<{^_^}> [nixpkgs] @jonringer merged pull request #94930 → Add KLU support to sundials → https://git.io/JJXFn
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JUuhl
<{^_^}> [nixpkgs] @jonringer merged pull request #97717 → isso: build from master → https://git.io/JUWf0
<{^_^}> [nixpkgs] @jonringer pushed commit from @Enteee to master « isso: build from master »: https://git.io/JUuhR
mariatsji has quit [Remote host closed the connection]
<lejonet> infinisil: I managed to unsegfault file by reinstalling it, I'm thinking that maybe there is a mismatch between the glibc that the binary was compiled for and what I have on my system atm (I guess I did stuff in a bit roundabout way, by upgrading the user-env before upgrading the system)
<{^_^}> [nixpkgs] @drewrisinger opened pull request #98414 → terraform-compliance: fix build → https://git.io/JUuhK
<{^_^}> [nixpkgs] @jonringer merged pull request #98403 → pythonPackages.xlib: 0.25 -> 0.28 → https://git.io/JUudd
<{^_^}> [nixpkgs] @jonringer pushed commit from @thiagokokada to master « pythonPackages.xlib: 0.25 -> 0.28 »: https://git.io/JUuhi
<evanjs> coming back to the whole "thing marked as build-time dependency when it's actually a run-time dependency" again
<evanjs> e.g. "what(): cannot read '/nix/store/73mlg7qng6ay99iarnvs6vrlly6fvrqd-new-modules/console', since path '/nix/store/73mlg7qng6ay99iarnvs6vrlly6fvrqd-new-modules' is not valid, at /etc/nixos/config/new-modules/default.nix:10:6"
h0m2 has quit [Quit: WeeChat 2.9]
<{^_^}> [nixpkgs] @jonringer merged pull request #96033 → buildbot: 2.8.2 -> 2.8.4 → https://git.io/JUvwf
<{^_^}> [nixpkgs] @jonringer pushed commit from @lopsided98 to master « buildbot: 2.8.2 -> 2.8.4 »: https://git.io/JUuh1
<evanjs> though, now, instead of being a problem after e.g. running nixos-option after a gc, it presents an issue when generating a VM
<{^_^}> [nixpkgs] @anka-213 opened pull request #98415 → wordnet: Fix darwin build → https://git.io/JUuhy
h0m1 has joined #nixos
sxiii has quit [Ping timeout: 264 seconds]
<evanjs> Even if I specify NIXOS_CONFIG to the deployed configuration directory, since the derivation wasn't considered a runtime dependency, it does not exist on the VM, and cannot be queried until the system is rebuilt, etc
<{^_^}> [nixpkgs] @jonringer merged pull request #97959 → [20.09] nwg-launchers: 0.2.0 -> 0.3.3; fix nwggrid not showing apps → https://git.io/JU8Xm
dansho has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @jonringer pushed commit from @bbigras to release-20.09 « nwg-launchers: 0.2.0 -> 0.3.3; fix nwggrid not showing apps »: https://git.io/JUuh7
<evanjs> I think the problem either stems from this file (https://github.com/evanjs/nixos_cfg/blob/4bb5b0b84a221b25cf50853c12b9f66f0cad3ea4/config/new-modules/default.nix) or the way I am currently using it, etc
<lejonet> infinisil: so now all I have segfault is the append-initrd-secrets, but I've tried all the individual things that script runs and none of them segfault, but the script itself segfaults somehow
<evanjs> also ping infinisil 😜
<evanjs> (I know I've asked about this probably several times now 🤪)
<evanjs> inspecting my current-system with nix-tree, it does seem that the modules folder does not appear in the list of dependencies (why-depends mode)
__monty__ has joined #nixos
<infinisil> lejonet: No idea about what could be the problem, but it might be a good idea to change nixpkgs to not execute that file if there's no initrd secrets
<lejonet> infinisil: I don't really know how to make it not execute that file, the variable that supposedly makes it run is an empty attrset (which is the default)
<lejonet> and that is supposed to make it not run...
<__red___> Is there a clang equivalent of stdenv that I can just swap out to swap compilers?\
nikivi has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
<infinisil> lejonet: It only doesn't execute it if it doesn't exist
dstzd has quit [Quit: ZNC - https://znc.in]
<__red___> ohwait - I think I found it - nm
joesventek has quit [Quit: Quit]
<lejonet> infinisil: so I should nuke that store path or?
<infinisil> lejonet: Check out `system/activation/top-level.nix` where `append-initrd-secrets` is created. See if you can `optionalString` that command to make it not run when the relevant option is {}
<NobbZ[m]> __red___: clangStdenv & clangStdenvNoLibs
<__red___> thanks
<infinisil> evanjs: No idea about your problem right now sry :P
<infinisil> (And I don't have a lot of time right now)
<{^_^}> [nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUujm
<evanjs> nah it's all good lol. I wasn't sure if you ever run into issues with your new-modules setup is all
<evanjs> basically, after rebuild, gc thinks the new-modules directory is dead so it removes it and, well, yeah lol
zupo has joined #nixos
<evanjs> I guess it really is just a folder of nix files that aren't actually used outside of querying via nixos-option or etc, but bah
joesventek has joined #nixos
dstzd has joined #nixos
dstzd has joined #nixos
dstzd has quit [Changing host]
nikivi has joined #nixos
<lejonet> infinisil: uhm, I completely removed the line in system/activation/top-level.nix and it still runs it and it segfaults O.o
<{^_^}> [nixpkgs] @FRidh opened pull request #98416 → python3.pkgs.bokeh: 2.1.1 -> 2.2.1 → https://git.io/JUuj7
<cole-h> lejonet: Probably want to look at system/boot/* (probably stage-1.nix: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/stage-1.nix)
<lejonet> cole-h: interesting part there is that the code there says that if config.boot.initrd.secrets == {}, it should put an exit 0 high up and it just quit, which is there, so I have no idea how it manages to segfault in like 4 lines of bash lol
<lejonet> I guess it might actually be test in bash that segfaults, but I can run the bash binary it references without it segfaulting, so I'm very mystified lol
karantan has joined #nixos
proofofkeags has joined #nixos
<pikajude> what's the easiest way to copy files into a nixos container
<pikajude> from the host
justanotheruser has quit [Ping timeout: 240 seconds]
justanotheruser has joined #nixos
<cole-h> cp file /var/lib/containers/containername/...
mallox has joined #nixos
bahamas has joined #nixos
<{^_^}> [nixpkgs] @jonasnick opened pull request #98417 → clightning: 0.9.0-1 -> 0.9.1 → https://git.io/JUzeR
waleee-cl has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #98282 → pythonPackages.yq: update, repackage as library, fix tests → https://git.io/JUEW9
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to master: https://git.io/JUzeE
erasmas has quit [Ping timeout: 264 seconds]
darkharmony9999[ has joined #nixos
<pikajude> cool
<pikajude> so i'm setting up a vpn'd seedbox in a container
<pikajude> the deluge instance is unable to make any download connections it seems
<{^_^}> [nixpkgs] @erincandescent opened pull request #98418 → Dino: Enable on macOS/Darwin → https://git.io/JUzeX
<pikajude> i don't know what kind of firewall related stuff i have to turn off to make it work
<pikajude> i know the deluged service by default opens up a lot of ports
<pikajude> so do i have to replicate all those rules in the nat configuration?
<__red___> a package that downloads stuff as part of it's "buildPhase", even if the download is tagged consistent is still a no-no, correct?
<__red___> since nix doesn't get the opportunity to checksum it
<cole-h> It's not possible to access the internet during the build phase due to the sandbox
<cole-h> If you need to download something, bind it in a let block and use `fetchurl` or something.
<__red___> oh...
<__red___> so, kick off a whole bunch of fetchurls
<__red___> then in the postUnpack move all the files to the correct places
<__red___> ?
<pikajude> or do i have to somehow configure it to forward all the UDP traffic on the 55k -> 55.1k range to the container?
<pikajude> that seems annoying
<__red___> cole-h: but if i'm in a nix-shell ../pkginfo -A <progname> environment
<__red___> and do buildPhase
<__red___> that's allowed to network out
<__red___> ?
<__red___> so that's probably why it's working for me when I run each phase individually
knupfer has quit [Ping timeout: 260 seconds]
<cole-h> Correct, because you're not in the sandbox when you do that.
<__red___> but failing when I try and nix-shell -I nixpkgs=../nixpkgs -p <packagename>
<cole-h> Building derivations with Nix happen in the sandbox, and denies networking
<__red___> bingo - thanks!
<__red___> if it detects network traffic does it abort the process? ... or just let the network timeout... or ?
growpotkin has quit [Quit: ZNC 1.8.1 - https://znc.in]
ManiacOfMadness has quit [Ping timeout: 272 seconds]
growpotkin has joined #nixos
<symphorien[m]> the network will fail as if you had no network card
<symphorien[m]> usually, domain resolution will first fail
meh` has quit [Ping timeout: 258 seconds]
<__red___> thanks
<__red___> it's just odd because there's no visible output that shows it crashing out
<__red___> it's the strangest of things
<__red___> can anyone think of an example package that has multiple downloads that then re-arranged the files after they've arrives?
<__red___> eg:
<__red___> first download goes into source
<__red___> next download gets moved into source/foo
<__red___> etc
erasmas has joined #nixos
alp has quit [Ping timeout: 272 seconds]
bennofs_ has joined #nixos
<jmercouris> from this page about Nvidia: https://nixos.wiki/wiki/Nvidia
<jmercouris> I would like to use "offload mode"
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jmercouris> "Currently only in unstable, to be included in 20."
<jmercouris> "20.09"
<jmercouris> when is 20.09 likely to become stable?
<jmercouris> the last release was apparently April? And releases are supposed to occur every 6 months
<jmercouris> does that not mean that 20.09 is due?
bennofs has quit [Ping timeout: 272 seconds]
<cransom> 20.09 is in process. typically they are toward the end of the month/spilling into the next month possibly.
<jmercouris> if I were to install 20.03, will it be easy for me to upgrade to 20.09?
<jmercouris> I'm very new to this OS, sorry, I have read the manual on changing channels
<jmercouris> I don't understand exactly what it means
<jmercouris> do I simply change a channel, it applies the changes, and reboots?
<mrSpec> yup it is as easy as you've said
cr4y1 has quit [Remote host closed the connection]
cr4y1 has joined #nixos
<mrSpec> when I migrated from 19.03 I had to change few parameters e.g. force correct postgresql version and nextcloud version
karantan has joined #nixos
<mrSpec> (and I upgraded my nixos for the first time over the weekend, so I'm newbie here too ;) )
<jmercouris> Nice!
<cole-h> jmercouris: According to https://github.com/NixOS/nixpkgs/issues/95535, 20.09 is expected (hoped) to be released before the month is out.
<{^_^}> #95535 (by jonringer, 5 weeks ago, open): 20.09 Timeline
<jmercouris> thanks for the link cole-h
karantan has quit [Client Quit]
<{^_^}> [nixpkgs] @markuskowa pushed to release-20.09 « slurm: 20.02.4.1 -> 20.02.5.1 »: https://git.io/JUzfm
<cransom> there's a 20.09 channel right now, but it's not a release and is more like a beta than anything while critical packages get fixed.
<{^_^}> [nixpkgs] @worldofpeace merged pull request #98412 → [gnome 3.38] glib: apply upstream MR #1648 → https://git.io/JUupN
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @pbogdan to gnome-3.38 « glib: apply upstream MR #1648 »: https://git.io/JUzfu
lsix has quit [Ping timeout: 244 seconds]
mallox has quit [Quit: WeeChat 2.9]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
bahamas has quit [Ping timeout: 256 seconds]
fendor has quit [Remote host closed the connection]
cjpbirkbeck has joined #nixos
fendor has joined #nixos
cjpbirkb1 has quit [Ping timeout: 256 seconds]
karantan has joined #nixos
sxiii has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 6 commits to release-20.09: https://git.io/JUzfA
sangoma has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @vcunat merged pull request #97970 → [20.09] thunderbird, thunderbird-bin: 78.2.1 -> 78.2.2 → https://git.io/JU8AM
butcher has joined #nixos
sangoma has joined #nixos
alp has joined #nixos
<__red___> jmercouris: I have a "party trick" I do when I demo NixOS when I do presentations on it
<__red___> jmercouris: I log into my production machine, and switch it from stable to unstable
<__red___> demonstrate everything still works
<__red___> then revert back from unstable back to stable
<__red___> and demonstrate it still works.
<__red___> it completely blows people's minds
<{^_^}> [nixpkgs] @mpolden opened pull request #98419 → restic: 0.9.6 -> 0.10.0 (incomplete) → https://git.io/JUzJG
<__red___> because they're used to things like major revisions of things like RedHat et al breaking midway through a major rev upgrade and then them not being able to go backwards or forwards
<__red___> and having to rebuild
aleph- has quit [Quit: WeeChat info:version]
<{^_^}> [nixpkgs] @risicle merged pull request #98414 → terraform-compliance: fix build → https://git.io/JUuhK
<{^_^}> [nixpkgs] @risicle pushed 2 commits to master: https://git.io/JUzJC
aleph- has joined #nixos
<{^_^}> [nixpkgs] @lovesegfault opened pull request #98420 → firmwareLinuxNonFree: 2020-05-19 -> 2020-09-18 → https://git.io/JUzJ4
<__red___> It's quite an amazing demo for people - they don't believe it most of the time
<{^_^}> [nixpkgs] @FRidh merged pull request #98416 → python3.pkgs.bokeh: 2.1.1 -> 2.2.1 → https://git.io/JUuj7
<{^_^}> [nixpkgs] @FRidh pushed to master « python3.pkgs.bokeh: 2.1.1 -> 2.2.1 »: https://git.io/JUzJr
ManiacOfMadness has joined #nixos
<__red___> btw
<__red___> is it considered poor form to open up an Issue against nixpkgs to track my own work on something in nixpkgs?
<__red___> reason I ask - there's a TON of changes going into this package update I'm doing and I need somewhere to track it
<{^_^}> [nixpkgs] @FRidh pushed to master « python3Packages.xarray: 0.16.0 -> 0.16.1 »: https://git.io/JUzJ1
<__red___> and I really need to reach-out / notify the current maintainers of the package before I put all this work in
tbe has quit [Quit: leaving]
<cole-h> Go for it, I say.
<cole-h> If it's related to Nixpkgs, it belongs in Nixpkgs issues :P
<__red___> thanks
mariatsji has joined #nixos
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @vbgl opened pull request #98421 → ocamlPackages.qtest: 2.7 → 2.11 → https://git.io/JUzUY
mariatsji has quit [Ping timeout: 246 seconds]
karantan has joined #nixos
hnOsmium0001 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
ManiacOfMadness has quit [Ping timeout: 272 seconds]
nikivi has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
nikivi has joined #nixos
sangoma has quit [Ping timeout: 272 seconds]
<__red___> makeFlags = [ "libs" "configure" "build" "config=release" "prefix=$out" ]
<__red___> $out isn't expanding in the buildPhase
<__red___> I guess it needs to be outside the ""?
<cole-h> $(out)
<infinisil> Or alternatively `prefix=${placeholder "out"}`
<cole-h> Both work.
<__red___> thanks
<cole-h> But $(out) is shorter ;)
<__red___> Thanks - this package is a mess now :-/
<__red___> upstream changed the entire buildsystem being used, and since that change the package hasn't been updated
<__red___> it's an itch I just have to scratch - and I'm on day two of it
<__red___> and its starting to bleed :-)
__red___ has quit [Remote host closed the connection]
meh` has joined #nixos
mmohammadi9812 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
NinjaTrappeur has quit [Quit: WeeChat 2.8]
NinjaTrappeur has joined #nixos
srhm has quit [Ping timeout: 240 seconds]
domogled has joined #nixos
red_ has joined #nixos
<red_> build flags: SHELL=/nix/store/cdrmdq9ckrffzlajj3hq1mz62l4z1v8c-bash-interactive-4.4-p23/bin/bash libs configure build config=release prefix=\$\(out\)
<red_> I'll try the other way :-)
<lejonet> infinisil: so I think I've found the root cause of it all, but I have no idea how to fix it, apparently the libraries the bash binary is linked to, is a mismash of glibc-2.30 and glibc-2.31, probably because I updated my user-env before updating the system...
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @benlivingood-wf opened pull request #98423 → telepresence: 0.105 -> 0.108 → https://git.io/JUzT8
<lejonet> so its fully understandable that it goes "wth?!" and just nopes out
<red_> error: undefined variable 'out' at /home/red/projects/nixpkgs/pkgs/development/compilers/ponyc/default.nix:49:82
<{^_^}> [nixpkgs] @SuperSandro2000 opened pull request #98424 → duf: init at 0.1.0 → https://git.io/JUzTE
<infinisil> red_: You need to quote "out"
<red_> I did
<red_> I switched to clangStdenv.out and it worked
<cole-h> what
<red_> I guess I needed to fully qualify it?
<infinisil> I am as confused as cole-h is
<red_> Okay - lemme show you the line and error before
<red_> and the result after
<red_> sec
<cole-h> > [ "SHELL=asdfdsa" "prefix=${placeholder "out"}" ]
<{^_^}> [ "SHELL=asdfdsa" <CODE> ]
<red_> OH!
<cole-h> > :p [ "SHELL=asdfdsa" "prefix=${placeholder "out"}" ]
<{^_^}> [ "SHELL=asdfdsa" "prefix=/1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9" ]
<red_> wrong () vs {}
<{^_^}> [nixos-homepage] @0x4A6F opened pull request #555 → demos/example_6.scenario: fix typo → https://git.io/JUzTV
<red_> so, I get prefix=/1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9
<cole-h> Yep.
<red_> so I guess I have to put /nix/store/ in front of that?
<cole-h> Nope
<red_> seems like a bad thing to hard-code
averell has joined #nixos
<cole-h> Nix will replace that string with the actual outPath later on.
veleiro has quit [Read error: Connection reset by peer]
meh` has quit [Read error: Connection reset by peer]
<red_> but that's going to put that prefix inside my build
<cole-h> No
<cole-h> Well, yes and no.
<red_> okay - I'll run it through and see what we get
<red_> But my make install is going to run with that same prefix=//1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9 right?
<red_> which is going to put the files in that directory?
<{^_^}> [nixpkgs] @SuperSandro2000 closed pull request #98424 → duf: init at 0.1.0 → https://git.io/JUzTE
<infinisil> red_: Just try it ou
<infinisil> t
<cole-h> And/or read the link I posted above.
<red_> will do
<red_> I'll do both :-)
<cole-h> Specifically: `At buildtime, any occurence of this string in an derivation attribute willbe replaced with the concrete path in the Nix store of the output [xyz].`
<red_> got it
<red_> it's running
<{^_^}> [nixpkgs] @Ma27 merged pull request #98350 → spotify: support --force-device-scale-factor for high-DPI displays → https://git.io/JUuGe
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JUzTS
marc2 has joined #nixos
<red_> another thing I'm not keen on is that they package a patched version of llvm too for some reason
<red_> I'm trying to work out why
alp has quit [Ping timeout: 272 seconds]
<red_> I'm drawing a blank
red_ is now known as __red__
fendor has quit [Read error: Connection reset by peer]
<xensky> ok i think i've got a weird problem going on.. i'm trying to run a java program that uses a precompiled rust executable for parsing. on fedora, this ran just fine having java installed. opened the same jar+executable on nixos, and it says the dependency file cannot be found. if i cd to its lib folder and try to ./ run that file, it also says it's not found. but it exists with a filesize.
<__red__> xensky: Your executable can't find the deps
<__red__> xensky: run ldd <libraryfile>
<__red__> or executable
<xensky> ah i figured it was all included since it was precompiled. ldd found 7 dependencies, one of which didn't resolve. linux-vdso.so.1
<xensky> is there a command to check which package provides this?
<manveru> ,locate linux-vdso.so.1
fendor has joined #nixos
<{^_^}> Couldn't find in any packages
<euank> xensky: linux-vdso is a "virtual shared object", it doesn't exist. It gets injected directly into shared memory
<xensky> oh. so... is there anything i can do?
butcher has quit [Ping timeout: 256 seconds]
<euank> What's probably wrong is the linker, ld.so, which is also embedded in the elf format
<euank> `patchelf --print-interpreter` will probably print a path that isn't in the nix store for the binary
<euank> that's probably what's missing
<euank> xensky: see https://nixos.wiki/wiki/Packaging/Binaries#Manual_Method for how to patch the dynamic linker if that's what it is
butcher has joined #nixos
<euank> (correcting myself above: ld.so isn't embedded, I meant to say the linker path is embedded)
<xensky> patchelf printed: `/lib64/ld-linux-x86-64.so.2`
<{^_^}> [nixpkgs] @raboof opened pull request #98425 → inkcut: fix by using the standard qt5 version → https://git.io/JUzkO
<euank> Yup, that's the path the linker is at in every linux distro... except nixos. Patching that to the appropriate `/nix/store/...` path is probably what you want! The wiki link above talks you through how to do it
<xensky> thanks, i'll try to walk through that guide
<euank> And if you want to do it more properly, creating a derivation that downloads the file, throws autopatchelf at it, and drops it in `$out/bin` isn't too hard.
<xensky> is there a wiki guide for that?
<euank> sorta. There's documentation for autopatchelf (actually the same wiki page above), and there's documentation for how to make a derivation, but how to make a derivation for a specific package may be more or less involved
<xensky> alright, i'll start digging in then and come back if i get stuck
cosimone_ has quit [Quit: Quit.]
cosimone has joined #nixos
<xensky> is patchelf --set-interpreter supposed to take a while? mine is hanging
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rprije has joined #nixos
alp has joined #nixos
<euank> It should be pretty quick in my experience
<xensky> oh.. $NIX_CC doesn't seem to be defined
<euank> Yeah, the docs aren't totally clear on that, but it expects you to have done `nix-shell -p patchelf stdenv.cc` to get it defined
<euank> It's in there, just easy to miss that line
<__red__> bingo - they're running a patched LLVM because they have a patch that fixes an upstream bug
<__red__> ho hum
<xensky> ah thanks euank i missed that
saschagrunert has quit [Remote host closed the connection]
<cole-h> bqv: Do you know if there's a nix(1) equivalent to `nix-shell -p stdenv` that will set up the NIX_* env vars (e.g. NIX_CC like above)?
<xensky> it runs now! thanks a bunch
<cole-h> I tried with `nix shell` and `nix develop`, but neither appeared to work.
<unclechu> hey, can i somehow add a local channel pointing to a nix file?
<unclechu> something like `sudo nix-channel --add file:///etc/nixos/pkgs.nix nixos`?
<cransom> unclechu: if you look at `nix-channel --list` and then `ls -la ~/.nix-defexpr/channels`, that might give you some ideas.
<euank> unclechu: depending what you want it for, adding it to your nix path might be enough, i.e. `export NIX_PATH=mychannel=/path/to/my/channel:$NIX_PATH`
<unclechu> cransom: all i see in `nix-channel --list` is `nixos https://nixos.org/channels/nixos-20.09`, doesn’t give me much of ideas
<unclechu> except that the example i posted above doesn’t work since it’s trying to append `/nixexprs.tar.bz2` to the path
gustavderdrache has quit [Quit: Leaving.]
niksnut has quit [Ping timeout: 265 seconds]
<cransom> if you definitely want it to be a channel, add a sym link to a repo in .nix-defexpr/channels/<channelname>. but otherwise, NIX_PATH as euank is the more typical method.
<unclechu> euank: i want to stick to specific commit of nixpkgs while rebuilding my config and store this commit in the repo of my config.
<unclechu> so when i update my config on an another machine i’m sure it has absolutely the same set of versions of the packages
<euank> mm. There's multiple options here!
<euank> So, what you want is almost exactly what nix flakes are trying to get you (check in a flake.lock, have that be exact versions, etc), and that will eventually replace channels...
<euank> But another alternative would be to not use channels at all
lsix has joined #nixos
lsix has quit [Client Quit]
<euank> Channels just resolve things like `<nixos>`, you could also do something like `let nixpkgs = import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/0f976477e9f61578c5f7f0a33830cfaa81168d75.tar.gz") {}` instead of `let nixpkgs = import <nixpkgs> {}`
lordcirth has quit [Read error: Connection reset by peer]
<unclechu> euank: yes, i know, and i want to `<nixpkgs>` be replaced with my pick everywhere
<euank> But the easiest thing probably is to avoid using nix channels and instead use NIX_PATH
<unclechu> would the flakes do this for me?
<euank> Flakes in theory do, but it's experimental and not as well documented, so it's more of a time investment to learn and figure out. Eventually that'll be the way to go.
<unclechu> euank: hm.. thanks, i’ll try to find some info about it
<euank> For now, NIX_PATH is probably the least painful path.
<unclechu> but
<cransom> i don't recommend flakes right now. they are still an experimental feature, no matter how much people talk about them.
lordcirth has joined #nixos
<unclechu> i just forgot to mention that i want not only the specific commit of nixpkgs but also some my own overrides, like a couple of packages taken from unstable pick
<euank> Note, nix-env doens't actually respect NIX_PATH iirc, and instead uses the nix defexpr instead
<unclechu> i don’t use `nix-env` and not sure if i need it
<unclechu> `nix-shell` was always enough for me
<euank> cool, you should be solid with just the path then
lafa has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @mmahut merged pull request #98417 → clightning: 0.9.0-1 -> 0.9.1 → https://git.io/JUzeR
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/JUzII
__monty__ has quit [Quit: leaving]
lordcirth_ has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
lordcirth has quit [Ping timeout: 246 seconds]
<cole-h> cransom: Do you have any reason behind not recommending flakes (aside from them being experimental)?
<unclechu> euank: i’m trying to test it like this: `NIX_PATH=nixos=/etc/nixos/channel/ nix-channel --list`, but it gives me nothing
<unclechu> there’s `/etc/nixos/channel/default.nix` file with this content: `{ config }: import ../pkgs.nix { inherit config; }`
<unclechu> euank: and that `pkgs.nix` is https://github.com/unclechu/nixos-config/blob/master/pkgs.nix
<euank> `nix-channel` isn't a great way to check it.
<euank> That nix-pill should be pretty relevant to what you're trying to do
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « firecracker: 0.21.1 -> 0.22.0 »: https://git.io/JUzIo
ManiacOfMadness has joined #nixos
fendor has quit [Remote host closed the connection]
erasmas has quit [Quit: leaving]
<{^_^}> [nixpkgs] @zowoq merged pull request #98366 → age: 1.0.0-beta4 -> 1.0.0-beta5 → https://git.io/JUuRc
<{^_^}> [nixpkgs] @zowoq pushed to master « age: 1.0.0-beta4 -> 1.0.0-beta5 »: https://git.io/JUzI5
seku has quit [Quit: Connection closed]
<unclechu> euank: i was able to run repl like this `NIX_PATH=nixos=/etc/nixos/nixos-channel/:nixpkgs=/etc/nixos/nixos-channel nix repl` and import a package from `<nixpkgs>`
<unclechu> it fails with a bunch of errors like this one: `error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13`
<unclechu> but if i try to rebuild the system: `NIX_PATH=nixos=/etc/nixos/nixos-channel/:nixpkgs=/etc/nixos/nixos-channel sudo nixos-rebuild switch`
<unclechu> and a bunch of warnings: `warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring`
<__red__> ho hum
spudly- has joined #nixos
<infinisil> unclechu: What's in /etc/nixos/nixos-channel?
<unclechu> i got errors for these paths: `nixpkgs/nixos`, `nixpkgs` and `nixpkgs/nixos/modules/installer/tools/nix-fallback-paths.nix`
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/595d5fdd3d1 (from 20 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<unclechu> infinisil: it’s a directory that contains `default.nix` with this content: `import ../pkgs.nix`
<unclechu> infinisil: and the `pkgs.nix` is this one https://github.com/unclechu/nixos-config/blob/master/pkgs.nix
ManiacOfMadness has quit [Ping timeout: 272 seconds]
Rusty1 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
noudle has quit []
<infinisil> Oh yeah I guess that doesn't work, because indeed NixOS needs a <nixpkgs/nixos> entry, and if you point `nixpkgs=/etc/nixos/nixos-channel`, this means that <nixpkgs/nixos> becomes /etc/nixos/nixos-channel/nixos
spudly has quit [Ping timeout: 264 seconds]
spudly- is now known as spudly
<unclechu> hm... let me see
<unclechu> if i can hack it
lux2 has quit [Read error: Connection reset by peer]
hellrazo1 has quit [Remote host closed the connection]
ilmu has quit [Remote host closed the connection]
<__red__> so I specify src = fetchFromGithub{} etc etc...
<__red__> and I have another file I need to download separately
<unclechu> infinisil: nope, tried to create `/etc/nixos/nixos-channel/nixos` directory with `import ../../pkgs.nix` in `default.nix`. it did not help
<__red__> so, somefile = fetchurl {etc}
<__red__> I need to get it to actually do the download -
<infinisil> That doesn't work because NixOS != pkgs
<__red__> originally I thought that dependencies = [ somefile ] would be sufficient?
<infinisil> You need to put something in /etc/nixos/nixos-channel/nixos that actually is a path to nixos
<infinisil> Or rather, an expression that comes from nixpkgs/nixos
<__red__> I guess I need to refer to somefile in some way in order to trigger the download of the file
<__red__> but I don't know how - any suggestions as to how to solve this?
<__red__> I've been grepping through nixpkgs for examples but yet to find an example of a package that uses more than one download file per package
<infinisil> unclechu: Oh btw my messages above were for you
<__red__> also infinisil : mkdir: cannot create directory ‘/1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9’: Permission denied
* __red__ shrugs
<unclechu> infinisil: yeah, got it, i wonder now if it would be easier to just use git submodules for this
<__red__> my head hurts - going to work on something else for a while
mir100 has joined #nixos
<infinisil> __red__: `somefile = fetchurl { ... }` should work. somefile will point to the output path of the download
cr4y1_ has joined #nixos
<infinisil> __red__: You need to start giving reproducible examples for reported problems
<__red__> thanks
<__red__> also - a more general question
<unclechu> infinisil: looking at this https://github.com/NixOS/nixpkgs/blob/master/nixos/default.nix i think it would just work if i import it there
<__red__> their build process uses "COMMAND git rev-parse --short HEAD" to create the "version" number - but when you fetchFromGithub it removes all the .git directories.
<unclechu> but i’d still need to make some hacks for overrides
<__red__> so I guess I need to hard-code that version number (which is fine since it's going to match my derivation anyways)
cr4y1 has quit [Ping timeout: 260 seconds]
mariatsji has joined #nixos
<unclechu> infinisil: what would you do if you want to override Qt version for the system build?
<infinisil> Qt version of what
<infinisil> Everything?
<unclechu> infinisil: yep, for everything
<infinisil> unclechu: I'd probably add an overlay that does something like `qt5 = self.qt<whatever>; libsForQt5 = self.libsForQt<whatever>`
ManiacOfMadness has joined #nixos
mariatsji has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @romildo opened pull request #98426 → hicolor-icon-theme: fix quoting shell variables in setup hook → https://git.io/JUztT
kreyren has quit [Remote host closed the connection]
kreyren_ has joined #nixos
<unclechu> infinisil: okay, thanks. i guess i have to dive into overlays later. maybe i would be able to implement what i have in mind
<{^_^}> [nixpkgs] @jbedo opened pull request #98427 → octopus-caller: 0.6.3 -> 0.7.0 → https://git.io/JUztn
thc202 has quit [Ping timeout: 260 seconds]
superherointj_ has joined #nixos
<superherointj_> Has NixOS website changed?
<superherointj_> I mean, the layout, theme.
<superherointj_> I am asking because it does not behave well with Dark Reader. (My expectation is dark theme.)
superherointj_ has quit [Client Quit]
superherointj has quit [Quit: Leaving]
<euank> __red__: the problems you're discussing are both problems I hit packaging k3s
<{^_^}> [nixpkgs] @9999years opened pull request #98428 → puppy: init at 0.0.7 → https://git.io/JUzt1
<euank> 1. multiple files: as people said, you can just use `let src1 = fetchurl {}; src2 = fetchurl {}; in derivation, and that'll work just fine and let you reference those srcs
<euank> 2. for dependencies on git, it's best to try and hardcode versions and avoid git calls if you can, but there's a `leaveDotGit` option if you really need it.
<euank> (it's not a pretty derivation, but it does both those things, and I don't have a straightforward better option)
cosimone has quit [Ping timeout: 260 seconds]
ManiacOfMadness has quit [Ping timeout: 246 seconds]
ManiacOfMadness has joined #nixos
<bloodyfish[m]> anyone know how i can download the twitch app
lordcirth_ has quit [Remote host closed the connection]
Henson has joined #nixos
Rusty1 has joined #nixos
<Henson> does anybody here use procmail on NixOS? I'm trying to make a .procmailrc file do some mail forwarding, and it's not working and I keep getting a "/bin/sh: : No such file or directory" error an am wondering if there's a variable in the .procmailrc file I need to set to make it work properly with NixOS. I've tried the SHELL variable already but it didn't do anything.
lordcirth_ has joined #nixos
philr has joined #nixos
cr4y1_ has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @lovesegfault opened pull request #98429 → raspberrypifw: 1.20200601 -> 1.20200902 → https://git.io/JUzqO
<{^_^}> [nixpkgs] @nyanloutre opened pull request #98430 → calibre: Add python unrardll → https://git.io/JUzqs
mbrgm_ has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
<{^_^}> Channel nixos-20.09-small advanced to https://github.com/NixOS/nixpkgs/commit/3bbf7d3a96b (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-20.09-small)
realrokka has quit [Quit: rip]
realrokka has joined #nixos
<{^_^}> [nixpkgs] @CorbanR opened pull request #98431 → Add patch to goaccess to it will build on darwin → https://git.io/JUzqP
realrokka has quit [Client Quit]
lordcirth__ has joined #nixos
werner291 has quit [Quit: werner291]
lordcirth_ has quit [Ping timeout: 246 seconds]
realrokka has joined #nixos
<bloodyfish[m]> * anyone know how i can download the twitch app
<bloodyfish[m]> ???????
<{^_^}> [nixpkgs] @vcunat pushed 4 commits to release-20.03: https://git.io/JUzmJ
gentauro has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @vcunat merged pull request #97969 → [20.03] thunderbird, thunderbird-bin: 78.2.1 -> 78.2.2 → https://git.io/JU8A1
gentauro has joined #nixos
proofofkeags has quit [Ping timeout: 256 seconds]