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
<Cadey> `let base = f x; foo = base.foo; bar = base.bar; in ...`?
<{^_^}> [nixpkgs] @andir merged pull request #85818 → [19.09] openssl: patch CVE-2020-1967 → https://git.io/JfILI
<{^_^}> [nixpkgs] @andir pushed 2 commits to staging-19.09: https://git.io/JfIqK
<{^_^}> [nixpkgs] @jonringer opened pull request #85826 → python3Packages.azure*: bump, azure-cli: 2.2.0 -> 2.4.0 → https://git.io/JfIqX
<hexagoxel> oh, I think I can do "let inherit (f x) foo bar; in …"
<hexagoxel> Cadey: thanks, that would be one step better. :)
CRTified has joined #nixos
<hexagoxel> let me guess, "inherit a x" is different from "inherit (a) x" ?
<Cadey> inherit is some spooky magic :D
<cole-h> hexagoxel: Yes. `inherit a x` means `a = a; x = x;`, while `inherit (a) x` means `x = a.x`
<hexagoxel> thanks for the confirmation.
c0c0 has quit [Ping timeout: 264 seconds]
Havvy has joined #nixos
<{^_^}> [nixpkgs] @abathur opened pull request #85827 → resholved: init at hopes and dreams → https://git.io/JfIqF
<{^_^}> [nixpkgs] @marsam merged pull request #85821 → gitAndTools.gh: 0.6.4 -> 0.7.0 → https://git.io/JfIL0
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfIqA
CcxWrk has joined #nixos
c0c0 has joined #nixos
<abathur> this abathur doesn't know how version numbers work
<energizer> abathur: what is your question about them?
<abathur> oh, snarking; it just isn't versioned yet
<abathur> <3 energizer
<{^_^}> energizer's karma got increased to 10
xO1 has quit [Ping timeout: 256 seconds]
ramses_ has quit [Quit: Connection closed]
<amanjeev> Upgraded laptop #1 to 20.03. Was a breeze!
<amanjeev> Thank you all who made this happen
Miyu-saki has joined #nixos
asbachb has joined #nixos
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
erasmas has joined #nixos
m0rphism has quit [Ping timeout: 256 seconds]
<worldofpeace> 💖
<asbachb> Any reason why dhcpcd.service wants `systemd-udev-settle`?
erasmas has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfIm2
glittershark has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @marsam opened pull request #85829 → ytop: 0.5.1 -> 0.6.0 → https://git.io/JfImr
<{^_^}> #85828 (by nh2, 1 minute ago, open): grub: Font setting controls graphical mode
<{^_^}> [nixpkgs] @marsam opened pull request #85830 → spotify-tui: 0.17.1 -> 0.18.0 → https://git.io/JfIm6
glittershark has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #85831 → bat: 0.13.0 -> 0.14.0 → https://git.io/JfImS
<{^_^}> [nixpkgs] @marsam merged pull request #85738 → lxd: 4.0.0 -> 4.0.1 → https://git.io/Jfk43
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfImd
zeta_0 has joined #nixos
guts has quit [Quit: WeeChat 2.7.1]
bebarker has joined #nixos
<{^_^}> [nixpkgs] @benley opened pull request #85832 → installer test: Fix grub extraConfig syntax → https://git.io/JfImh
reallymemorable has joined #nixos
lunaa has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @danielfullmer opened pull request #85833 → [20.03] rtl8812au: 5.2.20.2_28373.20190903 -> 5.6.4.2_35491.20200318 → https://git.io/JfIYJ
bbarker has quit [Ping timeout: 256 seconds]
thc202 has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #85834 → gitAndTools.git-gone: 0.3.0 -> 0.3.2 → https://git.io/JfIYY
nerosnm has joined #nixos
_deepfire has quit [Remote host closed the connection]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
orivej has quit [Ping timeout: 260 seconds]
<jtojnar> thoygh there was a move to get rid of it
<nerosnm> I'm having trouble with nixos-rebuild - I'm trying to switch over to storing my configuration.nix under my home directory, but when I move it there and run nixos-rebuild switch with an explicit -I argument pointing to configuration.nix, I still get "file 'nixos-config' was not found in the Nix search path". Am I doing something wrong?
<asbachb> jtojnar: I guess you're talking about https://github.com/NixOS/nixpkgs/issues/73095
<{^_^}> #73095 (by lheckemann, 23 weeks ago, open): systemd-udev-settle.service is overused
<jtojnar> yup
<asbachb> nerosnm: What's your entire command?
<nerosnm> asbachb: sudo nixos-rebuild switch -I '/home/soren/src/git.sr.ht/~nerosnm/nixos/configuration.nix'
c0c0 has quit [Ping timeout: 256 seconds]
<nerosnm> I was concerned the ~ in the path was causing issues, so also tried moving configuration.nix to ~ and running `sudo nixos-rebuild switch -I /home/soren/configuration.nix`, and got the same result
rogue_koder has quit [Ping timeout: 256 seconds]
asbachb has quit [Remote host closed the connection]
<clever> nerosnm: that tells it to search for things inside the DIRECTORY /home/soren/configuration.nix
<clever> nerosnm: you probably want nixos-config=/home/soren/configuration.nix
<{^_^}> [nixpkgs] @cdepillabout merged pull request #85753 → haskellPackages.hakyll: relax upper bound on warp → https://git.io/Jfk6o
<{^_^}> [nixpkgs] @cdepillabout pushed 2 commits to release-20.03: https://git.io/JfIYD
<nerosnm> clever: ahhh thank you so much! i thought it might be something like that but didn't know I needed to add nixos-config= at the beginning
<clever> nerosnm: but its probably simpler to just make a dummy configuration.nix, that just does: { imports = [ /home/soren/configuration.nix ]; }
<dmj`> is there a statically linked version of libpq on nixpkgs
<dmj`> libpq.a
<clever> then the default one maps to the new one
<nerosnm> clever: yes, ultimately that's the goal - thank you so much for the help
<clever> dmj`: pkgsStatic.libpqxx
<dmj`> clever: wow, thanks clever.
rogue_koder has joined #nixos
slack1256 has joined #nixos
zeta_0 has joined #nixos
c0c0 has joined #nixos
markus1199 has joined #nixos
<{^_^}> [nixpkgs] @NickHu opened pull request #85835 → esy: init at 0.6.2 WIP → https://git.io/JfIOv
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
markus1189 has quit [Ping timeout: 256 seconds]
nerosnm has quit [Remote host closed the connection]
bgamari has quit [Quit: ZNC 1.7.5 - https://znc.in]
rogue_koder_ has joined #nixos
slack1256 has quit [Remote host closed the connection]
zeta_0 has joined #nixos
rogue_koder has quit [Remote host closed the connection]
ris has quit [Ping timeout: 256 seconds]
zeta_0 has quit [Client Quit]
ddellacosta has quit [Read error: Connection reset by peer]
bhipple has joined #nixos
ddellacosta has joined #nixos
<gchristensen> clever: ping? wondering about `zfs allow mount`
<ornxka> is nixexprs.tar.xz literally just a tarball of the entire nixpkgs git repo (sans git metadata obviously)
<clever> gchristensen: ive yet to mess with the zfs permissions
<gchristensen> clever: you haven't experimented with allowing users to mount datasets?
<clever> ornxka: plus some extra files in the root, to say what git rev it came from
<ornxka> ah i see
<clever> gchristensen: correct
<gchristensen> dang :P
<gchristensen> (okay, thanks)
<clever> gchristensen: i just leave a `sudo -i` open at all times
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<gchristensen> yeah, this is a buildkite job :/
bgamari has joined #nixos
ddellacosta has quit [Ping timeout: 258 seconds]
jkachmar has joined #nixos
detran has quit [Ping timeout: 256 seconds]
johnnyfive has quit [Quit: I quit now.]
johnnyfive has joined #nixos
zeta_0 has joined #nixos
<zeta_0> the only way i'm able to get ghcide to recognize imports when using lorri is to add the env var: export EDITOR="$(emacs)" , but to get that to work i need to run nix-shell in a terminal, which then opens an emacs where ghcide is able to recognize imported modules, but is there a way to fix this so that ghcide works when i cd into the project inside of emacs?
<zeta_0> it's a hassle having to do this workaround: https://dpaste.org/etQB
<{^_^}> [nixpkgs] @bbigras opened pull request #85836 → bat-extras: init at 20200408 → https://git.io/JfIOh
<zeta_0> no, fix it so that ghcide recognizes modules when i cd into a lorri project
<zeta_0> a project initialized by lorri, sorry i need to be more clear with my words
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/JfI3f
pmade has joined #nixos
devalot has quit [Ping timeout: 265 seconds]
pmade is now known as devalot
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to release-20.03: https://git.io/JfI3k
h0m1 has quit [Ping timeout: 265 seconds]
shreyansh_k has quit [Ping timeout: 260 seconds]
h0m1 has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #85799 → BLAS/LAPACK fixup and expand docs → https://git.io/Jfkxh
<{^_^}> [nixpkgs] @bhipple pushed 5 commits to master: https://git.io/JfI3t
drakonis has quit [Quit: WeeChat 2.8]
<gchristensen> clever: I've decided to create a way to signal to systemd to start a service as root to do the mount for me
reallymemorable has quit [Quit: reallymemorable]
efriend has quit [Quit: Wed Apr 22 22:02:06 2020]
efriend has joined #nixos
aminechikhaoui has quit [Ping timeout: 240 seconds]
<{^_^}> [mobile-nixos] @samueldr opened pull request #131 → Fix build regression with updated Seabios → https://git.io/JfI3c
<{^_^}> [nixpkgs] @romildo opened pull request #85837 → xfce.xfce4-whiskermenu-plugin: 2.4.3 -> 2.4.4 → https://git.io/JfI3l
<{^_^}> [nixpkgs] @bhipple merged pull request #85834 → gitAndTools.git-gone: 0.3.0 -> 0.3.2 → https://git.io/JfIYY
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JfI38
develCuy has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @zowoq opened pull request #85838 → podman: add passthru.tests → https://git.io/JfI3a
aminechikhaoui has joined #nixos
rajivr___ has joined #nixos
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
develCuy has joined #nixos
felixfoertsch has quit [Ping timeout: 272 seconds]
felixfoertsch has joined #nixos
sigmundv_ has quit [Ping timeout: 250 seconds]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
slack1256 has joined #nixos
slack1256 has quit [Remote host closed the connection]
erasmas has joined #nixos
slack1256 has joined #nixos
proofofkeags has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @bhipple opened pull request #85839 → dnnl: rename to oneDNN to track upstream project rename → https://git.io/JfIsG
stree has quit [Read error: Connection reset by peer]
stree has joined #nixos
wfranzini has quit [Remote host closed the connection]
erasmas has quit [Ping timeout: 256 seconds]
wfranzini has joined #nixos
stree has quit [Read error: Connection reset by peer]
stree has joined #nixos
rardiol has joined #nixos
reallymemorable has joined #nixos
detran has joined #nixos
jamiemagee has quit [Ping timeout: 265 seconds]
Null_A[m] has quit [Ping timeout: 265 seconds]
jschievink has quit [Ping timeout: 265 seconds]
arianvp[m] has quit [Ping timeout: 265 seconds]
Smith[m] has quit [Ping timeout: 265 seconds]
<gchristensen> lol
<cole-h> Nice
<{^_^}> [mobile-nixos] @samueldr merged pull request #131 → Fix build regression with updated Seabios → https://git.io/JfI3c
<{^_^}> [mobile-nixos] @samueldr pushed 3 commits to master: https://git.io/JfIGg
arianvp[m] has joined #nixos
Null_A[m] has joined #nixos
virus_dave has joined #nixos
Smith[m] has joined #nixos
<virus_dave> qq folks: I have a derivation which is basically one large `runCommand` script (.../xcbuild/wrapper.nix). I want to make a new custom derivation for use in a tiny limited context which is identical to this original, except that the command being used is slightly patched.
<virus_dave> how does one do this? It looks like it would be pretty messy currently, either (1) fully copy the derivation and modify the copy, or... what would another option be?
<clever> virus_dave: make it into a function that takes a cmd name
<clever> virus_dave: foo = { thingName }: runCommand "name" {} "${thingName} --foo"
<clever> then you can foo { thingName = "foo"; } to fill in the blanks
turona has quit [Ping timeout: 272 seconds]
<clever> if you use { runCommand, thingName }: at the top of a file you callPackage, then you can also foo.override { thingName = ...
turona has joined #nixos
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/10bfa0159c2 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/cae3ac8c30b (from 10 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
fragamus has joined #nixos
<virus_dave> hmm, i'm not entirely sure i understand what you mean @clever. so i can always change the original, and ultimately i will send this change upstream (https://github.com/NixOS/nixpkgs/commit/1d2d6e12cd6af67ed64e2f93ec7043908bc1b18f) but this is a pretty core thing so is causing lots and lots of local rebuilds for the time being, so what i REALLY want to do is be able to test, in the local context needed, that this change will do what i intend, but ideal
<virus_dave> WITHOUT modifying the original (else the whole world rebuilds)
CRTified has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @NickHu opened pull request #85841 → reason-language-server: init at 1.7.8 → https://git.io/JfIGN
gustavderdrache has quit [Quit: Leaving.]
oida has quit [Ping timeout: 240 seconds]
reallymemorable has quit [Quit: reallymemorable]
reallymemorable has joined #nixos
morgrimm has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #85831 → bat: 0.13.0 -> 0.14.0 → https://git.io/JfImS
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JfIZs
slack1256 has quit [Remote host closed the connection]
fragamus has quit [Ping timeout: 256 seconds]
slack1256 has joined #nixos
slack1256 has quit [Remote host closed the connection]
slack1256 has joined #nixos
oida has joined #nixos
slack1256 has quit [Remote host closed the connection]
slack1256 has joined #nixos
<rardiol> After some suffering I found out saned uses more ports than just 6566 and the nixos module does not automatically open them. Is it more appropiate for the module to add the strongly suggested helper to networking.firewall.connectionTrackingModules or to AllowedTCPPortsRange?
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
chagra_ has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @iblech opened pull request #85842 → whitebophir: init at 1.1.0 (package and service) [RFC] → https://git.io/JfIZK
slack1256 has quit [Remote host closed the connection]
<colemickens> from what I've seen there's not a clear answer to that question. these days, I expect modules to /not/ open firewall on its own
<colemickens> I actually kind of liked, one module the other day had an option for it "openFirewallPorts" or something and then it would open the appropriate ports for you. Seems ideal
bhipple has quit [Remote host closed the connection]
slack1256 has joined #nixos
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
morgrimm has quit [Ping timeout: 240 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
<{^_^}> [mobile-nixos] @samueldr opened pull request #132 → cross-workarounds: Disable udisks for cross-builds → https://git.io/JfInU
<{^_^}> [mobile-nixos] @samueldr merged pull request #132 → cross-workarounds: Disable udisks for cross-builds → https://git.io/JfInU
<{^_^}> [mobile-nixos] @samueldr pushed 2 commits to master: https://git.io/JfInL
erasmas has joined #nixos
erasmas has quit [Ping timeout: 256 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c52cc1953c8 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @doronbehar opened pull request #85843 → gjo: 1.0.2 -> 1.0.3 → https://git.io/JfInK
<virus_dave> @clever ok, so you inspired an temporary approach, not sure if it's what you intended or not: I modified the derivation to accept an additional "script modify function", which defaults to identity, and to which the script being passed to runCommand is first threaded through. Thus, the derivation has the same hash & output, but can be overridden in the tiny context i wanted to do so.
<virus_dave> if that WAS what you intended (or even if it wasn't), thanks for the help :)
ixxie has quit [Ping timeout: 264 seconds]
ixxie has joined #nixos
xO1 has joined #nixos
<{^_^}> [nixpkgs] @virusdave opened pull request #85844 → xcbuild: add support for exporting sdk info → https://git.io/JfInX
<{^_^}> [mobile-nixos] @samueldr opened pull request #133 → [WIP] actions: Add automatic labeling of WIP PRs → https://git.io/JfIny
ixxie has quit [Ping timeout: 256 seconds]
ixxie has joined #nixos
<{^_^}> [mobile-nixos] @samueldr closed pull request #133 → [WIP] actions: Add automatic labeling of WIP PRs → https://git.io/JfIny
<samueldr> (it didn't pan out)
<{^_^}> [nixpkgs] @cole-h opened pull request #85845 → [20.03] linux: really remove 5.5 → https://git.io/JfInh
endformationage has quit [Ping timeout: 256 seconds]
lopsided98 has quit [Quit: Disconnected]
lopsided98 has joined #nixos
aminechikhaoui has quit [Quit: Ping timeout (120 seconds)]
aminechikhaoui has joined #nixos
slack1256 has quit [Remote host closed the connection]
<{^_^}> [nix] @regnat opened pull request #3528 → Implementation of a CAS store → https://git.io/JfIcU
<cole-h> 👀❗
<{^_^}> [nix] @regnat closed pull request #3262 → Content-addressed paths → https://git.io/Je9H7
<samueldr> heh
develCuy has quit [Quit: No Ping reply in 180 seconds.]
develCuy has joined #nixos
<samueldr> cole-h: #85845 I'm checking it out to see what's up with the ofborg failure
<{^_^}> https://github.com/NixOS/nixpkgs/pull/85845 (by cole-h, 11 minutes ago, open): [20.03] linux: really remove 5.5
<cole-h> I mean, it seems to say the same as the hydra failure
<samueldr> oh
<cole-h> (and I'm probably better suited since I have access to the actual logs lol)
<samueldr> I'm thinking it's not the PR, but the mainline branch (release-20.03) that failed to eval here
<cole-h> Yeah, which is what I'm trying to fix... :D
<samueldr> would be nice to have with "nix-env failed:" something like "failed to eval [the release branch | the PR changes]
<cole-h> Mmmm...
* cole-h adds to ever-growing ofborg todo list
develCuy has quit [Client Quit]
develCuy has joined #nixos
<samueldr> ofborg#465 cole-h, if you want to subscribe and mark it closed if you work on that
<{^_^}> https://github.com/NixOS/ofborg/issues/465 (by samueldr, 23 seconds ago, open): Explain which eval failed
* cole-h is watching ofborg so I'm subscribed no matter what...
<cole-h> :D
<samueldr> you fool
<samueldr> :)
<cole-h> Thank you for making a tracking issue though. Those are infinitely helpful ✨ samueldr
<{^_^}> samueldr's karma got increased to 217
butterthebuddha has joined #nixos
* samueldr shells into his builder
<butterthebuddha> Is there any advantage to configuring via nix?
<samueldr> I'll eval both the mainline and the fixed to confirm, and then merge, cole-h
<cole-h> samueldr++
<{^_^}> samueldr's karma got increased to 218
<cole-h> If I had a beefy builder, I would do the same, to have 2 data points
<samueldr> butterthebuddha: do you mean for the nixos system-wide configuration?
<cole-h> However, I don't have a beefy builder...
<butterthebuddha> Sorry, I mean configuring emacs
<samueldr> ah, no worries, it's probably the same kind of advantages, but to a more precise scope
<samueldr> I'm not using emacs, but I figure my vim config would end up having the same advantages too
<energizer> butterthebuddha: what do you mean by configuring emacs via nix?
<butterthebuddha> energizer: for starters, following the instructions here I guess: https://nixos.org/nixpkgs/manual/#sec-emacs
<samueldr> I have coupled my vim configuration with my system configuration repo, so on any system I simply need to pull my configuration, and I have my vim configuration exactly as I like it
<butterthebuddha> I'm not even fully sure what all the possibilities are
<samueldr> I figure the same would apply for emacs, no need to fiddle with it on each system
<energizer> butterthebuddha: i'm undecided as to whether it's useful for nix to write your init file for you. but installing packages using `emacsWithPackages` is *great*
<butterthebuddha> energizer: for the same reasons that samueldr mentioned?
<energizer> butterthebuddha: yes. the alternative is using straight.el, which is fine and some people do that
<energizer> well, the next best alternative
<cole-h> There's also a straight.el-Nix thing
develCuy has quit [Quit: No Ping reply in 180 seconds.]
<butterthebuddha> Can nix fetch scripts, from say, EmacsWiki for me?
develCuy has joined #nixos
<butterthebuddha> I imagine that's outside the scope of what nix promises
<cole-h> If there's a centralize link for it, yes. Else, I would bet no.
<energizer> i dont think so butterthebuddha
<cole-h> e.g. if you can go to EmacsWiki/script/1234.el, you can write something that will fetch that for you (using fetchurl, probably)
<energizer> i cant tell what nix-straight.el does
develCuy has quit [Quit: No Ping reply in 180 seconds.]
develCuy has joined #nixos
vidbina_ has joined #nixos
cfricke has joined #nixos
<cole-h> samueldr: I'm off to bed. If I didn't happen to fix evals and you know how, feel free to push to my branch. Else, just leave a note and I'll get to it sometime tomorrow (if nobody beats me to it)
cole-h has quit [Quit: Goodbye]
slack1256 has joined #nixos
slack1256 has quit [Remote host closed the connection]
palo1 has joined #nixos
develCuy has quit [Quit: No Ping reply in 180 seconds.]
develCuy has joined #nixos
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
asheshambasta has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #85792 → [backport] nixpkgs-review: 2.2.0 -> 2.3.0 → https://git.io/JfkAE
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to release-20.03: https://git.io/JfICt
noudle has quit []
<{^_^}> [nixpkgs] @peterhoeg opened pull request #85846 → Revert "msmtp: 1.8.7 -> 1.8.8" → https://git.io/JfICq
peanutbutter144 has quit [Ping timeout: 265 seconds]
FRidh has joined #nixos
alexherbo2 has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 93 commits to staging-next: https://git.io/JfICZ
<{^_^}> [nixpkgs] @FRidh merged pull request #85664 → Staging next → https://git.io/JfTyI
<{^_^}> [nixpkgs] @FRidh pushed 137 commits to master: https://git.io/JfICn
<{^_^}> [nixpkgs] @Mic92 pushed commit from @iblech to master « tigervnc: fix vncserver »: https://git.io/JfICc
reallymemorable has quit [Quit: reallymemorable]
<{^_^}> [nixpkgs] @Mic92 pushed commit from @iblech to release-20.03 « tigervnc: fix vncserver »: https://git.io/JfICC
<{^_^}> [nixpkgs] @FRidh merged pull request #85838 → podman: add passthru.tests → https://git.io/JfI3a
<{^_^}> [nixpkgs] @FRidh pushed commit from @zowoq to master « podman: add passthru.tests »: https://git.io/JfICW
orivej has joined #nixos
opthomasprime has joined #nixos
queiw has joined #nixos
develCuy has quit [Quit: No Ping reply in 180 seconds.]
develCuy has joined #nixos
rauno has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #85674 → treewide: add bool type to enable options, or make use of mkEnableOption [20.03 backport] → https://git.io/JfTbl
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to release-20.03: https://git.io/JfIC2
opthomasprime has left #nixos [#nixos]
<{^_^}> [nixpkgs] @samueldr merged pull request #85845 → [20.03] linux: really remove 5.5 → https://git.io/JfInh
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to release-20.03: https://git.io/JfICV
ixxie has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @FRidh merged pull request #85691 → x42-plugins: 20200114 -> 20200411 → https://git.io/JfICw
<{^_^}> [nixpkgs] @FRidh pushed commit from @magnetophon to master « x42-plugins: 20200114 -> 20200411 »: https://git.io/JfICo
butterthebuddha has quit [Ping timeout: 272 seconds]
ixxie has joined #nixos
jkachmar has quit [Quit: Connection closed for inactivity]
mallox has joined #nixos
develCuy has quit [Client Quit]
<{^_^}> [nixpkgs] @chrbauer opened pull request #85847 → fix haskellPackages.headed-megaparsec → https://git.io/JfIC6
develCuy has joined #nixos
erasmas has joined #nixos
erasmas has quit [Ping timeout: 256 seconds]
c0c0 has quit [Ping timeout: 256 seconds]
infinee has joined #nixos
<{^_^}> [nixpkgs] @nek0 opened pull request #85849 → mono: 6.0.0.313 -> 6.8.0.105 → https://git.io/JfIWU
c0c0 has joined #nixos
cr4y1 has joined #nixos
lsix has joined #nixos
realrokka has quit [Quit: rip]
realrokka has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 10 commits to release-20.03: https://git.io/JfIWC
foldingcookie has quit [Ping timeout: 258 seconds]
mir100 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @FRidh pushed 4 commits to release-19.09: https://git.io/JfIWl
mallox has quit [Ping timeout: 265 seconds]
mir100 has joined #nixos
<hyper_ch> infinisil: awake?
mallox has joined #nixos
Maxdamantus has quit [Ping timeout: 258 seconds]
Maxdamantus has joined #nixos
rauno has quit [Remote host closed the connection]
m0rphism has joined #nixos
relaxmax has joined #nixos
turion has joined #nixos
rauno has joined #nixos
rauno has quit [Remote host closed the connection]
rauno has joined #nixos
rauno has quit [Remote host closed the connection]
<infinisil> hyper_ch: what's up?
<{^_^}> [nixpkgs] @geistesk opened pull request #85851 → golangci-lint: 1.24.0 -> 1.25.0 → https://git.io/JfIlm
shreyansh_k has joined #nixos
rauno has joined #nixos
benkolera has joined #nixos
c0c0 has quit [Ping timeout: 256 seconds]
mounty has quit [Ping timeout: 256 seconds]
mounty has joined #nixos
CRTified has joined #nixos
ixxie has quit [Ping timeout: 260 seconds]
mallox has quit [Ping timeout: 240 seconds]
mallox has joined #nixos
smatting has joined #nixos
Desetude has joined #nixos
c0c0 has joined #nixos
mallox has quit [Ping timeout: 260 seconds]
mallox has joined #nixos
dermetfan has joined #nixos
elibrokeit has quit [Quit: A random quit message]
elibrokeit has joined #nixos
alexherbo29 has joined #nixos
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo29 is now known as alexherbo2
mallox has quit [Ping timeout: 250 seconds]
mallox has joined #nixos
<Ashy> is there a way to add a specific minor version of python to a nix-shell?
linarcx has joined #nixos
<energizer> nix-shell -p nixpkgs.python35
<Ashy> minor version, like 357, 356 etc
<hyper_ch> infinisil: you're familiar with samba?
fendor has joined #nixos
<energizer> the terminology i'm familiar with is major.minor.patch
cyphase has quit [Ping timeout: 256 seconds]
<hyper_ch> infinisil: how can I find out if samba-vfs-modules are included in the packaged version here?
sigmundv_ has joined #nixos
<hyper_ch> I'm trying to get shadow_copy2 to run with the zfs snapshots but no previous versions appear while on a ubuntu test installation with samba it works fine
choward has quit [Ping timeout: 258 seconds]
<energizer> Ashy: i guess you'd have to pull it from an old version of nixpkgs
<Ashy> energizer: ah yeap sorry, wrong terminology
<energizer> er actually major.minor.bugfix officially https://www.python.org/dev/peps/pep-0006/
erasmas has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<FRidh> Ashy: no we do not keep old patch releases
<energizer> they're still cached, though, right?
choward has joined #nixos
erasmas has quit [Ping timeout: 260 seconds]
mallox has quit [Ping timeout: 256 seconds]
thc202 has joined #nixos
<energizer> oops
mallox has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #85815 → Fix networkd not restarting on unit changes → https://git.io/JfIkR
<{^_^}> [nixpkgs] @flokli pushed 3 commits to master: https://git.io/JfIRr
zakkor has joined #nixos
<{^_^}> [nixpkgs] @flokli pushed 2 commits to release-20.03: https://git.io/JfIRM
cyphase has joined #nixos
<Ashy> FRidh: ok thanks
<Ashy> but looking at how the python packages are defined in nixpkgs it might be possible to do in a standalone shell.nix possibly
<energizer> Ashy: i'm curious why you need a specific bugfix version
<Ashy> i don't actually, someone asked if it was possible
<Ashy> for security research reasons i think
<energizer> if there was a nixpkgs release that contained the program you want, just pin that nixpkgs and it'll probably just work
cosimone has joined #nixos
<{^_^}> [hydra] @knl opened pull request #740 → Add GithubRefs plugin → https://git.io/JfI0V
<{^_^}> [nixos-hardware] @wmertens pushed to master « 7390: clarify intent »: https://git.io/JfIEL
<{^_^}> [nixos-hardware] @wmertens pushed to master « wiki syntax »: https://git.io/JfIEZ
kenran has joined #nixos
tom39291 has quit [Quit: WeeChat 2.7.1]
<infinisil> hyper_ch: Nope, no idea
<hyper_ch> infinisil: you were latest commiter :(
<infinisil> Huh?
<kenran> I've started using lorri to improve my dev experience with Emacs in a Haskell project I'm working on. Now I'm stumbling over excessive reloads (like in https://github.com/target/lorri/issues/6). I think the reason is that my `shell.nix` references the Haskell environment that I get from calling `cabal2nix` on my project, which in turn adds a `src = ./.` line to the created `default.nix`.
<{^_^}> target/lorri#6 (by danbst, 1 year ago, open): A way to exclude directory from watch?
<kenran> I don't know how to try and filter my sources to exclude `.git` or the build directory since the `default.nix` is created "automatically" by `cabal2nix`. Do you have any hints?
<infinisil> hyper_ch: Read what the commit message says
<{^_^}> [nixpkgs] @rycee pushed commit from @peterhoeg to master « msmtp: fix for broken queueing »: https://git.io/JfIEh
<{^_^}> [nixpkgs] @rycee closed pull request #85846 → msmtp: hotfix for broken queueing in 1.8.8 → https://git.io/JfICq
stree has quit [Read error: Connection reset by peer]
stree has joined #nixos
nschoe has joined #nixos
<kenran> energizer: yeah, I would like to use that. In my "workflow" I call `cabal2nix . > default.nix` which automatically create the nix expression that contains the culprit `src = ./.` line. I'd love to know how exactly I can leverage some source filter (like `gitignore.nix`).
<{^_^}> [nixpkgs] @alyssais merged pull request #85731 → crosvm: 79.12607.0.0-rc4 -> 81.12871.0.0-rc1 → https://git.io/JfklR
<{^_^}> [nixpkgs] @alyssais pushed 2 commits to master: https://git.io/JfIuE
<kenran> That is, is my workflow bad or wrong and how could I change it? I just had the idea to import the default.nix and change the `src` attribute retroactively using a filter, maybe this could work?
zupo has joined #nixos
xelxebar_ has joined #nixos
CMCDragonkai1 has joined #nixos
xelxebar has quit [Remote host closed the connection]
<kenran> Ahhhh, I found https://github.com/NixOS/cabal2nix/issues/428 which seems to be a workaround that I can try (thanks Profpatsch !)
<{^_^}> cabal2nix#428 (by Profpatsch, 32 weeks ago, open): cabal2nix inside of nix expression
<typetetris> hmm, I am missing the resolv.conf manpage on my system, does any one know, which package it resides in?
<infinisil> ,locate man resolv.conf
relaxmax has quit [Ping timeout: 256 seconds]
<{^_^}> Found in packages: manpages
<infinisil> typetetris: ^ :)
<typetetris> just add manpages to the system packages?
<energizer> yes
ramses_ has joined #nixos
<ramses_> clever: just to say that your idea is working really well! https://github.com/MSF-OCB/nixos_encryption_manager/blob/master/go.sh
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ramses_> the only weird thing is that the images all have the same creation time, which seems to be the moment at which the build container was launched. Not sure yet what's causing this
<{^_^}> [nixpkgs] @adisbladis merged pull request #85822 → nixos/{cri-o,podman}: remove cni-plugins from environment.systemPackages → https://git.io/JfILE
<{^_^}> [nixpkgs] @adisbladis pushed 3 commits to master: https://git.io/JfIze
smatting has quit [Quit: WeeChat 2.4]
FRidh has quit [Quit: Konversation terminated!]
<Profpatsch> kenran: omg, don’t remind me :)
<Profpatsch> But thanks.
* Profpatsch gets into a bad headspace when he starts thinking about cabal2nix
knupfer has joined #nixos
<hyper_ch> hmmm, I want to patch some nix expression in nixos. I created a diff file and I moved that diff file to the same location as the default.nix. How do I include it now? patches = [ xxx.diff ]; ?
toriso has joined #nixos
<{^_^}> [nixpkgs] @robertodr opened pull request #85852 → kibi: init at 0.1.2 → https://git.io/JfIz2
<srk> hyper_ch: patches are patching sources (src of the derivation)
<srk> s/are/are for
<hyper_ch> srk: I know
civodul has joined #nixos
<srk> good
<hyper_ch> but how do I reference them?
<srk> ./xxx.diff
<srk> hyper_ch: you were on the right track just add relative path
<hyper_ch> patches = [ ./timeout.diff ]; ?
<srk> yep
<hyper_ch> it complained about timeout.diff and "timeout.diff"
<hyper_ch> but ./timeout.diff works
relaxmax has joined #nixos
erictapen has joined #nixos
o1lo01ol1o has joined #nixos
<hyper_ch> srk: well, just tested it and it works now :)
Desetude has quit [Quit: WeeChat 2.8]
<srk> cool!
<{^_^}> [nixpkgs] @alyssais merged pull request #85518 → verifast: change license to MIT → https://git.io/JfUT5
<{^_^}> [nixpkgs] @alyssais pushed commit from @prusnak to master « verifast: change license to MIT »: https://git.io/JfIzN
<{^_^}> [nixpkgs] @sjau opened pull request #85853 → vdagent: fixing 90s timeout on shutdown → https://git.io/JfIzA
<hyper_ch> srk: evil shutdown timeout is gone now :9
<srk> :D
<{^_^}> [nixpkgs] @aanderse merged pull request #85645 → redmine: 4.1.0 -> 4.1.1 [20.03 backport] → https://git.io/JfTaV
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to release-20.03: https://git.io/JfIge
erictapen has quit [Ping timeout: 260 seconds]
Desetude has joined #nixos
<CRTified[m]> Hi, is there a way to store webcam settings in the system configuration? I want to keep autofocus disabled and the power line frequency compensation at 50Hz, but these settings are reverted when reconnecting the camera. Is an udev rule with some script the way to go?
<Desetude> I have added nixos (20.03), nixos-unstable and home-manager (20.03) to root's nix-channels and they work fine referencing them from my nixos config and they show in /nix/var/nix/profiles/per-user/root/channels. However, only nixos shows when I do `sudo nix-channel --list`, why?
<kenran> Profpatsch: then I'm doubly sorry for asking a follow-up question :D would you be able to share the full `default.nix` you mentioned in that issue? So far I'm returning the `generatedNix`, but then I have to change my `hself.callPackage ./default.nix` to `let default-nix = import ./default.nix {}; in hself.callPackage default-nix {}`.
infinee has quit [Quit: WeeChat 2.7]
<kenran> Is there a way to do it without having to change my `callPackage` call? That is, can my `default.nix` return something other than `generatedNix` so that I can get rid of the extra `import` step?
zebrag has joined #nixos
inkbottle has quit [Ping timeout: 240 seconds]
<asheshambasta> I'm having some trouble understanding nix's build model. Say I have package's A, B and C. B depends on A, C, depends non A and B. For each of these projects, I'm writing the nix derivation by adding the given package to nixpkg's haskellPackages using the config model. Both B and C get A using 'fetchGit' at a certain commit. Changing the hash of A in C should have no effect on the derivation of B right?
Havvy has quit [Ping timeout: 252 seconds]
exfalso has joined #nixos
<asheshambasta> in my observation, changing the version of A in C also breaks the build of B (I get shared object not found related errors)
<exfalso> Hi, I'd like to test all shell.nix files in a repo by building them. Preferably I'd like to do this in a single nix-* invocation, as invoking nix-shell one by one is slow. nix-build <shell.nixs> doesn't work and nix-instantiate <shell.nixs> doesn't build them. Any ideas?
phreedom has quit [Ping timeout: 240 seconds]
erasmas has joined #nixos
<exfalso> i was thinking the shells' buildPhase could be overwritten somehow to be a noop instead of an error?
<exfalso> could create a top-level nixexpr that overrides and imports all of them
<Profpatsch> kenran: sounds reasonable
<Profpatsch> I don’t think I even have the code anymore.
<srk> exfalso: you can specify which phases are run e.g. phases = [ "buildPhase" "installPhase" ];
erasmas has quit [Ping timeout: 258 seconds]
<srk> exfalso: my shells complain about src and unpackPhase when trying to build em
<exfalso> srk: makes sense, i'll tinker around a bit
<srk> CRTified[m]: sounds about right (udev and command, v4l-utils?)
<srk> exfalso: the trouble might be that it still needs to depend on the required stuff somehow, lemme know how it goes :)
__monty__ has joined #nixos
chagra has joined #nixos
<CRTified[m]> srk: Thanks, I'm using that solution now. v4l-ctl --help just did not show most options directly, so I nearly thought that I can't use it to setup resolution+framerate, but I was just blind 🙂 Works fine now
stree has quit [Read error: Connection reset by peer]
stree has joined #nixos
<srk> CRTified[m]: cool, can you post a gist? some people might find that useful I think :)
stree has quit [Read error: Connection reset by peer]
stree has joined #nixos
<srk> asheshambasta: it is a bit hard to decipher the ABC thingie :) maybe paste code as well
zupo has joined #nixos
cfricke has quit [Quit: WeeChat 2.8]
<asheshambasta> srk: pasting the nix expressions then, but its more a bit like: A -> B, (A, B) -> C, (where -> means imported by as a dependency): and in the C's derivation, I'd like to swap out the version of A, which seems to break the build of B.
CMCDragonkai1 has quit [Quit: CMCDragonkai1]
relaxmax has quit [Ping timeout: 265 seconds]
<Desetude> Why does `sudo nix-channel --list` only show one of the channels I've added (even though the others work)?
<{^_^}> [nixpkgs] @primeos pushed to master « inxi: 3.0.38-1 -> 3.1.00-1 »: https://git.io/JfI28
maddo has joined #nixos
<srk> asheshambasta: better, I think that's to be expected
alexherbo22 has joined #nixos
<srk> Desetude: I don't have much experience with channels, someone sure knows or you can take a loot at code or strace it :)
<CRTified[m]> srk: Will do :-)
alexherbo2 has quit [Ping timeout: 265 seconds]
alexherbo22 is now known as alexherbo2
<Desetude> Oh, I think I've realised why, I think it's because the nix-channel list is read from $HOME/.nix-channels, so in this case /root/.nix-channels I guess, and I have adopted grahamc's setup where /root (as well as /etc, /var, etc) is not persisted on restarts
<{^_^}> [nixpkgs] @emmanuelrosa opened pull request #85854 → skypeforlinux: 8.55.0.141 -> 8.56.0.103 → https://git.io/JfI2g
<CRTified[m]> srk: Gist for webcam setup with udev is here: https://gist.github.com/CRTified/129034c27db71e9f6cf0bb572a259864
<ikwildrpepper> CRTified[m]: nice, I was looking for something similar a while back, thnx
<srk> CRTified[m]: see :D thanks
<{^_^}> udev_webcam defined
vidbina_ has quit [Ping timeout: 264 seconds]
Desetude has quit [Quit: WeeChat 2.7.1]
chloekek has joined #nixos
<exfalso> srk: ended up with https://pastebin.com/MeEggdUW which seems to work
<armin> ot: i render fractals for fun, and this here is the very first fractal i ever rendered on a nixos computer: https://www.reddit.com/r/FractalPorn/comments/g6df8b/orders_of_magnitude/
<exfalso> i started with a separate nix expr wrapping the whole thing IFD style, but realized that would require the creation of a source set, and i want to use the shell.nix-s directly from the repo
<srk> exfalso: nice!
<srk> armin: wow! btw there's also #nixos-chat ;)
<armin> srk: oh i wasn't aware, will join and of course try to keep the offtopic amount low in here then, thank you for the pointer.
mbrgm has quit [Quit: ZNC 1.7.5 - https://znc.in]
mbrgm has joined #nixos
gxt has quit [Ping timeout: 240 seconds]
gxt has joined #nixos
<Raito_Bezarius> Is there a way to change the keymap at boot-time during the LUKS passphrase phase?
phreedom has joined #nixos
<Raito_Bezarius> (with GRUB)
<bdju> really glad to see the deluge package was updated! thanks to everyone who worked on that
<Raito_Bezarius> I tried to pass vconsole.keymap in the linux commandline, but unsure if it works
lassulus has quit [Ping timeout: 264 seconds]
<philipp[m]> I rtfs androidenv a little and didn't see a single mention of gradle. Can I get that app to build somehow anyway?
lassulus has joined #nixos
knupfer has quit [Quit: knupfer]
<kenran> Profpatsch: ok, thanks anyway :) are you not using cabal2nix anymore then (if you're still using Haskell and nix, I'd be interested in the alternative in that case)
knupfer has joined #nixos
chloekek has quit [Quit: WeeChat 2.7]
<{^_^}> [nixpkgs] @flokli merged pull request #85735 → journald service docs: Add helpful comments about the journal getting full → https://git.io/Jfk8C
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/JfIau
<srk> knupfer: there's also callCabal2nix which calls cabal2nix for you so you don't have to do it manually
dooygoy has joined #nixos
<{^_^}> [nixpkgs] @flokli pushed commit from @nh2 to release-20.03 « journald service: Add helpful comments about the journal getting full »: https://git.io/JfIaz
<{^_^}> [nixpkgs] @Izorkin opened pull request #85856 → nginx: update to 1.18.0 → https://git.io/JfIaV
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/JfIar
<{^_^}> [nixpkgs] @flokli merged pull request #85832 → installer test: Fix grub extraConfig syntax → https://git.io/JfImh
<Raito_Bezarius> philipp[m]: you want gradle2nix rather
<philipp[m]> Raito_Bezarius: Thanks! I'll look into it.
zakkor has quit [Quit: Connection closed for inactivity]
smatting has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
leotaku has quit [Ping timeout: 256 seconds]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<Profpatsch> kenran: what we do right now is:
<Profpatsch> api-types = self.sourceFilters.gitignore [] ../backend/api-types;
<Profpatsch> and then use haskellPackages.callCabalToNix "api-types" api-types {}
<Profpatsch> This filters the source directory according to its .gitignore, copies it to the nix store and runs cabal2nix on that filtered version
o1lo01ol1o has joined #nixos
<Profpatsch> Which means ./. is right, because it is the filtered store in the nix store.
AmitLevy[m] has joined #nixos
<Profpatsch> (self is pkgs)
<Profpatsch> s/filtered store/filtered source/
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « inxi: Add a flag to install all recommended tools »: https://git.io/JfIVq
cr4y1_ has joined #nixos
cr4y1 has quit [Read error: Connection reset by peer]
<kenran> Profpatsch: oh, that looks way nicer even. good to know, thanks!
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
jakobrs has joined #nixos
<asheshambasta> also speaking of overlays, given that overlays compose from left to right, is it correct to expect a package, that was marked as broken at nixpkgs, and then marked as not broken in a previous overlay, to appear as non-broken in super from within an overlay?
<jakobrs> Is it possible to `override` the result of fetchfromgithub?
fengdaolong has quit [Ping timeout: 264 seconds]
<jakobrs> So you'd do something like `src = src.override { rev = "master"; hash = "..."; }`
<jakobrs> But there is no src function
fengdaolong has joined #nixos
johnjay has quit [Ping timeout: 256 seconds]
knupfer has quit [Ping timeout: 246 seconds]
<jakobrs> Also, why do many fetchers support `sha256` but not `hash`?
relaxmax has joined #nixos
ixxie has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<etu> jakobrs: hash is newer
johnjay has joined #nixos
<etu> jakobrs: So it's not adopted yet
SyrupThinker has quit [Quit: ZNC - https://znc.in]
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to master: https://git.io/JfIVA
<jakobrs> Is there anything preventing `hash` from being implemented in `fetchgit`, etc?
<jakobrs> Or has it just not been done yet
SyrupThinker has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to release-20.03: https://git.io/JfIVj
<{^_^}> [nixpkgs] @mmilata opened pull request #85858 → openvpn: 2.4.7 -> 2.4.9 → https://git.io/JfIwv
knupfer has joined #nixos
<asheshambasta> minimal source of confusion for me: https://gist.github.com/asheshambasta/3a7bc8a25bcae6d888b131fa8447b092
<asheshambasta> maybe I should be using overrides instead of //.
<jakobrs> It's probably already well known but the commit hashes used by hydra are absolutely too short to uniquely identify certain commits.
fusion809 has quit [Quit: Leaving]
nschoe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
o1lo01ol1o has quit [Remote host closed the connection]
ramses_ has quit [Ping timeout: 256 seconds]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
erasmas has joined #nixos
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
jakobrs has left #nixos ["WeeChat 2.8"]
o1lo01ol1o has joined #nixos
Neo-- has quit [Ping timeout: 264 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
erasmas has quit [Ping timeout: 256 seconds]
Desetude has joined #nixos
o1lo01ol1o has joined #nixos
ramses_ has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<Desetude> gchristensen: in your setup do you also persist /root? if not, how do you keep /root/.nix-channels?
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @mmilata opened pull request #85859 → libssh: 0.8.8 -> 0.8.9 → https://git.io/JfIwX
<b42> master's broken?
<b42> while evaluating the attribute 'hardened."5.4.35"' at /.../nixpkgs/pkgs/os-specific/linux/kernel/patches.nix:41:3: attribute '5.4.35' missing, at /.../nixpkgs/pkgs/top-level/all-packages.nix:17050:7
<asheshambasta> on further investigation, it seems that, amazonka gets marked as unbroken, so does amazonka-core. But when evaluating amazonka, it still complains that amazonka-core is marked broken. Which leads me to suspect that amazonka is getting a "broken" version of amazonka-core from somewhere.
<asheshambasta>
o1lo01ol1o has joined #nixos
c0c0 has quit [Ping timeout: 264 seconds]
dingo has quit [Remote host closed the connection]
asbachb has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #85829 → ytop: 0.5.1 -> 0.6.0 → https://git.io/JfImr
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfIwx
CcxWrk has quit [Quit: ZNC 1.7.4 - https://znc.in]
c0c0 has joined #nixos
dooygoy has quit [Ping timeout: 256 seconds]
reallymemorable has joined #nixos
CcxWrk has joined #nixos
toriso has left #nixos [#nixos]
rauno has quit [Remote host closed the connection]
pmc_ has joined #nixos
<amf> are there any tools which can show version changes between releases? i manually do this with git, but maybe there is a better way
<srk> > pkgs.zzuf.version
<{^_^}> "0.15"
Neo-- has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #85851 → golangci-lint: 1.24.0 -> 1.25.0 → https://git.io/JfIlm
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfIrP
tmaekawa has joined #nixos
gustavderdrache has joined #nixos
nschoe has joined #nixos
<asheshambasta> I don't understand overrides at all :-)
<amf> srk: but for every package :)
jakobrs has joined #nixos
johnjay has quit [Ping timeout: 260 seconds]
<jakobrs> What is meant by "`fetchpatch` does not handle patches that create files well"?
tmaekawa has quit [Quit: tmaekawa]
<jakobrs> yaay github is down
<jakobrs> just while I was writing a comment
johnjay has joined #nixos
<hyper_ch> just wanted to ask if github is having issues again
<jakobrs> yes
<jakobrs> since 8 minutes
<armin> even though this *tells* me how to change boot.initrd.luks.devices in configuration.nix, i'm unable to figure out how it should look... https://unix.porn/nix-error.txt - any help?
<jakobrs> You're just supposed to use the name as the attribute key
<srk> amf: name is obsolete and is now part of the attr ^
<srk> amf sorry, armin
<hyper_ch> zfs <3
<srk> amf: you could script that with nix :)
<armin> srk: could you post a corrected version of it?
<armin> srk: oh wait i got it
<armin> srk: thanks to your description
proofofkeags has joined #nixos
morgrimm has joined #nixos
infandum has joined #nixos
<infandum> I'm trying to make a default.nix for a package executable. It compiles successfully. However, when I run it, I get the error: "Error: package or namespace load failed for 'stats' in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/usr/lib/R/library/stats/libs/stats.so': liblapack.so.3: cannot open shared object file: No such file or directory". I have pkgs.liblapack in my buildInputs.
<infandum>
szicari has quit [Remote host closed the connection]
<immae> infandum: are you building without sandbox? This suggests that your build script used some references to R outside of the nix store no?
knupfer has quit [Ping timeout: 240 seconds]
<immae> (maybe because it couldn’t find it in the buildInputs)
<infandum> immae: My command is "nix-env -f default.nix -i executable" with all of the default configs except allowBroken = true and allowUnfree = true.
<infandum>
<infandum> I am using "buildInputs = attrs.buildInputs ++ buildInputs;" and "nativeBuildInputs = attrs.nativeBuildInputs ++ buildInputs;", where buildInputs is all of my build and runtime dependencies. I was too lazy to figure out which is needed for which so I just used the dependencies in both locations, but that shouldn't be a problem, right?
<infandum>
<immae> ok, and what version of nix do you have? (nix --version)
<infandum> 2.3.3
<infandum> on Arch linux, but I want the default.nix to work on most OSes including macOS
<infandum> but first I need to make it work here
<infandum> everything works except for the functions of the executable that use R
<infandum> ldd executable shows that everything is found, but there is no entry for liblapack.so.3
proofofkeags has quit [Remote host closed the connection]
<infandum> like, not even a slot for it
<immae> and ldd /usr/lib/R/library/stats/libs/stats.so ?
<infandum> immae: Where do I find that? R is only listed in my buildInputs
<immae> In the error message
<infandum> oooooooooooooh
<immae> That’s why I was blaming R and not liblapack :)
<infandum> so it's literally looking at my arch linux R, not the nix R?
<infandum> ooooooooooooooh
<immae> Yes
<infandum> how can I have a different R just for this program using nix?
<infandum> I'm thinking like a docker thing
<infandum> I want it separate from my system packages
<immae> is R in the buildInputs list? If not it may be hardcoded by the program compilation process
<infandum> uuuugh this makes so much sense. I don't know how to progress though
<infandum> immae: It is in immae
<infandum> oops
<infandum> It is in the buildInputs
<immae> Ok
<immae> It may still be hardcoded
<infandum> buildInputs = [ pkgs.zlib pkgs.zlib.dev pkgs.zlib.out pkgs.blas pkgs.liblapack pkgs.gfortran.cc.lib pkgs.cairo pkgs.stdenv pkgs.gmp pkgs.gsl pkgs.gtk2 pkgs.pango pkgs.graphviz pkgs.pkg-config pkgs.fontconfig pkgs.R pkgs.rPackages.ggplot2 pkgs.rPackages.ggplot2 pkgs.rPackages.devtools pkgs.rPackages.cowplot pkgs.rPackages.jsonlite pkgs.rPackages.edgeR];
ramses_ has quit [Quit: Connection closed]
<immae> can you maybe grep /usr/lib/R/ in your package source ?
<immae> or R/libraryr/stats
<infandum> for what?
<infandum> liblapack?
<infandum> oh, you mean in the nix package grep for those lines?
<{^_^}> [nixpkgs] @Izorkin opened pull request #85862 → nginx: change log and cache directories → https://git.io/JfIKJ
<immae> in the package source grep for those line
<immae> "in case" it would get hardcoded
<infandum> Sorry, this is my first nix package
<infandum> I grep in the /store?
<immae> No, "in the package source", where the source lies
jakobrs has quit [Quit: WeeChat 2.8]
<immae> the source code of your package
<infandum> I wrote the package -- it's not in mine. But it depends on https://github.com/tweag/HaskellR/tree/master/inline-r
<infandum> Which may be in there
<{^_^}> [nixpkgs] @Luflosi opened pull request #85863 → kitty: 0.17.2 -> 0.17.3 → https://git.io/JfIKt
<immae> That’s haskell I’d be surprised
<infandum> They have an LD_LIBRARY_PATH
<immae> yes
<immae> but it hardcodes an element of /nix/store which is fine
<immae> what is the R package name in archlinux?
<immae> Ah got it
<immae> so, you have "two" problems:
<immae> - First one is that your R package in Arch depends on lapack, but for some reason it’s absent in your instlalation
<immae> - Then it seems like somewhere in your nix derivation script, something hardcodes the location of the R library to /usr/lib
<infandum> hm
<infandum> in my default.nix? Nothing there...
<infandum> Also, my system R works fine...
<immae> Do you use /usr/lib/R/library/stats/libs/stats.so ?
<infandum> Maybe a dependency?
<{^_^}> [nixpkgs] @xrelkd opened pull request #85864 → powerline-go: 1.15.0 -> 1.16.0 → https://git.io/JfIK4
<infandum> in what?
<infandum> my system R
<infandum> ?
<immae> You say that your system R works fine
<infandum> Yes
<immae> but maybe it doesn’t use the part that uses lapack?
<infandum> But I probably have lapack installed I assume
<infandum> Either way, I don't want the nix executable to use the system R, I want it to use the nix one
<immae> yes for sure
<infandum> I'll search nixpkgs for that line in github
knupfer has joined #nixos
<immae> So for that if you have sandbox (it seems to be the case), then it’s possibly that something in the build hardcodes the path of R
<immae> It happens sometimes
<{^_^}> [nixpkgs] @mmilata opened pull request #85865 → gnome3.file-roller: 3.36.1 -> 3.36.2 → https://git.io/JfIKa
<immae> I think maybe patchelf would solve that but I don’t know how to use it
<infandum> immae: You said that the HaskellR shell is fine as it's using the /nix/store -- but I'm not using that. And I assume the default.nix knows nothing of the shell.nix file, so should I have something like that in my default.nix?
chloekek has joined #nixos
<immae> how do you use haskellR then?
<infandum> immae: My haskell package depends on it
<immae> ok
<immae> so that may be the point where you’re going out of the store
<infandum> So essentially I guess nix just automates downloading the library from hackage (no shell.nix) and builds it.
<immae> Although I’m a bit lost in your dependencies tree there
<infandum> immae: How so?
<immae> What calls what and when and how
<infandum> For building or running?
<immae> both
<immae> for building you’re probably safe anyway, which doesn’t prevent it from saying "at runtime execute /usr/bin/R" or "load /usr/lib/thislib.so" in which case you jump out of the store at runtime
<infandum> Building: inline-r is a dependency of the package which provides a way to use R functions in haskell. Running: The executable uses an R process for the necessary features.
<infandum> So should I set LD_LIBRARY_PATH = ["${R}/lib/R/"]; ?
<infandum> Where do I do that?
<infandum> I'm using developPackage
<immae> does it start the R process itself, or does it use a socket to contact a running R ? (sorry if it’s dumb question I’m not used to R)
<infandum> I believe it starts it itself
<immae> Do you have a way to see it in the prcess tree?
chloekek has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #85830 → spotify-tui: 0.17.1 -> 0.18.0 → https://git.io/JfIm6
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfIKA
plutes has joined #nixos
<immae> Depending on whether it starts R or just loads the library, you would have to wrap the PATH or the LD_LIBRARY_PATH
<infandum> Well their solutions looks like the LD_LIBRARY_PATH, so I guess just that?
plutes has quit [Remote host closed the connection]
<immae> ok
<infandum> inline-r requires libR.so, nothing about R executable proper
plutes has joined #nixos
<immae> Then I guess you woudl have to use something similar to https://github.com/tweag/HaskellR/blob/master/shell.nix in your own package
<immae> the libHack
<infandum> How do I use that with developPackage instead of buildStackProject?
<infandum> Does nix have a way of specifying environmental variables outside of nixOS?
<infandum> like, in the default.nix only?
<immae> you do it the same I think
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stigo has quit [Quit: stigo]
<immae> Every key will become an environment variable
<infandum> I tried that but I got the same error
<immae> ok
glittershark has quit [Read error: Connection reset by peer]
<infandum> I put it under nativeBuildInputs
<infandum> under pkg.overrideAttrs(attrs: { LD_LIBRARY_PATH etc
zupo has joined #nixos
<immae> developPackage doesn’t seem very flexible
ikervagyok has joined #nixos
<infandum> not really
stigo has joined #nixos
<immae> maybe the overrides or modifier argument?
<infandum> modifier takes in the drv, right?
<immae> If I understand it correctly yes
<immae> so you would do modifier = drv: drv // { LD_LIBRARY_PATH = "${R}/lib..."; };
<infandum> Not the libhack?
<infandum> They have it twice for some reason
<infandum> they have LD_LIBRARY_PATH = ["${R}/lib/R/"];} // libHack)
<immae> No, the libHack overrides the one at the bottom
<infandum> huh
<{^_^}> [nixpkgs] @Infinisil opened pull request #85867 → Remove myself as codeowner from some paths → https://git.io/JfI6Z
<immae> but the libHack handles the case where you have macos
gaborr has joined #nixos
<immae> (but first make it work on your machine, and then you can adjust if it works :p )
<das-g[m]> Is the wrapped PostgreSQL (with access to the specified `extraPlugins`) addressable from nix expressions?
<das-g[m]> I'm trying to adapt https://nixos.org/nixos/manual/index.html#module-services-postgres-plugins, so that it doesn't fall over when it encounters a PostGIS database.
<infandum> immmae: Takes a few minutes to build
<immae> sure
<{^_^}> [nixpkgs] @Infinisil merged pull request #85867 → Remove myself as codeowner from some paths → https://git.io/JfI6Z
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/JfI6R
<immae> infandum: during that time, you may want to run `ldd /usr/lib/R/library/stats/libs/stats.so` and see if it resolved the lapack.so library correctly
<gaborr> hi all - quick question about nixOS installation: are there mirrors that can be used during installation? I am in China, using the LiveCD to install, stuck at "extra-utils" being downloaded, 0.3/6.8 MiB in about 10 minutes, fantastic speeds, huh?
<exarkun> if I want to set nixpkgs to an https url in NIX_PATH is there a way to also supply a hash so it can be read from the store instead of always redownloaded?
<gerschtli> hey everyone, does anyone know how to debug the typical "infinite recursion encountered" error? the stack trace ends just somewhere..
<exarkun> or, maybe it isn't always redownloaded, but something happens on the network, maybe it checks a last modified or something, I dunno, but can I make it completely network independent?
<infandum> immae: Yes, my system R (the stats.so) has liblapack.so.3
Jaxon has joined #nixos
<pbogdan> gaborr: perhaps https://discourse.nixos.org/t/announcing-tuna-nix-mirror/6144 might be of some help
<immae> exarkun: someone might know better but I think the only way is to have a local path or to set the corresponding variable in nix config to refresh it less often
<immae> min-free-check-interval I think
<infandum> immae: My default.nix for reference: https://pastebin.com/ixCa1pz6
fenedor has joined #nixos
<gerschtli> exarkun: i think it is cached for one hour this way. if you want to provide a hash, you need to create a nix file for it..
<infandum> immae: It did not work
<gaborr> thanks pbogdan, will check
<infandum> Same error
felixfoertsch23 has joined #nixos
<immae> arg
<immae> I don’t see what could be wrong sorry...
wfranzini has quit [Remote host closed the connection]
felixfoertsch has quit [Ping timeout: 265 seconds]
felixfoertsch23 is now known as felixfoertsch
<exarkun> immae, gerschtli: thanks
wfranzini has joined #nixos
<ixxie> I got this line users.users.root.openssh.authorizedKeys.keys = [ (builtins.getEnv "authkey_pub") ];
<ixxie> and I now want to generalize it to allow for more than one authkey to be added
fendor has quit [Ping timeout: 265 seconds]
<ixxie> thinking of putting them in one env var, each new line with a single authkey
erasmas has joined #nixos
<exarkun> are you sure you want to use env vars for that?
<ixxie> how would I now split them up correctly into an array with a builtin?
fenedor is now known as fendor
<ixxie> exarkun: yes, I need to pass this stuff into a container and I can only pass variables not files (github actions)
<exarkun> How about argv?
<immae> ixxie: users.users.root.openssh.authorizedKeys.keys = lib.splitString "\n" (builtins.getEnv "authkey_pub")
<exarkun> You can pass arguments with `--arg` ... `nix-build --arg authkey_pub '[a, b, c]'`
<immae> (but yes arguments might make more sense)
<Jaxon> I've got an issue with the installation, the NetworkManager (the applet) always shows 'Not running', can someone help me?
<ixxie> but this is a nixos-rebuild
<gerschtli> Jaxon: did you enable network manager (the daemon)
<exarkun> ixxie: well, how would we know that :)
<Jaxon> gerschtli, if you mean that line networking.networkmanager.enable = true; then yes
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
jkachmar has joined #nixos
erasmas has quit [Ping timeout: 260 seconds]
<ixxie> exarkun: lol :P yeah I guess its obvious... is there away to pass those flags to nixos-rebuild?
<{^_^}> [nixpkgs] @Mic92 opened pull request #85868 → Update go tools/linters/language servers → https://git.io/JfIie
jakobrs has joined #nixos
<Jaxon> whenever i try to start the networkmanager service (systemctl start networkmanager) i get this: unit networkmanager.service not found
<jakobrs> Is it just me, or is Alt-F2 and Alt-space broken? on plasma
jgeerds_ has joined #nixos
<exarkun> ixxie: not obviously, I guess. And I've never tried passing args like that to nixos-rebuild. For a whole-system configuration it seems like the modules/configuration/options system is probably the preferred approach. I don't know how that will interact with your Docker environment, though.
<gerschtli> Jaxon: what does `sudo systemctl status NetworkManager.service` print and what does the applet print to stdout/err?
<gerschtli> Jaxon: ah didnt read your last message, do you run this command as root? you need to match the casing: NetworkManager
adyatlov has joined #nixos
<Jaxon> gerschtli, i ran sudo systemctl status NetworkManager.service and i got Unit: NetworkManager.service could not be found
<numkem> jakobrs: alt-space is broken for me too
<numkem> jakobrs: what I did to get around this is to map meta to krunner: https://wiki.archlinux.org/index.php/KRunner
<jakobrs> But ... it wasn't broken before
<Jaxon> gerschtli, does the chosen environment have anything to do with this? i've configured xfce with i3, a kde installation can be different or its just related to networking specifically ?
<numkem> jakobrs: totally agree with you
<numkem> jakobrs: alt-f2 is working for me tho
<jakobrs> At least krunner launches when launched via the application launcher
<jakobrs> So it's not krunner that's broken
<gerschtli> Jaxon: maybe.. just to make sure, what does `nixos-option networking.networkmanager.enable` print?
<{^_^}> [nixpkgs] @saschagrunert opened pull request #85869 → cri-o: 1.17.3 -> 1.18.0 → https://git.io/JfIiL
<jakobrs> Als, I've had issues over the past few days where Meta stops working, but that's probably my own fault
<jakobrs> Hmm, Alt-f2 in the terminal sends ";3Q"
<Jaxon> gerschtli, value: true default: false type: boolean then description , declared by and defined by
<Jaxon> gerschtli, so the value is true and it's supposed to be working
<ottidmes> If I want to package a node.js project, is it OK to use a prebuilt .rpm package? It will just build web files (JS/CSS/etc), no binaries. Otherwise I would have to try and get it to work with node2nix or yarn2nix
<jakobrs> Although I don't believe the version of plasma has been changed in 20.03
<gerschtli> Jaxon: yes.. how about `nixos-option systemd.services.NetworkManager.enable`?
<jakobrs> But the dates on the issue are moderately recent, and it's not closed
<gerschtli> Jaxon: maybe something is disabling the service manually
dermetfan has quit [Ping timeout: 272 seconds]
ddellacosta has joined #nixos
<jakobrs> Oh wait the plasma version has been incremented
<Jaxon> gerschtli, value: true, default: true
codygman has quit [Ping timeout: 265 seconds]
<Jaxon> gerschtli, something like what ? how can i check ?
<gerschtli> Jaxon: maybe there is a `systemctl daemon-reload` missing, run it and check network manager status again
<gerschtli> Jaxon: obviously nothing is disabling it as shown by nixos-option
cole-h has joined #nixos
<Jaxon> gerschtli, i did systemctl daemon-reload and nothing changed unfortunately
<gerschtli> Jaxon: sorry to ask, but you did run nixos-rebuild? :D otherwise i'm out of any ideas..
<gerschtli> hey everyone, does anyone know how to debug the typical "infinite recursion encountered" error? the stack trace ends just somewhere..
<aanderse> does nixos have any magic options to help me setup root on tmpfs?
<{^_^}> [nixpkgs] @Mic92 pushed to master « linux_hardened: fix evaluation »: https://git.io/JfIig
<Jaxon> gerschtli, did the rebuild , generates lots of warnings and ends with an error build of /nix/store/...nixos-system-nixos-20.03 failed
codygman has joined #nixos
<gerschtli> Jaxon: maybe you need to fix this first or rollback to an generation that works
<Jaxon> gerschtli, isn't this error caused by the laptop not being connected to the internet ?
jakobrs has quit [Quit: WeeChat 2.8]
<gerschtli> aanderse: you could add a tmpfs for /root and let mount it.. should work i think?
<Mic92> gerschtli: I use some sort of expression bisect, where I comment out most of the expressions.
<gerschtli> Jaxon: i dont know, i cant see the errors :D but you could use a lan cable or just use wpa_supplicant, see the nixos manual install section
<aanderse> gerschtli: never done root on tmpfs before, so not sure what i need to do to copy my base os image onto that tmpfs etc...
<gerschtli> Mic92: unfortunatly the stack trace is somewhere in home-manager/nixpkgs.. i tried this approach with my code already
<immae> aanderse: ah you want / on tmpfs or /root?
<aanderse> immae: root... /
rardiol has quit [Ping timeout: 258 seconds]
<immae> I think your question was misunderstood then :)
<gerschtli> aanderse: ah seems that i misunderstood you. / may be a bit more complicated.
<aanderse> my bad
<immae> Didn’t gchristensen write a blog post about it like a few days ago?
<Jaxon> gerschtli, alright, thank you
rardiol has joined #nixos
<gerschtli> Jaxon: np
<cole-h> https://grahamc.com/blog/erase-your-darlings I think you're talking about this, immae?
<immae> yes
<immae> Not exactly / on tmpfs but he talks about blank system at every boot, maybe there are things usable there?
<aanderse> immae: yeah, thats what i'm looking to do. except root on tmpfs instead of zfs rollback
<lordcirth> I think / on tmpfs is easier than that
<gaborr> nixos-install crashed after 'setting up /etc...' with 'File system "/dev/block/8:1" has wrong type for an EFI System Partition (ESP).' Any ideas on how to fix that?
proofofkeags has joined #nixos
exfalso has left #nixos [#nixos]
linarcx has quit [Ping timeout: 256 seconds]
cosimone has quit [Remote host closed the connection]
<gaborr> oh, I naively assumed my Fat32 grub partition from arch will do, it seems not
asbachb has quit [Remote host closed the connection]
cosimone has joined #nixos
<NickHu> Has anyone fixed erors like: `error: executing SQLite statement 'delete from ValidPaths where path = ?;': constraint failed (in '/nix/var/nix/db/db.sqlite')` when doing `nix-collect-garbage`?
<NickHu> I think my db file got a bit messed up when I tried to `nixos-rebuild switch --upgrade` and it ran out of disk space midway through
waleee-cl has joined #nixos
Jaxon has quit [Quit: Leaving]
erasmas has joined #nixos
<gaborr> ah, changed the part type to EFI and grub finished installing, looking good
<immae> aanderse: do you have a sandbox machine to test? If so you may be able to play with NIXOS_LUSTRATE to make it bootstrap the root filesystem at each start maybe?
<aanderse> immae: was going to do this on a fresh box
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
erasmas has quit [Ping timeout: 256 seconds]
<immae> I’m reading the stage-*-init.sh, and it might be much simpler without NIXOS_LUSTRATE actually, since the boot process is creating everything it needs
<ottidmes> ,ping
<{^_^}> pong
aveltras has joined #nixos
relaxmax has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « postgresql: remove version from passthru »: https://git.io/JfIPz
<NickHu> Would anyone please take a look at this very small PR https://github.com/NixOS/nixpkgs/pull/76998 so we can get it merged?
<{^_^}> #76998 (by jflanglois, 15 weeks ago, open): profile-sync-daemon: fix psd-overlay-helper paths
<NickHu> It's stalled for a very long time now
<infandum> immae: I did `ldd lib/R/library/stats/libs/stats.so` and some are pointing to /nix/store but most are pointing to /usr/lib, so it has to be an issue with the R installation in nix, right?
sarcasticadmin has quit [Ping timeout: 256 seconds]
<immae> infandum: what is the full path?
justanotheruser has quit [Ping timeout: 272 seconds]
<infandum> immae: /nix/store/lvyxpvbxmhzxlz9qmcnyh9hxv68kyywq-R-3.6.2/lib/R/library/stats/libs/stats.so
<immae> ok
<immae> Then it should have them all point to objects in /nix/store
erasmas has joined #nixos
<immae> unless you have some LD_LIBRARY_PATH or LD_PRELOAD in your env? (but even there it should still be hardcoded in the library)
<infandum> oh wait, that wouldn't matter anyway because the error was pointing to the /usr/lib, not the /nix/store, so it's not using the correct stats.so anyway
<infandum> uuuuuggggghhh
<immae> yes, in my question earlier I was asking about /usr/lib/R/library/stats/libs/stats.so (so the one from your arch installation)
<asheshambasta> I have this question on overlays: https://www.reddit.com/r/NixOS/comments/g6mr0n/understanding_overlays/
virus_dave_ has joined #nixos
<infandum> immae: When I remove R, I get readCreateProcess: runInteractiveProcess: exec: does not exist (No such file or directory), so it's using the system R. It doesn't see R in nix at all
<infandum>
dooygoy has joined #nixos
<infandum> I thought buildInputs did runtime dependencies?
<asheshambasta> I'm having some trouble wrapping my head around how derivations work, and how the dependencies are evaluated while evaluating a derivation.
<infandum> asheshambasta: You and me both :(
virus_dave has quit [Ping timeout: 256 seconds]
virus_dave_ is now known as virus_dave
leotaku has joined #nixos
<immae> infandum: not exactly, but you just pointed something: it checks the content of the resulting files to know what will be runtime dependencies. However in your case the process "R" is called via the PATH so maybe that’s why it finds the system one (which is in your path) rather than the one in the nix store (which doesn’t exist as far as your program can see)
<asheshambasta> yeah, in this case, I'm marking some packages as not broken within and overlay, and one of these packages depends on another one being marked as not-broken in the same overlay. However, it isn't working as I'd expect.
philr_ has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @toraritte opened pull request #85870 → mit-scheme: 9.2 -> 10.1.10 → https://git.io/JfIXO
<immae> infandum: can you prefix /nix/store/lvyxpvbxmhzxlz9qmcnyh9hxv68kyywq-R-3.6.2/bin to your path and retry?
<{^_^}> [nixpkgs] @Mic92 merged pull request #85243 → rust-analyzer: 2020-04-06 -> 2020-04-20 → https://git.io/Jfed7
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/JfIX2
justanotheruser has joined #nixos
reis-r has joined #nixos
gaborr has quit [Remote host closed the connection]
kenran has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Mic92 pushed to master « linux_latest-hardened: fix evaluation »: https://git.io/JfI1J
luna has joined #nixos
<infandum> immae: That helps, now it's looking for missing libraries, but I think rwrapper may help that
<infandum> immae: I assume there's no way to avoid this issue? I just need to tell people to avoid the system R they need to point to the /nix/store?
<immae> ah
<immae> There is
<immae> when you say missing libraries, you mean R libraries ?
ikervagyok has quit [Remote host closed the connection]
<infandum> yeah
<infandum> I'm trying with rWrapper instead of pkgs.rPackages in the buildInputs
<immae> it’s actually good news
<infandum> Basically, the new error was "R Runtime Error: Error: package or namespace load failed for 'reshape2' in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/home/gw/R/x86_64-pc-linux-gnu-library/3.6/stringi/libs/stringi.so': libicui18n.so.65: cannot open shared object file: No such file or directory"
<infandum>
<infandum> I was like oh duh, gotta remove those libraries from the system (user) still
rogue_koder_ has quit [Ping timeout: 256 seconds]
<immae> So basically, you now have to: create an R environment with all its libraries (I don’t know how, for python I would do python.withPackages, you need to find an equivalent to that), and then wrap your program to prefix the path with that environment
<infandum> so I deleted the ~/R folder, ran again, then got R Runtime Error: Error in library(ggplot2) : there is no package called 'ggplot2', so I assume buildInputs with rPackages.ggplot2 wasn't being found, so I'll use the rWrapper
<infandum> immae: So is there a way for me to not have people prefix the path manually?
<immae> YEs
rogue_koder_ has joined #nixos
<immae> But first you have to build your R+neededRpackages environment
<infandum> okay, I'll test when it finishes building
<immae> Also, you won’t need to put them in buildInputs
<immae> since it’s runtime dependencies
<immae> (but they’re harmless here for now)
<infandum> immae: Some packages, like clustering and differential require it when building
<infandum> R that is
<immae> ah ok
<infandum> I also have fontconfig errors and LC_ warnings, but those aren't important
<infandum> the fontconfig may be because I'm using the nixos snapshot with a newer arch
<immae> ok
<immae> (I have the same yes)
<infandum> Well that didn't work
<infandum> still no package called ggplot2 even with the rWrapper
<infandum> Oh, wrong R in path, hold on
scheming_around has joined #nixos
<scheming_around> Hello, the expressoin (x: x x) (x: x x) causes a SIGSEGV in nix repl on my system
<scheming_around> I assume this is not the intended behavior?
<infandum> immae: No, didn't work
reis-r has quit [Remote host closed the connection]
<infandum> Boy, R sure is complicated
<immae> infandum: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/r.section.md this page explains how to build an environment like you want
<cole-h> scheming_around: on `nixUnstable` I get a "stack overflow (possible infinite recursion)" error. So, it might have been fixed since the latest release
<immae> (the first one with rEnv = ... )
<immae> You need to have that working for R before being able to continue
<infandum> immae: So I need it separate from my default.nix?
<immae> for now make it work outside of default.nix yes
<immae> then we’ll integrate it
rogue_koder_ has quit [Ping timeout: 240 seconds]
adyatlov has quit [Ping timeout: 240 seconds]
<infandum> Did the config.nix change? It's not finding rEnv
<infandum> I followed the instructions exactly
<infandum> Same location, right?
<{^_^}> [nixpkgs] @matthuszagh opened pull request #85871 → pyclipper: init at 1.1.0.post3 → https://git.io/JfI1h
<{^_^}> [nixpkgs] @Mic92 merged pull request #85863 → kitty: 0.17.2 -> 0.17.3 → https://git.io/JfIKt
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfIMe
<infandum> oh, nevermind
mallox has quit [Quit: WeeChat 2.8]
<immae> rEnv is an attribute you define yourself
<immae> The important part of the example is the rWrapper.override part
FRidh has joined #nixos
<infandum> Okay, I did it but the same no ggplot2 error
<infandum> which R points to ~?.nix-profile/bin/R
<infandum> ~/.nix-profile/bin/R I mean
<infandum> I assume it's because the executable ldd points to the R installed along with it, not the one I just did in my .config
<infandum> because running R from the command line does see ggplot2
<immae> Can you tell me how I can test ggplot2 existence form a R-shell?
<infandum> immae: library(ggplot2)
peelz has joined #nixos
<infandum> if there's no message it worked
<immae> > library(ggplot2)
<{^_^}> undefined variable 'library' at (string):306:1
<immae> Learn more about the underlying theory at https://ggplot2-book.org/
<peelz> is there somehow a way to get the path of the module that is importing another?
<immae> infandum: so it works for me, you might have missed something in your test
<immae> Can you re-share your default.nix?
<infandum> immae: No, it works for me, but the executable for the default.nix isn't working
<immae> ah
<immae> Did you put the correct path in your test?
<immae> should look like "R-3.6.3-wrapper" (notice the -wrapper at the end)
<infandum> So to sum it up: R from command line works. However, the executable still gives the no ggplot2 error, because it points to the libR.so that was built with it (I assume this is the reason)
<immae> ok that makes sense
<infandum> So basically, I need to point the executable to the new Renv we just built
<immae> so your program both "calls" R and uses the libR library
<infandum> I assume
<infandum> yes
<immae> ok
<infandum> I guess
<infandum> this is a heck of a first try with nix, I'll tell you that
reallymemorable has quit [Quit: reallymemorable]
drakonis has joined #nixos
<immae> You didn’t chose the easy way for sure :p
<infandum> I've used nix before, never built anything with a default.nix though
<immae> So, you’ll need to define your rEnv = rWrapper.override {... } at the top of the default.nix file, and use rEnv as buildInputs
reallymemorable has joined #nixos
<immae> This should (hopefully, if rWrapper works well) solve the libR issue
rogue_koder_ has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #85872 → coqPackages.equations: 1.2 → 1.2.1 → https://git.io/JfIMC
<immae> If that works we can handle the "process" call afterwards
negaduck has joined #nixos
<peelz> could someone merge #85669 ?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/85669 (by LouisTakePILLz, 2 days ago, open): r8125: 9.003.02 -> 9.003.04
lordcirth__ has joined #nixos
rogue_koder_ has quit [Excess Flood]
rogue_koder_ has joined #nixos
<negaduck> hello. I'm trying to write a shell.nix with `buildInputs = [ tensorflow ]`, but I'm not sure how to put this package in the list: https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/python-modules/tensorflow/2
lordcirth has quit [Ping timeout: 252 seconds]
<negaduck> should it be python-modules.tensorflow.2?
<infandum> immae: ugh, that's giving me infinite recursions
turion has quit [Ping timeout: 265 seconds]
<immae> Hmm can you share your default.nix?
<infandum> Nevermind, I just used R instead of Renv, but apparently I can't do that
<immae> hmm
<infandum> immae: Newest version building now: https://pastebin.com/g1b0bUiM
<immae> no indeed, R is already mentionned in rWrapper so that’s why you got infinite recursion
ris has joined #nixos
phreedom has quit [Ping timeout: 240 seconds]
<infandum> ah
<immae> ok it’s more complicated than needed but it should work
<infandum> immae: Evidence suggests that it wont haha
<infandum> but we'll see
<infandum> Thank you for spending so much time with me
<infandum> I feel like this should go in a documentation note somewhere
<{^_^}> [nixpkgs] @offlinehacker closed pull request #75527 → hasura: init at 1.1.1 → https://git.io/Je9x6
<{^_^}> [nixpkgs] @offlinehacker reopened pull request #75527 → hasura: init at 1.1.1 → https://git.io/Je9x6
<infandum> Should I remove the R installed with the Renv in the config.nix?
<immae> You should just uncomment line 21 and rename it Renv instead of R (and use Renv everywhere rather than pkgs.Renv)
<immae> But for now it will do
<immae> (or should, as far as I see yet)
<infandum> immae: Did not work
<immae> still complaining about the missing R library?
<infandum> yeah
<immae> which PATH are you using when calling it?
<infandum> probably because it's still looking at the R in ~/.nix-profile/bin
<infandum> Wait, it's not, I used the bin that it's using for the libR.so
<infandum> so it should be ok
<infandum> i.e. PATH=/nix/store/shj6d1hn391pzsm7gwz6whmdiq08jaqf-R-3.6.2/bin:$PATH too-many-cells
<infandum>
<immae> Definitely not ok since it doesn’t contain the "-wrapper" keyword :)
<immae> But let’s handle it in the derivation
<infandum> oh
<infandum> I did ldd ~/.nix-profile/bin/too-many-cells
vidbina_ has joined #nixos
<infandum> it points to that path (without the bin and instead the libR.so, you get the point)
<infandum> I built with the default.nix that I sent you, so I don't know why it would do that, all references piont to the pkgs.Renv which is an rWrapper
<immae> you’ll need to add a postInstall at the bottom with postInstall = attrs.postInstall + "wrapProgram $out/bin/too-many-cells --prefix PATH : ${Renv}/bin";
<immae> This will prepend the Renv to the PATH in the derivation
<immae> (Renv or pkgs.Renv, the thing you defined at the top)
<infandum> attribute postInstall missing
<immae> just remove the "attrs.postInstall +" part then
<infandum> yeah
<infandum> go tit
phreedom has joined #nixos
<infandum> immae: But it's still pointing to the wrong libR.so, right?
<{^_^}> [nixpkgs] @Frostman opened pull request #85873 → grafana: 6.7.2 -> 6.7.3 → https://git.io/JfIMh
<immae> I’m not sure I understood your description so I don’t know :)
<infandum> err, so ldd ~/.nix-profile/bin/too-many-cells gives libR.so => /nix/store/shj6d1hn391pzsm7gwz6whmdiq08jaqf-R-3.6.2/lib/R/lib/libR.so, which isn't an r-wrapper
<infandum>
<immae> hmm
<immae> ldd should not work anymore after the wrapProgram
FRidh has quit [Quit: Konversation terminated!]
<immae> (since too-many-cells will become a shell script)
<infandum> immae: Oh, this is before
<infandum> also, error for adding the postInstall: Warning: The directory
<infandum> /nix/store/ikshyr28hahknm87vn4mcwgxq6hhj7f2-too-many-cells-0.2.2.1/bin is not
<immae> ah
<infandum> in the system search path.
<infandum> /nix/store/vilh5ays3ymz3xkwk0fri2a70lha7pfc-stdenv-linux/setup: line 81: wrapProgram: command not found
<infandum>
<immae> Ah you need pkgs.makeWrapper in buildInputs
<{^_^}> [nixpkgs] @jonringer opened pull request #85874 → Revert "linux_*_hardened: use linux-hardened patch set" → https://git.io/JfIDT
<infandum> Ok, should the postInstall be just a string?
<immae> it’s a script yes
jakobrs has joined #nixos
<infandum> ok
<infandum> I am concerned that the lib and the bin will be two different paths
<immae> yes me too
<jakobrs> Apparently there are rumors that Apple are going to start making MacBooks in 2021 maybe using their own ARM chips
<immae> you might need to add a similar wrapProgram with --prefix LD_LIBRARY_PATH
<infandum> Yeah, still didn't work
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jakobrs> How much would that affect Nix on Darwin?
<negaduck> ok, I found out I have to use python37.withPackages. How to make it use tensorflow 2 instead of 1?
<infandum> I wonder why ldd points to the wrong path..
<immae> you might need the LD_LIBRARY_PATH at runtime
<immae> in any case now too-many-cells should be a shell script so ldd on it will produce an error
<{^_^}> [nixpkgs] @Mic92 merged pull request #85816 → keycloak: 9.0.2 -> 9.0.3 → https://git.io/JfIkH
<infandum> Oh, the wrapper folder doesn't have a library, just a bin
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfID3
<cole-h> btw Mic92 if you edit your `@ofborg eval` comment, it will re-trigger without you having to post a new comment
<immae> infandum: it’s not necessarily a problem
<Mic92> cole-h: thanks!
<cole-h> (so all those red x's that you tried to eval earlier can get another shot)
<immae> did it build with the wrpProgram?
<infandum> immae: Yes, but same error
<cole-h> Mic92: Literally add a single space or something, and it should kick off (whatever makes GH recognize it as an "edit")
<negaduck> I'm trying to put tensorflow 2 in the buildInputs. There are two versions of it here: https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/python-modules/tensorflow/
<negaduck> how to use the tensorflow/2?
<{^_^}> [nixpkgs] @Mic92 closed pull request #85874 → Revert "linux_*_hardened: use linux-hardened patch set" → https://git.io/JfIDT
<immae> negaduck: tensorflow_2
<immae> (or tensorflow-bin_2 )
<immae> infandum: so just to make sure we’re on the same line, the error is about R packages not found?
<negaduck> immae: cool, thanks, it's downloading it
<infandum> immae: Yes
<immae> negaduck: (you’ll find it in pkgs/top-level/python-packages.nix)
<immae> infandum: ok
<amanjeev> Wrote something little for upgrade (my experience) https://amanjeev.com/blog/nixos-20-03-upgrade
<gchristensen> amanjeev: reading through, cool! one thing: the period here is easy to accidentally copy: nix-channel --add https://nixos.org/channels/nixos-20.03 nixos. really nice notes on your upgrade process!
<infandum> immae: When I cat the R from the /nix/store/*wrapper*/bin/R, it shows ggplot2 there
<infandum> It's baffling
<immae> yes that’s where I landed just now :)
<immae> It sets a environment variable and runs R
<infandum> yeah
<immae> I guess you have to do the same when runninng your program
<evelyn> hmm curious, how long does it usually take to review a given pull request?
<evelyn> there are thousands open on nixpks
<{^_^}> [nixpkgs] @Frostman opened pull request #85876 → kubernetes-helm: 3.1.2 -> 3.1.3 → https://git.io/JfID2
<immae> infandum: can you manually set export R_LIBS_SITE=(same content as the wrapper) in your shell before running your program?
<{^_^}> [nixops] @grahamc merged pull request #1275 → Move from xml intermediate Nix representation to JSON → https://git.io/JvFBT
<{^_^}> [nixops] @grahamc pushed 14 commits to master: https://git.io/JfIDa
<immae> to test if the libR will honor it
<infandum> immae: I set that variable to what is in the R file in front of the executable call but it still doesn't work
<immae> (pray that it will, otherwise I have no clue)
<immae> oh
<virus_dave> Can someone with merge ability look at #85844? Thanks in advance. Also, if i wanted to get this back ported into 20.03, what do i need to do to make that happen?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/85844 (by virusdave, 12 hours ago, open): xcbuild: add support for exporting sdk info
rogue_koder_ has quit [Ping timeout: 264 seconds]
<immae> infandum: did you double check? if it doesn’t work I think we reached a dead end
<immae> that means that libR doesn use that variable to find its libraries
<infandum> immae: AH IT WORKED
chloekek has joined #nixos
<infandum> when I collapsed the lines, it left spaces, sorry about that
<infandum> so when I export that in front it works
<immae> 😌
<immae> phew
<infandum> so...that means that it's not using the Rwrapper for the binary?
<immae> yes
<infandum> or...
<infandum> it needs to set that even before the binary?
<infandum> So libR needs to see that variable without running the binary
<immae> You need to wrapProgram --prefix R_LIBS_SITE
<immae> yes
<infandum> but... what will be in that R_LIBS_SITE?
<immae> The same as what is in the wrapper script
<infandum> I would want that to be auto generated...
<infandum> by the default.nix
<immae> I’m looking if there is an easy way to get it yes
rogue_koder_ has joined #nixos
zupo has joined #nixos
<{^_^}> [nixops] @adisbladis opened pull request #1318 → Add plugin hooks required for the encrypted links plugin → https://git.io/JfIDH
<thoughtpolice> fun switcharoo of the day: attempting a complete one-shot migration from nvidiaBeta to amdgpu with a single 'nixos-rebuild boot'. Fingers crossed.
<jakobrs> Is it possible to use a remote builder while cross-compiling?
<Yaniel> thoughtpolice: worked without a hitch for me
<jakobrs> I mean, say you've got a x86_64-linux machine and an aarch64-linux remote server
<Yaniel> (jinx)
zupo has quit [Client Quit]
<infandum> immae: It bothers me because it should work the original way I did it (https://github.com/tweag/HaskellR/issues/344)
<{^_^}> tweag/HaskellR#344 (by idontgetoutmuch, 37 weeks ago, closed): R Packages Not Available via Nix?
<infandum> But it doesn't
<thoughtpolice> Yaniel: I suspect so. Not even sure how I'd pull this off on other distros! (And in theory the reverse, amdgpu to nvidia, should work too, and would even be more difficult elsewhere)
<jakobrs> Could you then use the aarch64-linux remote server as a remote builder for building aarch64?
<thoughtpolice> Used NixOS for too long at this point
Emiller88 has joined #nixos
<Yaniel> in other distros you'd probably be left with some cruft somewhere
<Yaniel> unless you do a full reinstall
<thoughtpolice> jakobrs: Yes, when you specify a remote machine, you can specify the architecture it builds on. I used to regularly do darwin and aarch64 builds this way
<immae> infandum: your case seems a bit different
<thoughtpolice> from x86_64-linux
<jakobrs> but can a remote aarch64 machine build x86_64 builds?
<gchristensen> if the build is a cross-build at evaluation time
<gchristensen> Nix won't let you dynamically cross-build sometimes and regular-build other times based on what builders you have available
<jakobrs> I'll try to get the rpi working then
<immae> infandum: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/r-modules/wrapper.nix If I follow this, you just have to add each R package as a dependency + a `wrapProgram $out/bin/too-much-cells --prefix "R_LIBS_SITE" ":" "$R_LIBS_SITE"`
<jakobrs> Also, is it possible to forward some, but not all build?
<thoughtpolice> jakobrs: You mean, you're on x86_64, and you want to do a remote build (i.e. Nix will SSH into an aarch64 machine), and then *that* aarch64 builder does another x86_64 build?
<thoughtpolice> In other words, two remote hops?
<jakobrs> the aarch64 machine would cross-compile to x86_64
<immae> (as a direct dependency at the bottom this time, maybe the Renv wasn’t needed after all)
<jakobrs> so only two machines
WhatisRT has joined #nixos
<infandum> Looks like a similar issue, their solution was the postInstall
<immae> yes
<immae> xitian’s suggestion may work (but you have to write them all)
<immae> (two posts below)
<jakobrs> Also, this is a different question, but how much would need to be changed to allow _interactive_ remote build?
<infandum> yeah, but I have to write them all haha
<thoughtpolice> jakobrs: Oh, okay. Yeah, that should work fine. You can either use the cross build infrastructure natively to do a "normal" cross compile build like you would normally. You could also use nix remote building to build directly on an x86_64 machine if you have one to spare.
<jakobrs> where you can decrypt the keys at build time
<thoughtpolice> But both of those should work
<immae> In any case, you just need to find a way to properly set this environment variable
<jakobrs> I'll try to get the rpi running
<negaduck> where can I add allowUnfree in shell.nix?
<immae> maybe my suggestion would work, or the one from the discourse post
<infandum> ok
<infandum> immae: Thank you so much for all of your help!!!!
<immae> You’re welcome
<immae> Note that we added many things that may not be needed anymore
<immae> but once it works it’s easy to test what can be removed :)
<thoughtpolice> jakobrs: You mean your passphrase for decrypting SSH keys? Uhhh, I don't know, but frankly if you want to do stuff like that, you're probably better off in the long run either just A) not doing it and using a specific burner key, and live with the security or B) start looking into things like certificates for signing keys.
sarcasticadmin has joined #nixos
<infandum> immae: What about the LD_LIBRARY_PATH stuff for macOS?
<thoughtpolice> I've run into this myself and ultimately just decided for only a single person it wasn't worth trying to hack in. Personally, anyway! Maybe interactive support isn't so hard.
<infandum> I don't have that OS
<immae> It becomes DYLIB_SOMETHING
<infandum> so I do need it I assume
<jakobrs> I'd imagine the main problem is that nix builds are "supposed" to be non-interactive
<{^_^}> [nixpkgs] @jonringer merged pull request #85873 → grafana: 6.7.2 -> 6.7.3 → https://git.io/JfIMh
<{^_^}> [nixpkgs] @jonringer pushed commit from @Frostman to master « grafana: 6.7.2 -> 6.7.3 »: https://git.io/JfIyk
<immae> infandum: test it but maybe you don’t need the libHack
kazzimazzi[m] has joined #nixos
<immae> (in which case you don’t care if it’s macos or not)
<infandum> ok
<infandum> thank you!
<immae> You’re welcome
kazimazi has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed to master « elementary-planner: 2.3.2 -> 2.3.3 »: https://git.io/JfIyY
<WhatisRT> is there a way to use the unstable channel for a derivation?
<{^_^}> [nixpkgs] @Frostman opened pull request #85877 → hugo: 0.69.0 -> 0.69.1 → https://git.io/JfIyG
<{^_^}> [nixpkgs] @jonringer merged pull request #85876 → kubernetes-helm: 3.1.2 -> 3.1.3 → https://git.io/JfID2
<{^_^}> [nixpkgs] @jonringer pushed commit from @Frostman to master « kubernetes-helm: 3.1.2 -> 3.1.3 »: https://git.io/JfIyZ
<jakobrs> thoughtpolice: I'd never heard about ssh certificates before
<WhatisRT> I have a derivation that will at this point only work in the unstable channel, but I don't want to tell everyone to use that channel there
<jakobrs> thank you for telling me about that
<{^_^}> [nixpkgs] @worldofpeace merged pull request #85802 → gtk3: 3.24.17 -> 3.24.18 → https://git.io/Jfkhj
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to staging: https://git.io/JfIyC
<arianvp> gchristensen: ping
<gchristensen> arianvp: heya
<thoughtpolice> jakobrs: Yeah, they're super cool! I only learned about them recently. And if you use something like https://vaultproject.io it can do like an entire CA for you, with rotation, an API etc for grabbing short-lived keys for auth, etc.
<arianvp> what kind of evil do you want to do today
<gchristensen> arianvp: lol let's go to -ofborg where we're discussing somerelated stuff?
<arianvp> ok!
<jakobrs> I'm going to read about them shortly
<jakobrs> I'll just probably want to get the machine up and running first
<arianvp> which channel is that?
<gchristensen> arianvp: oops, just -borg
<thoughtpolice> *nod*
<arianvp> ah
<gchristensen> #nixos-borg
<jakobrs> Is it normal if I run a nixos test and nothing is outputted?
kazimazi has quit [Quit: Leaving]
<cole-h> Which test?
<jakobrs> tests.installer
<jakobrs> Mic92 commented @grahamcofborg test installer a week ago on one of my prs and ofborg didn't respond so I figured I should probably run the test myself
nschoe has quit [Ping timeout: 272 seconds]
<cole-h> Which PR?
<{^_^}> [nixpkgs] @sternenseemann opened pull request #85878 → ocamlPackages.dns: 4.4.1 -> 4.5.0 → https://git.io/JfIyQ
<cole-h> jakobrs: Assuming you're talking about #84476, ofborg did run the test successfully
<{^_^}> https://github.com/NixOS/nixpkgs/pull/84476 (by jakobrs, 2 weeks ago, open): Add terminus_font to installation isos' console.packages
<jakobrs> #84476, yeah
<{^_^}> https://github.com/NixOS/nixpkgs/pull/84476 (by jakobrs, 2 weeks ago, open): Add terminus_font to installation isos' console.packages
<cole-h> ofborg hasn't done comments in quite a while; if you look at the successful checks, you'll notice it say "tests.installer on x86_64-linux — Success"
<cole-h> (and likewise for aarch64-linux)
<jakobrs> oh, that's cool
<{^_^}> [nixpkgs] @lovesegfault opened pull request #85879 → opencv4: 4.1.2 -> 4.3.0 → https://git.io/JfIy5
turion has joined #nixos
wfranzini has quit [Remote host closed the connection]
tokudan has quit [Remote host closed the connection]
wfranzini has joined #nixos
Emiller88 has quit [Remote host closed the connection]
<jakobrs> But yeah, is no output normal?
Emiller88 has joined #nixos
tokudan has joined #nixos
dermetfan has joined #nixos
<lovesegfault> andi-: you around?
<andi-> ya?
<lovesegfault> andi-: wondering whether you have any clue about what's going on here: https://github.com/NixOS/nixpkgs/pull/85879
<{^_^}> #85879 (by lovesegfault, 6 minutes ago, open): opencv4: 4.1.2 -> 4.3.0
<andi-> looking
<jakobrs> ayyy I got ubuntu running on the rpi headless
<jakobrs> Now to install nix
lordcirth__ is now known as lordcirth
<jakobrs> Is there anything I need to be aware of when installing nix on aarch64 ubuntu?
<lovesegfault> I run NixOS on aarch64 and things work just fine
asheshambasta has quit [Ping timeout: 272 seconds]
<andi-> lovesegfault: I think that might just be an upstream issue? Maybe our compiler is too new for whatever they are doing?
<jakobrs> I was talking about nix specifically, although I do want to get NixOS working as well
<lovesegfault> andi-: I was more thinking our binutils is too old
<lovesegfault> we use binutils from 2018
<andi-> maybe that
<andi-> I think I tried touching/updating that once.. wasn't really fun
<{^_^}> #78204 (by guibou, 13 weeks ago, open): binutils: 2.31.1 -> 2.33.1
<lovesegfault> This blessed soul is trying
growpotkin has joined #nixos
numkem has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
numkem has joined #nixos
<numkem> lovesegfault: what kind of board/computer do you have for aarch64?
<jakobrs> thoughtpolice: Mind if I ask you how you use vaultproject.io for certificate related stuff?
reallymemorable has quit [Quit: reallymemorable]
<lovesegfault> numkem: rpi4, also an rpi3
<lovesegfault> I have an Nvidia AGX Xavier too, but I haven't figured out how to get NixOS on it
<numkem> lovesegfault: thanks, did you put /nix on an external SSD?
<cole-h> Or HDD, but that's probably for the best considering how fast SD cards wear
<numkem> that's what I'd be worried about, with the usage it could be within a few months
endformationage has joined #nixos
<{^_^}> [nixpkgs] @emilazy opened pull request #85880 → linux_*_hardened: index patches by major kernel version → https://git.io/JfISX
<lovesegfault> numkem: nope, sd card and I live dangerously
<cole-h> Wow
<cole-h> lovesegfault: I guess I was wrong about you....
<cole-h> :P
virus_dave2 has joined #nixos
seku has joined #nixos
<numkem> he does love segfaults... that's quite dangerous
<jakobrs> How do I fix "command not found: nix-store" when trying to do nix ping-store?
<jakobrs> The manual says that I need to ensure that nix-store is available on the remote machine,
<jakobrs> in non-interactive sessions, but it doesn't specify how
mallox has joined #nixos
rendeko[m] has left #nixos ["User left"]
<symphorien> jakobrs: depends on the shell
rogue_koder_ has quit [Ping timeout: 256 seconds]
<symphorien> With zsh, set PATH correctly with /etc/zsh/zshenv
<symphorien> With bash I don't know if it is even possibme
<{^_^}> [nixpkgs] @sternenseemann opened pull request #85881 → apostrophe: add alias from uberwriter → https://git.io/JfISh
rogue_koder_ has joined #nixos
reallymemorable has joined #nixos
<ixxie> hmm what was the command to open a nix shell, as in a nix-lang shell
<cole-h> `nix repl`?
<cole-h> `nix repl '<nixpkgs>'` if you want access to nixpkgs stuff
dermetfan has quit [Ping timeout: 240 seconds]
reallymemorable has quit [Client Quit]
virus_dave2 has quit [Remote host closed the connection]
reallymemorable has joined #nixos
<jakobrs> Was nix repl ever called nix-repl?
<jakobrs> because I've seen it referred to as that by documentation stuff
<cole-h> I don't think so? At least, not in the past 3 months I've been here :P
<cransom> there was one called nix-repl, prior to nix 2 at least
<gchristensen> yeah, back before nix-repl was part of Nix itself
<cole-h> I stand corrected
<jared-w> I'm still sad there's no v2 shell. Like, it doesn't really matter, but it feels weird to have `nix <space> command` for everything but my most used nix related command.
<jakobrs> I kind of wish there was a command that's a hybrid of nix-shell and nix run
<cole-h> IIRC, `nix run` is the replacement for `nix-shell`, and it might soon be renamed to `nix shell` to support that
<jakobrs> Think allowing _both_ nix-shell for getting dependencies, etc *and* nix run / nix-shell -p for adding extra programs
<ixxie> thanks folks
<jakobrs> But it's not too important since you can just launch recursive nix-shells.
<jared-w> cole-h: nix run doesn't do everything or even really most of the stuff that nix-shell did. It also has different behavior for certain things and the differences can get ugly if you or tooling you use start relying on some of those obscure features/behaviors
<ixxie> hmm how do you exit the nix repl :D
<jakobrs> Do I need to specially craft nix derivations in order for it to be possible to cross-compile?
<jakobrs> ixxie: :q
<cole-h> ixxie: Alternatively, C-d (Ctrl+D)
<{^_^}> [nixpkgs] @matthuszagh opened pull request #85882 → wxformbuilder: init at 3.9.0 → https://git.io/JfI9K
<ixxie> cheereos :)
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
leo60228 has joined #nixos
<leo60228> this goes on for literally 30 seconds at boot, please help https://gist.github.com/0cb5ef1261392cb07e39cf3331591866
<{^_^}> [nixpkgs] @romildo opened pull request #85883 → deepin.deepin-anything: fix building with linux kernel 5.6 → https://git.io/JfI9X
<leo60228> the entire rest of my boot process is like 1s
<ixxie> hmm but nix repl can't access environment variables I guess
<leo60228> and this takes 30 seconds
<cole-h> ixxie: `builtins.getEnv` maybe?
<leo60228> /dev/sdb, /dev/sdc, and /dev/sdd are from my card reader
<cole-h> Yeah, `builtins.getEnv` works for me
<ixxie> cole-h: right... forgot to export the variable
<cole-h> x)
<ornxka> has anyone here ever gotten indentation working right in nix-mode
<gchristensen> heh
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen has joined #nixos
<ornxka> (nix-indent-function #'nix-indent-line) i use this but still it does thing like match delimiters in comments to ones outside of comments
<thoughtpolice> jakobrs: I use Vault but only for some basic stuff -- SSH certificates have been on my "look at" for a little while tho, haven't made the jump for any automation yet
<{^_^}> [nixpkgs] @Mic92 merged pull request #85506 → mednafen: Add alsaLib to get ALSA audio output → https://git.io/JfUvv
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfI97
zupo has joined #nixos
xfix has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
chagra has quit [Read error: Connection reset by peer]
rogue_koder_ has quit [Ping timeout: 256 seconds]
proofofkeags has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 merged pull request #85858 → openvpn: 2.4.7 -> 2.4.9 → https://git.io/JfIwv
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfI9b
xfix has joined #nixos
<ixxie> immae: turns out you need to lib.splitString "\\n" because it seems builtins.getEnv will escape slashes for you...
chagra has joined #nixos
<ornxka> oh there we go, the nix-mode from git works fine
<ornxka> but the elpa one was totally broken
<ornxka> weird
<jakobrs> error: You are not privileged to build derivations
chloekek has quit [Ping timeout: 260 seconds]
<jakobrs> What does that mean?
<lordcirth> The nix-daemon is configured to not allow you to request builds
<jakobrs> But it works normally
<jakobrs> just not when doing remote builds
<lordcirth> This is over ssh?
<jakobrs> yes
<jakobrs> nix-build a.nix --builders 'ssh://ubuntu@10.0.0.81' -j0
<jakobrs> If I specify that the remote builder is aarch64-linux explicitly, it errors with "Unable to start any builds" instaed
<{^_^}> [nixpkgs] @jonringer merged pull request #85871 → pyclipper: init at 1.1.0.post3 → https://git.io/JfI1h
<{^_^}> [nixpkgs] @jonringer pushed commit from @matthuszagh to master « pyclipper: init at 1.1.0.post3 »: https://git.io/JfIHc
<lordcirth> jakobrs, what user are you running nix-build as locally when it does work?
<lordcirth> Also 'ubuntu'?
leo60228 has quit [Remote host closed the connection]
<jakobrs> yes
lsix has quit [Ping timeout: 256 seconds]
<jakobrs> I tried to make it a trusted-user but it still does not work
dsx_loves_you has joined #nixos
rogue_koder_ has joined #nixos
<jakobrs> nixos/nix#2789
<{^_^}> https://github.com/NixOS/nix/issues/2789 (by arcnmx, 51 weeks ago, open): distributed builds require a trusted remote user
zupo has quit [Ping timeout: 264 seconds]
lsix has joined #nixos
<infandum> immae: If you're interested, I think I made it work automatically with --prefix-contents 'R_LIBS_SITE' ':' "${pkgs.Renv}/bin/R". I assume it plops everything in that file as a string, so it just works as the export stuff and binary stuff is ignored in the R_LIBS_SITE
drakonis has quit [Ping timeout: 246 seconds]
negaduck has quit [Ping timeout: 272 seconds]
<immae> infandum: ah cool congrats
<jakobrs> Oh I had to restart nix-daemon
<immae> ixxie: ok
zupo has joined #nixos
chloekek has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed 5 commits to glibc231: https://git.io/JfIH6
lucus16 has joined #nixos
kenran has joined #nixos
<jakobrs> before I /part, thanks all
jakobrs has left #nixos [#nixos]
<{^_^}> [nixpkgs] @Ma27 opened pull request #85884 → matrix-synapse: 1.12.1 -> 1.12.4 → https://git.io/JfIHH
scheming_around has quit [Ping timeout: 256 seconds]
proofofkeags has joined #nixos
elibrokeit has quit [Quit: A random quit message]
elibrokeit has joined #nixos
kazimazi has joined #nixos
luna has quit [Ping timeout: 240 seconds]
vidbina_ has quit [Ping timeout: 272 seconds]
dermetfan has joined #nixos
drakonis has joined #nixos
chagra has quit [Read error: Connection reset by peer]
relaxmax has joined #nixos
kazimazi has quit [Quit: Leaving]
reis-r has joined #nixos
knupfer has quit [Ping timeout: 258 seconds]
kenran has quit [Ping timeout: 265 seconds]
<armin> hm, so as can be seen on https://i.imgur.com/SDgJZXu.png it's possible to use things like ${system.nixos.version} in motd - is it possible to customize issue and issue.net that way, too?
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c23427de0d5 (from 13 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
dingo has joined #nixos
<dsal> Can someone denoob me on cabal2nix + nix-build? What's the shortest path from 'stack test' to 'nix-something test' ?
<dsal> cabal2nix spits out a derivation, but I don't know what to do with that.
chagra has joined #nixos
knupfer has joined #nixos
<dingo> is there a way to see why a python-module was marked as broken before the 20.03 release? it was updated on the master after release-20.03 branched off
Desetude has quit [Quit: WeeChat 2.7.1]
<lordcirth> dingo, git blame on and look for the commit that marked it broken
<dingo> lordcirth: i did "treewide: mark broken packages for 20.03"
<lordcirth> Ah, that's not helpful
<dingo> yep
<cole-h> If it failed to build in hydra, it was marked as broken for 20.03
<dingo> cole-h: but then a bot would have marked it broken, not samueldr right?
iqubic has quit [Remote host closed the connection]
<cole-h> Not necessarily. We don't have a "mark-broken" bot yet.
<dingo> oh - i ment Samuel Leathers sorry!
iqubic has joined #nixos
<{^_^}> [nixpkgs] @primeos opened pull request #85886 → libva: 2.6.1 -> 2.7.1 → https://git.io/JfI7a
<dingo> cole-h: means the way to trace this would be to go through the hydra builds and check if it failed there?
<cole-h> Yeah, that's because dis*sm is one of the release managers for 20.03. All packages that failed to build on hydra were marked as broken the day before the release
<cole-h> (Or the day of, I can't remember)
<cole-h> dingo: You can also try to build it yourself, setting `NIXPKGS_ALLOW_BROKEN=1`
<dingo> (was marked at 2020-04-15)
<{^_^}> [nixpkgs] @mehlon opened pull request #85887 → github: add title 'Package request' to issue template → https://git.io/JfI7o
<cole-h> Maybe the commit happened then, but it wasn't merged until ~the day of/before the release
<cole-h> JK
<cole-h> It happened then
<dingo> cole-h: means i can assume it was about being able to build it, rather than some kind of security issue / broken feature
<cole-h> Yes.
xfix has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<dingo> cole-h: alright thanks i'll give it a try
<{^_^}> [nixpkgs] @jtojnar merged pull request #85865 → gnome3.file-roller: 3.36.1 -> 3.36.2 → https://git.io/JfIKa
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/JfI7y
andreas303 has quit [Remote host closed the connection]
xfix has joined #nixos
shreyansh_k has quit [Ping timeout: 250 seconds]
<arianvp> webgl stopped working for me on 20.03
<arianvp> on firefox. anybody experiencing this?
<emily> armin: yep
andreas303 has joined #nixos
<emily> armin: it's all just strings
<manveru> arianvp: works for me with nvidia
<emily> armin: you can template arbitrary files in /etc, or even generate them based on basically arbitrary computations, external dependencies, etc. (at system build time)
codygman has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @mmilata opened pull request #85888 → [20.03] openvpn: 2.4.7 -> 2.4.9 → https://git.io/JfI5J
codygman has joined #nixos
<dingo> arianvp: incase you are refering to this error, yes: https://imgur.com/a/VQAGVsj
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
vesper has joined #nixos
sauyon has quit [Ping timeout: 256 seconds]
<armin> emily: hm ok...
knupfer1 has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
<cole-h> dingo: You might find this discourse topic somewhat informative: https://discourse.nixos.org/t/another-question-regarding-broken-packages/6800/
<armin> emily: anything i should read about except the nix by example thing i'm already at?
knupfer has joined #nixos
vesper11 has quit [Ping timeout: 256 seconds]
fresheyeball has joined #nixos
<arianvp> dingo: yes
<emily> armin: I don't know great tutorial recommendations, unfortunately, but for reference material you can figure out the answer to lots of questions just by searching the online manuals: https://nixos.org/nixos/manual/ https://nixos.org/nixos/options.html https://nixos.org/nixpkgs/manual/ https://nixos.org/nix/manual/
<emily> they're pretty daunting to read through, but good to look things up in
Darkmatter66_ has joined #nixos
<dingo> cole-h: thanks, still building
<armin> emily: ty
Darkmatter66 has quit [Ping timeout: 260 seconds]
<emily> e.g. in this case, the option you'd use to write to /etc/issue or random files in /etc that don't have a specific nixos option would be environment.etc, and https://nixos.org/nixos/options.html#environment.etc are the docs for that
proofofkeags has quit [Remote host closed the connection]
<emily> etc."random-file".text = '' ... ${config.whatever} ... '';
proofofkeags has joined #nixos
<dingo> arianvp: turns out i reproduced your error with a local fork ( version 70.0.1 )
<dsal> Does anyone have any idea how this diff breaks my build like this? https://www.irccloud.com/pastebin/rrpXO7AK/gopro.diff
<dsal> i.e., the thing I'm changing is unrelated to the build error.
<dingo> arianvp: with 75 (from 20.03) and 72 i get a different error (although in both cases it's the same)
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
turion has quit [Ping timeout: 246 seconds]
<dingo> arianvp: in this case it's an ffmpeg error
Th4tGuy has joined #nixos
vidbina_ has joined #nixos
<Th4tGuy> hey all quick question, would this be the appropriate way to set keepDebugInfo in stdenv so that all packages inherit the setting, eg: let mystdenv = stdenv.override { keepDebugInfo = true; }
sauyon has joined #nixos
<dsal> This seems to be broken on this host. Can I delete the things being referenced? Something seems to have gone wrong.
<Th4tGuy> hmm that failed to build :(
<Th4tGuy> ah got it, let mystdenv = pkgs.keepDebugInfo stdenv
dermetfan has quit [Ping timeout: 256 seconds]
chagra has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @emilazy opened pull request #85889 → twitter-color-emoji: 12.1.2 -> 12.1.5 → https://git.io/JfIdm
karantan has joined #nixos
<Th4tGuy> is there a way to change a pkgs install configuration, like i see release installing installed, but is there a flag to set it for debug?
<Th4tGuy> other then keeepDebugInfo?
Emiller88 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @kampka opened pull request #85890 → kops_1_16: 1.16.0 -> 1.16.1 → https://git.io/JfId3
seku has quit [Quit: Connection closed]
fresheyeball has quit [Quit: WeeChat 2.7.1]
dooygoy has quit [Ping timeout: 250 seconds]
<ornxka> nix-env failed a build with not enough memory, if i run it again will it rebuild the whole thing?
<ornxka> ive spent all day compiling chromium and it failed the link stage because of that
<benny> not as far as I can tell ornxka
<drakonis> why are you building chromium?
<ornxka> i686
<benny> but YMMV, but it never did on my system with graalvm
<drakonis> it needs a ton of memory
shreyansh_k has joined #nixos
<drakonis> more memory than a i686 machine can ahve
<drakonis> have
<ornxka> i am remote building it
<ornxka> the remote machine has 24GB
<drakonis> don't use nix-env for it
<ornxka> i think i had about 12 free when it failed
<ornxka> ah, nix-build?
<drakonis> nix-build, yes.
<drakonis> do use that
<MichaelRaskin> It might be that it needs more RAM than a 32-bit process can address
<Cadey> would it be possible to make a version of the nixos manual that splits each section into its own HTML file?
chagra has joined #nixos
<ornxka> hm
<drakonis> that too
<ornxka> does it run the actual toolchain as 32-bit programs?
<ornxka> or does it cross compile and run the toolchain as 64 bit to produce 32 bit programs
samrose has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<MichaelRaskin> I think Nixpkgs build is native
rogue_koder_ has quit [Ping timeout: 256 seconds]
<sphalerite> ornxka: yep nixpkgs builds natively, so the i686 build of chromium can't succeed
<sphalerite> ornxka: maybe use google-chrome instead?
<ornxka> ah...
<ornxka> i dont use "proprietary software" so that is not really an option
<sphalerite> ornxka: nix build --argstr system x86_64-linux --argstr crossSystem i686-linux nixpkgs.chromium
<sphalerite> ornxka: that will get you a cross-built chromium. Will take just as long again, but at least has a chance of succeeding :p
<sphalerite> Or use a less complex browser that's faster to build
<ornxka> ah bless you
<ornxka> lol
<ornxka> there are basically two browsers unfortunately
<ornxka> i dont trust the rest of them
<{^_^}> [nixpkgs] @primeos merged pull request #85783 → sway: Make it possible to use exec in extraSessionCommands → https://git.io/JfkFl
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/JfIFE
<ornxka> it has to run js in a vm
<{^_^}> [nixpkgs] @veprbl opened pull request #85891 → uriparser: 0.9.1 -> 0.9.3 → https://git.io/JfIFz
knupfer has quit [Quit: knupfer]
<sphalerite> ornxka: well, what about w3m or something?
<kraem> is there a way to query `/run/current-system/sw` which attribute installed depends on another attribute without providing the exact derivation path? my workflow of `nix-store --query --tree $(readlink -f /run/current-system)` and then searching for the attribute isn't very optimised. (i'm trying to do this to see what attribute is triggering rebuild of a big package, eg ghc, on rebuilds)
knupfer has joined #nixos
<energizer> am i supposed to do `checkInputs = propagatedBuildInputs`? that seems like it shouldn't be necessary
<lovesegfault> How do circular deps work with Nix? If I change binutils I need to rebuild GCC, but that would mean I have to rebuild binutils again, etc
<lovesegfault> How does this all work?
<sphalerite> ornxka: is a browser like chromium even usable on i686 hardware nowadays?
<bqv> nix bootstraps gcc
<energizer> kraem: nix why-depends /run/current-system $(realpath $(which foo))
<ornxka> sphalerite: it works on chromebooks, which are not exactly high-powered
<aanderse> FRidh were you asking me about gitea and ldap a few weeks/months ago?
<kraem> energizer: thanks! but that won't work for dependencies of installed packages, right?
<energizer> kraem: idk
<ornxka> but in any case i will see when that finishes compiler if it actually works or not
reallymemorable has quit [Quit: reallymemorable]
numkem has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
numkem has joined #nixos
reallymemorable has joined #nixos
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
<sphalerite> lovesegfault: there are no circular deps ;)
evanjs has joined #nixos
rogue_koder_ has joined #nixos
<lovesegfault> sphalerite: ... how?
oida has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jtojnar pushed to master « gnomeExtensions.dash-to-dock: 2020-03-19 → 2020-04-20 »: https://git.io/JfIF7
oida has joined #nixos
klntsky has quit [Remote host closed the connection]
jb55 has quit [Read error: Connection reset by peer]
est31 has quit [Remote host closed the connection]
cantstanya has quit [Remote host closed the connection]
KeiraT has quit [Write error: Broken pipe]
corpix has quit [Remote host closed the connection]
nschoe has joined #nixos
est31 has joined #nixos
glittershark has joined #nixos
klntsky has joined #nixos
jb55 has joined #nixos
cantstanya has joined #nixos
KeiraT has joined #nixos
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bqv> lovesegfault: nix bootstraps gcc
<lucus16> in nixos tests, how can I access root on the vm started with result/bin/nixos-run-vms?
fendor has quit [Read error: Connection reset by peer]
<matthewbauer> lovesegfault: We have "bootstrap tools" which are prebuilt binaries that we start with, but it then goes through a few stages of build packages until no traces of the prebuilt binaries are left. Bootstrap tools are made from previous bootstrap tools, using "make-bootstrap-tools.nix". As for the very first bootstrap-tools, I think they were hacked up by eelco or someone else in the very early days.
<dmj`> when trying to install nix in a docker container I receive the following error message
<dmj`> "error: while setting up the build environment: mounting /proc: Operation not permitted"
<dmj`> has anyone else encountered thisi?
<dmj`> this*
fendor has joined #nixos
tchab has joined #nixos
<tchab> hi
mrCyborg has joined #nixos
<tchab> is there any Kodi user here ? I can't figure out how to use kodi tv addons. I've added kodiPlain and kodiPlugins.pvr-hts to my environment.systemPackages but kodi keep telling me it doesn't found any tv addon
iqubic` has joined #nixos
<lovesegfault> matthewbauer: I see, interesting
<lovesegfault> Did we bootstrap rustc?
CptCaptain has joined #nixos
iqubic has quit [Ping timeout: 240 seconds]
zeta_0 has joined #nixos
<lucus16> I heard some people were working on bootstrapping that from a rust compiler in C that targets rust 1.29 or something
<lovesegfault> That's mrustc
<lucus16> followed by 14 consecutive rustc builds
<lovesegfault> But you can bootstrap Rust by using the original rustc that was written in OCaml
<lovesegfault> and then making your way to now
<lovesegfault> but it's time consuming because you need to go through _many_ generations
<lucus16> yes
<cole-h> lovesegfault: I know for a fact that we currently bootstrap new rustc's with the previous rustc
inkbottle has joined #nixos
<cole-h> 1.42 is built with 1.41
<lovesegfault> cole-h: Sure, that I know too
<cole-h> x)
<lovesegfault> I wonder how the first one was done
zebrag has quit [Ping timeout: 258 seconds]
dingenskirchen has quit [Quit: dingenskirchen]
<lovesegfault> Here's the last commit with the original ocaml bootstrap compiler still in-tree
EsperLily has quit [Quit: leaving]
EsperLily has joined #nixos
Intensity has joined #nixos
<{^_^}> [nixpkgs] @symphorien opened pull request #85892 → ibus: fix dconf db installation → https://git.io/JfIbw
freeman42x has joined #nixos
<{^_^}> #85542 (by ProgVal, 4 days ago, open): rust: bootstrap from source
<lovesegfault> symphorien: Oh, awesome!
<xfix> i would like to see this accepted myself, although i'm wondering whether this will happen
relaxmax has quit [Quit: Leaving]
<xfix> there is a lot of rustc builds involved
<Yaniel> such is the bootstrapping life
fusion809 has joined #nixos
<lovesegfault> I will test on my server today
<aanderse> infinisil: did you end up coming up with a solution for ini files which allow values which are not under a section?
<infinisil> aanderse: The best solution imo is one where the section name _global is treated specially
dermetfan has joined #nixos
mallox has quit [Quit: WeeChat 2.8]
<aanderse> infinisil: ok cool, thanks
xO1 has quit [Ping timeout: 240 seconds]
andi- has quit [Ping timeout: 256 seconds]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
nschoe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<{^_^}> [nixpkgs] @risicle merged pull request #76645 → aflplusplus: init at 2.59c → https://git.io/JeN9V
<{^_^}> [nixpkgs] @risicle pushed 2 commits to master: https://git.io/JfINI
rogue_koder_ has quit [Ping timeout: 260 seconds]
andi- has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__monty__ has quit [Quit: leaving]
Darkmatter66 has joined #nixos
Darkmatter66_ has quit [Ping timeout: 260 seconds]
rogue_koder_ has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
smatting has quit [Ping timeout: 240 seconds]
freeman42x has quit [Read error: Connection reset by peer]
morgrimm has quit [Ping timeout: 256 seconds]
rogue_koder has joined #nixos
tchab has quit [Remote host closed the connection]
rogue_koder_ has quit [Ping timeout: 264 seconds]
dingenskirchen has joined #nixos
CptCaptain has quit [Quit: WeeChat 2.8]
rogue_koder_ has joined #nixos
rogue_koder has quit [Remote host closed the connection]
smatting has joined #nixos
<Th4tGuy> anyone know how nix handles packages the define flags that should be inherited for consumers. For example if i build libarary foo and foo is configured with -DMY_CUSTOM_FLAG=ON, how do packages that consume foo inherit that custom flag?
<simpson> Th4tGuy: pkg-config works as normal.
knupfer has quit [Ping timeout: 272 seconds]
<Th4tGuy> ok
<Th4tGuy> that what i figured
mrCyborg has quit [Ping timeout: 246 seconds]
<Th4tGuy> does stdenv provide hoosk for that?
mrCyborg has joined #nixos
<simpson> Yeah, the hook's documented at https://nixos.org/nixpkgs/manual/#ssec-setup-hooks
<Th4tGuy> ok thankyou!
<bqv> ahaha, i was looking for a nix derivation for pleroma, and i found one in a repo owned by a guy i know irl!
<bqv> small world.
<gchristensen> nice
iqubic` has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
<dsal> Can anyone give me some guidance on fixing my build? On this one machine, I get this: Expected: name == gpmf, version == 0.1.0.0, tree == 0a579c41ad42239182fbff6d3141e19c6203b6ddab364a244549421673c90ec9,815, cabal file == db389a78246dcca119beddda4999ff0e5578daa27be96096222e10c733d12a53,2274
iqubic has joined #nixos
<dsal> I'm building via stack and gpmf is a github repo that's coming in. It didn't change, but an unrelated change has caused this to stop working.
<dsal> (works fine on another machine)
andi- has quit [Quit: WeeChat 2.8]
andi- has joined #nixos
<lovesegfault> If anyone can help: https://github.com/NixOS/nixpkgs/pull/78204
<{^_^}> #78204 (by guibou, 13 weeks ago, open): binutils: 2.31.1 -> 2.33.1
<lovesegfault> Trying to understand why those coreutils test fails with the binutils bump
dermetfan has quit [Ping timeout: 256 seconds]
andi- has quit [Excess Flood]
fooker has quit [Ping timeout: 246 seconds]
c0c0 has quit [Ping timeout: 258 seconds]
lsix has quit [Quit: WeeChat 2.8]
c0c0 has joined #nixos
andi- has joined #nixos
rogue_koder_ has quit [Ping timeout: 264 seconds]
mrCyborg has quit [Ping timeout: 265 seconds]
rogue_koder_ has joined #nixos
reis-r has quit [Quit: ERC (IRC client for Emacs 26.3)]
morgrimm has joined #nixos
<cole-h> How would one print the biggest contributors to closure size of any given package?
<cole-h> Oh, maybe `nix path-info -Shr ./result`
Philonous has quit [Quit: ZNC - http://znc.in]
Philonous has joined #nixos
morgrimm has quit [Ping timeout: 265 seconds]
chloekek has quit [Ping timeout: 265 seconds]
Valodim has joined #nixos
fooker has joined #nixos
shreyansh_k has quit [Ping timeout: 256 seconds]
<Valodim> if only "version" is recursively referenced, is it worth it to do "let version = .. in mkDerivation" instead of "mkDerivation rec"?
<Valodim> I see some packages do that
fendor has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @zowoq opened pull request #85894 → podman team: add cri-o packages/module → https://git.io/JfIxO
maddo has quit [Quit: See ya]
gustavderdrache has quit [Quit: Leaving.]
<{^_^}> [nixpkgs] @nh2 opened pull request #85895 → grub: Add `boot.loader.grub.extraGrubInstallArgs` option → https://git.io/JfIxR
vidbina_ has quit [Ping timeout: 272 seconds]
smatting has quit [Ping timeout: 265 seconds]
reallymemorable has quit [Quit: reallymemorable]
bryanhonof has joined #nixos
reallymemorable has joined #nixos
rogue_koder_ has quit [Remote host closed the connection]
rogue_koder_ has joined #nixos
<bryanhonof> Hello! I was wondering if anyone could help me getting Vulkan to work. I am able to build Vulkan programs but unable to run them. The programs complain about not finding a loader altho I have vulkan-loader installed together with amdgpu.
marsh has quit [Ping timeout: 246 seconds]
emptyflask has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
marsh has joined #nixos
o1lo01ol1o has joined #nixos
johnjay has quit [Ping timeout: 258 seconds]
mrCyborg has joined #nixos
aveltras has quit [Quit: Connection closed for inactivity]
Izorkin_ has joined #nixos
betawaffle has quit [Ping timeout: 264 seconds]
Izorkin has quit [Ping timeout: 258 seconds]
Izorkin_ is now known as Izorkin
cosimone has quit [Read error: Connection reset by peer]
erasmas has quit [Quit: leaving]
earldouglas has left #nixos [#nixos]
<bqv> i just typed :wq at the end of my git commit shell line
<bqv> i have actually gone too deep
<bqv> jeez
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<Ashy> bqv: vim fugitive is love
<bqv> barking up the wrong tree my dude
<bqv> i hate vim plugins
mrCyborg has quit [Ping timeout: 272 seconds]
<energizer> i'm writing a series of data-transforming scripts. i want nix to notice when the first script gets changed, and re-run all of the scripts that follow it. i don't want to write a mkDerivation for each script manually because that would be too much work. what do i do?
<bqv> you're not looking for nix
<{^_^}> [nixpkgs] @veprbl pushed 4 commits to release-20.03: https://git.io/JfIpX
<bqv> you're looking for something more like bazel or meson
iqubic has quit [Ping timeout: 265 seconds]
<energizer> why am i not looking for nix?
<simpson> energizer: lorri can do some of this, I think.
<energizer> simpson: that is my thinking as well
<simpson> bqv: Okay, I'll bite; how would you do this with Bazel or Meson?
WhatisRT has quit [Ping timeout: 258 seconds]
<bqv> because at the end of the day it's just an incremental build, which is something that those two excel at but is naturally a pain in the ass in nix
lorimer has quit [Read error: Connection reset by peer]
<infinisil> energizer: Nix is a programming language, so if you can abstract the mkDerivation thing, it won't be tedious
johnjay has joined #nixos
o1lo01ol1o has quit [Ping timeout: 256 seconds]
philr_ has joined #nixos
<simpson> bqv: I don't see that in my experience. I built an incremental build harness for my programming language, to compile each module separately, and while it took some 50loc of Nix, it wasn't too terribly hard.
<bqv> e.g. where are the scripts coming from? if they're all in the same src repo, you're gonna have to have nix rebuild them all anyway unless you build them impurely
<energizer> bqv: not just build, i want to *run* the scripts
<energizer> but i dont want to re-run the first one when the third one was changed
<simpson> ala Make, presumably.
<energizer> yes
<bqv> simpson: that's what i mean by impurely, try making that work when you're not using data from the filesystem, and having it not rebuild everything when most of it is the same
<bqv> cause that's a problem i still haven't solved
<energizer> infinisil: i believe you're right, i just havent got my head around what it looks like yet
<energizer> is there prior art here?
<infinisil> energizer: Have something like `transforms = [ "cat" "sort" "tac" ]` which then gets turned into `let step1 = runCommand "cat" {} "input > cat > $out"; step2 = runCommand "sort" {} "cat ${step1} | sort > $out"; in ...
<{^_^}> [nixpkgs] @paumr opened pull request #85896 → marked stem as not-broken → https://git.io/JfIp5
<infandum> Why would libblas.so.3 point to /nix/store for one computer but /usr/lib for another with the same default.nix?
<infinisil> Every step would take the previous derivation as an input, transforming it, writing it to $out, which then becomes the input to the next one
<simpson> bqv: See my link for hints. One has to take the entire directory tree of source objects, and make a build action for each source object, then take all of the resulting artifacts and put them into a brand-new link farm.
<infinisil> Then every step along the way is being cached
anrddh has joined #nixos
anrddh is now known as butterthebuddha
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
johnjay has quit [Ping timeout: 240 seconds]
<infinisil> Like a `derivationPipe :: Binary -> [ Binary ]` would be a good general function
<bqv> simpson: ..that's impressive, but also kinda crazy, and to say that this is not a PITA in nix when you compare that to doing similar with a normal build tool after seeing that, heh
<evanjs> anybody know how I might patch package.json using node2nix?
<evanjs> unsure if that's supposed to be done in preRebuild or etc
johnjay has joined #nixos
justanotheruser has quit [Ping timeout: 250 seconds]
<energizer> infinisil: ok i'll try it, thanks
<simpson> bqv: IYSS, but it was much more of a pain in Make: https://github.com/monte-language/typhon/blob/d0961882/Makefile
<infinisil> infandum: That question has way too little information to give any helpful answer
<bqv> simpson: that's why i suggested actual modern tools like bazel/meson, not make :p
<bqv> don't get me wrong, i'd love if nix was popular as a build tool and not just a package manager, but i don't think it lends itself to the purpose
<hackerfoo> One nice thing about Nix is that it tries to enforce purity, unlike make. It would be cool to compile some subset of Nix to make or ninja, so that you can test that the build describes all dependencies, but then use and distribute make/ninja, which should be faster since they don't enforce most of the properties that Nix does.
<energizer> bqv: what do you think are the missing pieces in nix for this purpose?
<infandum> infinisil: What additional information should I give?
<bqv> hackerfoo: bazel does exactly that. it's nix, but on the build chain level (again, why i suggested that)
<infandum> On my computer I used nix-env -f default.nix -i executable
thc202 has quit [Ping timeout: 246 seconds]
<infandum> on another (the previous was Arch linux, this one is ubuntu) I used the same, but this time ldd executable gave some libraries as being in /usr/lib or /lib rather than before where they were in /nix/store
<bqv> energizer: mostly just hasn't even been considered for that purpose, so it's not tuned for that purpose. building a package with dependencies in nix can be done in a few characters (not lines). building a highly interconnected project in any ecosystem requires a massive hack like simpson's, then a load more instrumentation
<infinisil> infandum: Ah so you're using ldd on a nix-built executable
<hackerfoo> bqv: Is there something that will convert Nix expressions to BUILD files?
<infandum> infinisil: yeah
<infinisil> infandum: Are you sure you're using the nix-built one in both cases? Make sure using `realpath $(which <binary>)`, should point to a /nix/store path
<bqv> hackerfoo: not looked. perhaps
<hackerfoo> Also, Bazel is a heavy dependency.
<bqv> agreed, which is why i suggested meson as well
<infandum> infinisil: The issue is that I'm getting a "error while loading shared libraries: libblas.so.3: cannot open shared object file: No such file or directory" even though I don't on the other computer with the same nix version and same default.nix
<infandum> infinisil: I'm using the /nix/store path for both
<infandum> for ldd
<simpson> bqv: I guess we'll have to agree to disagree; I've used Bazel enough to know that it's not especially better at this, since every time Nix would allow ad-hoc builders in Nix expression language, Bazel would correspondingly need a new extension.
<infinisil> infandum: I think it might be that ldd resolves library versions based on the ldd version itself
<infandum> infinisil: It built successfully on both, just one is using the wrong shared libraries
bryanhonof has quit [Remote host closed the connection]
<infandum> infinisil: !?!?
<infandum> Well in that case, on ubuntu it's 2.30
<infandum> Arch it's 2.31
<infandum> would that really result in using the system libraries over the nix ones with the same default.nix?
<infinisil> Check out https://github.com/NixOS/nixpkgs/issues/84043, that might be related
<{^_^}> #84043 (by neilmayhew, 3 weeks ago, open): glibc-2.30 libraries link to glibc-2.27
<{^_^}> [nixpkgs] @NickHu opened pull request #85897 → remarkable-toolchain: init at 1.8-23.9.2019 → https://git.io/JfIhg
<hackerfoo> Bazel seems very rigid in my experience as well.
cr4y1_ has quit [Ping timeout: 258 seconds]
<infandum> infinisil: But in that case they are still both pointing to /nix/store
wfranzini has quit [Remote host closed the connection]
reallymemorable has quit [Quit: reallymemorable]
<infinisil> infandum: where somebody looked at the ldd output of a nixpkgs binary built for glibc 2.30, but it showed that it's linked to glibc 2.27, which is certainly wrong
wfranzini has joined #nixos
<infandum> infinisil: This is the default.nix btw: https://github.com/GregorySchwartz/too-many-cells/blob/master/default.nix
mbrgm_ has joined #nixos
<infandum> Different ldd results on different computers
<{^_^}> [nixpkgs] @NickHu opened pull request #85898 → rmapi: init at 0.0.10 → https://git.io/JfIhP
<hackerfoo> In contrast, with Nix I can parse a bunch of config files in a derivation into a Nix expression and import that, allowing me to convert anything to Nix during eval time.
<infandum> Even blas
justanotheruser has joined #nixos
<infinisil> infandum: Try running `strace -e trace=file -f <binary>` to see where it checks for the libblas.so.3 file
<infinisil> Can also add `-o out` before the binary to make strace redirect its output to a file named out
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
<infinisil> It might be that it depends on that library, but no dependency was declared on it, so it somehow uses one it can find from your impure environment
<infinisil> Though I guess that shouldn't happen with dynamic libraries?
<{^_^}> [nixpkgs] @NickHu opened pull request #85899 → remarkable-mouse: init at 5.1 pythonPackages.libevdev: init at 0.7 pythonPackages.setuptools-lint: init at 0.6.0 pythonP… → https://git.io/JfIhx
iqubic has joined #nixos
<infandum> infinisil: It does not look for libblas.so.3 in /nix/store/sjbzgq27izx37p4xlyrvdvj7yx28had4-blas-3.8.0/ (which was built from the default.nix buildInputs I assume)
<infandum> In fact, the first place it looks is in /usr/lib/R/lib/ which also is wrong, it should be using the /nix/store R like it does on the other computer
<infinisil> Maybe that's an impurity in the source code somewhere
<infandum> In the default.nix?
<infinisil> Might very well be, nothing in nix can forbid the source code from looking for libraries there I guess
<infinisil> The code that loads the library
<infinisil> Oh wait, I don't even know how that works
<infinisil> Is that dlopen?
<dsal> I worked around my nix problem by changing dependency. :( This feels like a failure.
<infinisil> Yeah I think it's dlopen
<infandum> infinisil: Did you see the default.nix? Is there anything there that might be wrong?
<infinisil> infandum: I mean the haskell/C source code
<infinisil> Whatever is loading the library
<infandum> infinisil: But why would it be different? I don't know if I did something wrong or not :/
<infandum> I assumed the same default.nix would be the same on every computer
<infinisil> The binary will be the same
<infinisil> Whether it does the same when executed very much depends on the environment it runs it
virus_dave has quit [Quit: virus_dave]
<infinisil> You *can* run the binary in a derivation to eliminate that impurity
<infandum> Oh? How?
<infandum> Do I need to write a shell.nix?
<infinisil> E.g. pkgs.runCommand "test" {} "${build-derivation}/bin/<binary>"
jgeerds_ has quit [Ping timeout: 258 seconds]
<infandum> Do I run that from the command line?
<infinisil> It's a nix expression so no
<infinisil> Put it in a file or so and nix-build it
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #85900 → nixos/dnscrypt-wrapper: use dnscrypt-proxy1 → https://git.io/JfIjI
butterthebuddha has quit [Remote host closed the connection]
shibboleth has joined #nixos
iqubic` has joined #nixos
iqubic` has quit [Remote host closed the connection]
iqubic has quit [Read error: Connection reset by peer]
<bqv> eelco: edolstra: someone said you were in this room so hopefully at least one of those pings you. This commit broke dwarffs for me and i'm not sure if this is some form of pebcak or actually a bug https://github.com/edolstra/dwarffs/commit/d11b181af08bfda367ea5cf7fad103652dc0409f
iqubic has joined #nixos
<cole-h> Sounds like an issue should be filed... ;)
mrCyborg has joined #nixos
<bqv> cole-h: that's the problem, is it an issue, or am i doing something stupid?
<bqv> cause that commit says it fixes things, not breaks them
<bqv> and i'm obviously doing a hecktonne of unsupported stuff
<cole-h> Issues are still the best place for that, IMO. If you're doing something stupid, they'll tell you and close it. If it's an actual issue, they'll help troubleshoot.
<infandum> infinisil: When it builds, the configureFlags points to the correct blas but for some reason that's not in the end result
<bqv> bleh. fine
morgrimm has joined #nixos
<cole-h> (and it also doesn't require Eelco to be plugged into this channel 24/7)
gustavderdrache has joined #nixos
niso has joined #nixos