gchristensen changed the topic of #nixos-dev to: NixOS Development (#nixos for questions) | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html | 18.03 release managers: fpletz and vcunat | https://logs.nix.samueldr.com/nixos-dev
pie__ has quit [Ping timeout: 264 seconds]
lassulus_ has joined #nixos-dev
lassulus has quit [Ping timeout: 268 seconds]
orivej has quit [Ping timeout: 268 seconds]
phreedom has quit [Ping timeout: 250 seconds]
phreedom has joined #nixos-dev
tv has joined #nixos-dev
tv has quit [Changing host]
tv has joined #nixos-dev
peterhoeg has quit [Ping timeout: 240 seconds]
globin has quit [Ping timeout: 245 seconds]
florianjacob has quit [Ping timeout: 240 seconds]
globin has joined #nixos-dev
peterhoeg has joined #nixos-dev
orivej has joined #nixos-dev
florianjacob has joined #nixos-dev
<domenkozar> LnL: no, but Matthew did :)
<LnL> ah, did he link it anywhere?
<{^_^}> #41939 (by Ericson2314, merged): haskell generic-builder: Always use separate pkg db for custom setup
<LnL> that's haskell specific tho
<LnL> there's at least one non haskell package that had problems around the same time
<domenkozar> those two might not be related
<domenkozar> if you look here, stack was building on 17th June
<{^_^}> #40013 (by mdorman, closed): taffybar-1.0.2: gcc command line is too long because of repeated flags
<domenkozar> this was opened way before that
aszlig has quit [Quit: Kerneling down for reboot NOW.]
<peti> domenkozar: I don't know .. I had no opportunity to really look at the issue, so I don't really know the state of afairs.
<LnL> I'm talking about inkscape on 2018-06-15
aszlig has joined #nixos-dev
<domenkozar> thanks guys
<domenkozar> I'll do my attempt
pie__ has joined #nixos-dev
<domenkozar> LnL: seems like inkspace was broken as part of staging merge
<{^_^}> #41429 (by lopsided98, merged): cc-wrapper, bintools-wrapper: unbreak include/link paths when cross-compiling
NinjaTrappeur has joined #nixos-dev
<{^_^}> #41340 (by nh2, open): GCC fails because argument list created by nix is too long
<LnL> jeeze, 9 times?
<LnL> that does confirm my suspicion, I can't imagine that's necessary and that's probably not good for performance either
pie__ has quit [Read error: Connection reset by peer]
pie_ has joined #nixos-dev
orivej has quit [Ping timeout: 240 seconds]
Sonarpulse has joined #nixos-dev
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos-dev
goibhniu has quit [Ping timeout: 244 seconds]
goibhniu has joined #nixos-dev
goibhniu1 has joined #nixos-dev
goibhniu has quit [Ping timeout: 240 seconds]
goibhniu1 is now known as goibhniu
pie__ has joined #nixos-dev
pie_ has quit [Ping timeout: 244 seconds]
<timokau[m]> What is the default c++ standard nix uses? Untangling the cc infrastructure is hard
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos-dev
<aszlig> timokau[m]: C++14 IIRC
<timokau[m]> aszlig: I'm pretty sure thats not it since I have a problem that can be fixed by setting `NIX_CFLAGS_COMPILE = [ "-std=c++14" ]`
<niksnut> I think there is some C++17 in there
Sonarpulse has quit [Ping timeout: 240 seconds]
Sonarpulse has joined #nixos-dev
pie___ has joined #nixos-dev
pie__ has quit [Ping timeout: 268 seconds]
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos-dev
orivej has joined #nixos-dev
page has quit [Ping timeout: 256 seconds]
<niksnut> aszlig: I've disabled google maps api access on that NixOS API key since it stops being free in 7 days. We'll see if anybody complains...
SuperKazuya has quit [Ping timeout: 252 seconds]
<gchristensen> oh! what happens then?
<aszlig> gchristensen: no idea =)
<gchristensen> :D
<gchristensen> niksnut: also, what's it take to kick mac6?
<niksnut> I rebooted it last week but apparently that didn't help
<gchristensen> ouch
<niksnut> probably you lose privacy-invading location services, so no big loss there ;-)
<gchristensen> sgtm
<aszlig> dito
<niksnut> aszlig: I can't imagine what caused me to write that line :-|
<niksnut> btw most API calls are to the safe browsing API (~589K in the last month)
<niksnut> also 45K to the chrome spelling API
<aszlig> mhm, the same thing that's used by firefox as well
<niksnut> and 1.4K to the speech API
<gchristensen> :/ safe-browsing API is good :/
<niksnut> I didn't disable that, just the maps API
<gchristensen> ahh ok
<gchristensen> (* and not privacy-invading)
<niksnut> well...
<niksnut> maybe it sends a lot of URLs to google
<gchristensen> nah
<gchristensen> the browser downloads a list of hashes and compares client-side
<gchristensen> *well, it CAN send URLs to the API, but the browser uses the bulk API of fetching the hash list)
<aszlig> gchristensen: well, even if it's hashed it still means that google can have a mapping between hashes and some well-known urls...
<gchristensen> yes but you download the entire list of hashes, and the diffs to the hash list over time
<aszlig> and they can answer things such as "has the user accessed site x?"
<gchristensen> you never send hashes off to google
<aszlig> iirc chromium was using the lookup api the last time i was involved in chromium
<gchristensen> :o
<aszlig> (the lookup api with hashing of course)
<aszlig> niksnut: so can i remove that line?
pie___ has quit [Ping timeout: 240 seconds]
<gchristensen> niksnut: seems we should opt to use more space and less RAM, it is much cheaper to use more space than to get more RAM in pretty much every environemnt
<gchristensen> I just had to upgrade my machine from 4gb to 8gb to import a package, so I'm a bit fresh from that perspective
pie___ has joined #nixos-dev
<niksnut> aszlig: yes please
<aszlig> niksnut: done
<domenkozar> peti: :party: LTS-12.0
<gchristensen> https://cache.nixos.org/ this looks bad
<dtz> the certificate thing? page itself seems nice :3
<gchristensen> yeah
page has joined #nixos-dev
Drakonis[m] has quit [Changing host]
Drakonis[m] has joined #nixos-dev
Drakonis[m] has joined #nixos-dev
<infinisil> Is there a way to prevent hydra from even evaluating a top-level nixpkgs attribute?
<gchristensen> why for?
* gchristensen doesn't like where this is going ...
<infinisil> Because it would be a builtins.fetchGit
<infinisil> I'm expirementing with getting modules to work with NUR
<infinisil> Nicely*
<gchristensen> probably better to just have users put imports = [ <nur/modules.nix> ]; or something
<infinisil> Although, that wouldn't work now that I think about it
<gchristensen> of course, the module system is not POL so it is dangerous
<infinisil> POL?
<gchristensen> POLA*
<infinisil> POLA?
<gchristensen> principle of least authority
<gchristensen> any module can change any thing
<LnL> either it's a drv in which case meta.hydraPlatforms or it's a set and then avoid recurseIntoAttrs
<infinisil> (I'm gonna scratch that idea), but it's a set, but to even evaluate it you'd need builtins.fetchGit, which is what I would've wanted to prevent
<infinisil> But yeah gchristensen, the NIX_PATH thing is probably the best way
<infinisil> If it works..
<aszlig> or maybe even imports = [ <nur/foo/bar> ]; instead of a modules.nix that contains *all* modules
<aszlig> so if people add repositories with modules that define options unconditionally you don't end up with a messy system
<aszlig> infinisil: but i'm not quite sure why you want hydra to avoid evaluating the top-level attribute
<infinisil> Eh doesn't matter
<aszlig> i mean if the top-level attribute is builtins.fetchGit, why not make it an input?
<infinisil> an input to what?
<aszlig> jobset input
<infinisil> Not sure what you're getting at, the idea of putting it in nixpkgs is so not gonna work anyways
<aszlig> ah, so you wanted to get it in nixpkgs?
<infinisil> Yeah, just the url or a way to fetch it though, without a pinned hash
<aszlig> ah, okay, then never mind... i thought it was about building NUR itself with hydra
<dtz> im so glad I now know that borg prints set of changed paths
<dtz> was rather tired/sad recomputing locally--always "hoping" it was same results used elsewhere, etc. lol
<dtz> and surprisingly expensive to compute
<LnL> yeah...
<dtz> anyway \o/ that it's included :D:D was my point
<LnL> indeed, I often pick out a bunch of attributes for testing a library
pie___ has quit [Ping timeout: 244 seconds]
<infinisil> aszlig: This works: NUR#27
<{^_^}> https://github.com/nix-community/NUR/pull/27 (by Infinisil, open): NixOS module support: Separate NUR nixpkgs from repos nixpkgs, avoid callPackages
jtojnar has quit [Ping timeout: 240 seconds]
<aszlig> infinisil: you know that packageOverrides is essentially similar to overlays = singleton (const (super: ...overrides...)), right?
<infinisil> Yup
<aszlig> so why not use overlays instead?
<infinisil> Just copy pasted from the readme and modified it
<aszlig> ah
<infinisil> Hmm.. The disadvantage of overlays is that you can't set them up in your config.nix
<aszlig> ~/.config/nixpkgs/overlays.nix
<aszlig> and it even allows a directory
<infinisil> Yeah
<infinisil> I guess it should be changed, to get more people to use overlays anyways
pie___ has joined #nixos-dev
<aszlig> hm... we do have URI-support in nix, so maybe we can implement this via URL like nur://foo/bar
<aszlig> eg.: nix run -f nur://foo/bar somepkg
<Sonarpulse> how does cabal2nix not have a shell.nix for convenience.... :(
<clever> Sonarpulse: if its using haskellPackages.mkDerivation, you can just nix-shell -A env or nix-env -A cabal2nix.env
<Sonarpulse> clever: or any nix at all
<Sonarpulse> but yeah I supppose the nixpkgs cabal2nix is close enough (tm)
<clever> yeah, id call that a bug
<aszlig> or even nur:foo/bar
phreedom has quit [Ping timeout: 250 seconds]
<infinisil> aszlig: Interesting idea..
<infinisil> Not sure how well it would play out, with dependencies and stuff probably not too well
<infinisil> Oh, but just the repos of people would work
phreedom has joined #nixos-dev
<aszlig> infinisil: the NUR repository then could be only contain metadata
<infinisil> So you mean to get e.g. my NUR repo, you'd do `infinisil = nur:infinisil`?
<infinisil> Then `somepackage = infinisil { inherit pkgs; }`?
<aszlig> well, currently it would be fetchTarball nur:infinisil
<infinisil> Ah
<infinisil> And it would fetch the latest NUR HEAD every hour?
<aszlig> it shouldn't need to fetch all NUR
<infinisil> I mean NUR only says where to find the other repos
<infinisil> but it needs to get that info from master preferably
<aszlig> something like eg. https://nur.nixos.org/infinisil or something like that should be enough
<infinisil> (but then you can't get a reproducible system because can't pin it)
<aszlig> ... and the contents for nur.nixos.org would be built from a git repos
<infinisil> Ah I see, neat idea!
<aszlig> that way it can also be statically served
<infinisil> How do you mean that?
<aszlig> the docroot for nur.nixos.org
<aszlig> ideally it should only contain a bunch of json files or something similar with meta-info about the target repository
<aszlig> it could even be a 1:1 clone of the git repos
<infinisil> Or just redirect to github.com/<user>/<repo>/archive/<rev>.tar.gz?
<aszlig> infinisil: you mean for the target repository?
<infinisil> Won't work with non-github repos though
<infinisil> yeah
<aszlig> yeah, but the metadata could also point to a git repository, so something like "import nur:infinisil" should use fetchGit
<infinisil> Yeah that would be neat
<aszlig> but implementing this in nix would be more involved because import then needs to do an implicit call of fetchGit, depending on the metadata
<aszlig> lemme do a first PoC
<infinisil> Since this requires changes in Nix it would take a while though, and let's see first if NUR becomes something even. Until then people will have to live with a manual import
<aszlig> infinisil: well, just for recognizing the urls it's rather easy though: https://gist.github.com/aszlig/3722268c12cc2b0cd45a5ddda74c62ff
<infinisil> aszlig: It is indeed :O
<aszlig> but this doesn't involve metadata and thus the https://nur.nixos.org/foo URLs would need to have a permanent redirect to the target repos
<aszlig> which would also make it quite annoying to change
<aszlig> if you want to eg. have a specific revision, you could use something like nur:foo?rev=abcd0123456789
<infinisil> Maybe when NUR gets a bit more established that might be something to go for
Sonarpulse has quit [Ping timeout: 264 seconds]