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.09 release managers: vcunat and samueldr | https://logs.nix.samueldr.com/nixos-dev
drakonis has quit [Ping timeout: 272 seconds]
drakonis has joined #nixos-dev
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos-dev
lassulus_ has joined #nixos-dev
lassulus has quit [Ping timeout: 252 seconds]
lassulus_ is now known as lassulus
garbas has quit [Quit: WeeChat 2.2]
<angerman> wasn't there some function for trying and failing with a default?
<angerman> import ./config.nix ?? {} or something?
<ekleog> not for when you try to import a non-existing file
<ekleog> but there is builtins.pathExists, which you can yse to make your own tryImport
<ekleog> > tryImport = p: d: if builtins.pathExists p then import p else d
<{^_^}> tryImport defined
<ekleog> > tryImport <nixpkgs> (_: throw "failed") {}
<{^_^}> { AAAAAASomeThingsFailToEvaluate = <CODE>; AMB-plugins = <CODE>; AgdaSheaves = <CODE>; AgdaStdlib = <CODE>; CoinMP = <CODE>; DisnixWebService = <CODE>; EBTKS = <CODE>; EmptyEpsilon = <CODE>; Fabric = ...
<ekleog> > tryImport <nixpkgs/thisdoesntexist> (_: throw "failed") {}
<{^_^}> file 'nixpkgs/thisdoesntexist' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):199:11
<ekleog> huh ok bad pick
<ekleog> > tryImport <nixpkgs>/thisdoesntexist (_: throw "failed") {}
<{^_^}> value is a function while a set was expected, at (string):199:1
<ekleog> > tryImport (<nixpkgs> + "/thisdoesntexist") (_: throw "failed") {}
<{^_^}> failed
drakonis_ has quit [Read error: Connection reset by peer]
<ekleog> angerman: ^
<angerman> ekleog: i see, thanks
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 252 seconds]
Synthetica has joined #nixos-dev
orivej has joined #nixos-dev
__Sander__ has joined #nixos-dev
orivej has quit [Ping timeout: 252 seconds]
orivej has joined #nixos-dev
init_6 has joined #nixos-dev
garbas has joined #nixos-dev
__Sander__ has quit [Remote host closed the connection]
__Sander__ has joined #nixos-dev
<ekleog> Hmm… I think I came upon something that should be in release notes (a few CC licences being marked as unfree), is it still possible to recover or is the website generate to rarely?
<gchristensen> website updates every 20min or so
<ekleog> oh 'k so I can just PR it, thanks :)
<ekleog> nice :D (and lol @ /home/eelco :°)
<ekleog> hmm… what do I miss about how to build release notes? I've found two different ways of building the nixpkgs manual, but…
<gchristensen> you're changing the nixos manual, no?
<ekleog> the release notes
<ekleog> I did nix-build in `doc/`, but the index.html is only the equivalent of https://nixos.org/nixpkgs/manual/
<ekleog> (and same for `make` in a `nix-shell` in `doc/`)
<gchristensen> what page on the homepage are you looking to update?
<gchristensen> you're wanting to change the nixos manual :)
<ekleog> yeah
<ekleog> oh
<ekleog> it's in nixos/doc/?
* ekleog feels stupid now
* ekleog didn't even notice the file he modified *was* actually in nixos/doc
<ekleog> thanks! :)
<gchristensen> :)
<Profpatsch> Somebody want to review https://github.com/NixOS/nixpkgs/pull/48114/files? (cdb packaging)
<ekleog> Profpatsch: stupid question maybe: are the bundled docs actually redistributable? I can't find any mention of a license on https://cr.yp.to/cdb.html
<Profpatsch> ekleog: Problematic, yes. djb has everything under public domain normally.
<Profpatsch> But doesn’t really bother with license files.
<ekleog> second nit: checking in docs at 5.73KB to be auto-updated sounds not nice, maybe it's possible to host them elsewhere? :)
<gchristensen> yeah, this seems not good. how does Debian do it?
<ekleog> so here is the release notes addition :) https://github.com/NixOS/nixpkgs/pull/48463
<{^_^}> #48463 (by Ekleog, 21 seconds ago, open): release-notes/18-09: add licenses marked as unfree
<gchristensen> way to go!
<Profpatsch> ekleog: Ah, we don’t have to zip it I think.
<Profpatsch> Just import the whole folder, nix supports that.
<samueldr> ekleog: what's the msrla?
<ekleog> samueldr: microsoft research [something something]
<Profpatsch> then updates produce nice diffs.
<samueldr> somehow google can't find "msrla" even with "license" :/
<Profpatsch> ekleog: On the other hand, should the updates even produces diffs?
* ekleog just did git blame lib/licenses.nix
<Profpatsch> Or alternatively mirror & upload it somewhere on github, but then each docs update needs push access.
<ekleog> Profpatsch: tbh, I'm not really convinced by even adding 5K of stuff into nixpkgs, if we did that for all packages it'd be like 100M just in docs, to be downloaded by everyone every time, and I don't see why cbp would be particularly important :)
<ekleog> then it's only my personal opinion, and it doesn't bother us when doing carnix or the like
<Profpatsch> true
Sigyn has quit [Quit: People always have such a hard time believing that robots could do bad things.]
<Profpatsch> Then I think I’ll mirror it somewhere until djb includes it into the releases.
<gchristensen> (it is also bothersome with carnix and node-packages :( )
Sigyn has joined #nixos-dev
<Profpatsch> If only something like ipfs worked satisfactorily.
<ekleog> heh
<ekleog> gchristensen: IFD is the answer! oh wait
<Profpatsch> IFD is exactly the other way around, have build instructions in other repos, not data in the same repo. :)
<gchristensen> maybe we could store a smaller datastructure which could be expanded at build time, though
<ekleog> sounds reasonably possible, indeed
<Dezgeg> if the only documentation for this package is a webpage, why not use that? why is it up to packagers to mirror webpages?
<Profpatsch> Dezgeg: Because it’s multiple pages and not packaged in the source distribution.
<Profpatsch> gchristensen: How do you mean?
<Dezgeg> there are a zillion of existing packages with no documentation in the source distribution either, only online
<Profpatsch> Dezgeg: Yeah, what’s up with that.
<Profpatsch> But how to battle it?
<Profpatsch> I tried it with Anki, but it’s very hard™
<Profpatsch> And they only have the most recent documentation on some webserver somewhere.
<Profpatsch> So probably a case for nagging upstream until they start versioning their stuff.
<gchristensen> thath is probably the best bet
<ekleog> anki ftw (and I didn't know the man page was bundled in the nixos package, always used the online manual :°)
<Profpatsch> ekleog: The manpage is, but the docs aren’t.
<Profpatsch> And the manpage is pretty short.
<Profpatsch> ekleog: I have a small program called nman, which will fetch package’s manpages from the current NIX_PATH.
<ekleog> oh… well, I install most programs through environment.systemPackages (yeah, shame on me), so that's not really an issue for me :°
<Profpatsch> Pretty handy when you don’t want to install the thing, if there’s a separate output it only downloads the manpage. :)
<ekleog> oh wait, you said NIX_PATH
* ekleog thought that was PATH, because man pages are weird when inside a nix-shell
<Profpatsch> rn it just does a `with import <nixpkgs> {}; %s.man or %s.doc or %s.out or %s`
<ekleog> looks nice indeed, then :)
<Dezgeg> should be just '%s.man or %s' I think
<gchristensen> given (import <nixpkgs> {}).hello is there a way to get hello's build-time closure?
<Profpatsch> gchristensen: QUERY section in man nix-store
<Profpatsch> On the .drv file
<gchristensen> from within Nix :)
<Profpatsch> gchristensen: Ah, something in here: https://github.com/NixOS/nixpkgs/issues/46141
<{^_^}> #46141 (by Profpatsch, 5 weeks ago, open): Manual: document the canonical files in `/nix-support`
<Profpatsch> propagated-{native}-build-inputs
init_6 has quit [Ping timeout: 252 seconds]
<gchristensen> "0E0 builds have been restarted." lol
<Profpatsch> -1283746583 builds have been restarted
drakonis has quit [Ping timeout: 272 seconds]
__Sander__ has quit [Quit: Konversation terminated!]
drakonis has joined #nixos-dev
<ekleog> erhm… `system.stateVersion = mkDefault "18.03";` <- is that normal? 'k nothing appears to need a bump, but… :°
<samueldr> that would be if someone doesn't set stateVersion; does the generate-config script default to the current version?
<samueldr> (still probably unexpected that unset it stays 18.03?)
<clever> the rename flags only work for setting the old name, not reading it, i believe
<clever> and stateVersion being moved broke nixops
<samueldr> I think the issue here is that the comment stayed while the change was reverted?
<samueldr> I genuinely lost track of what happend with stateVersion through the renames
<ekleog> also, looks like nixos-generate-config uses the value from the system the livecd was built with, so it sounds like it depends on how the livecd was configured
<ekleog> that said now I've launched this in the air it's time to go to sleep here, sorry ^^'
<clever> ekleog: and if you mess with nix-channel after booting the livecd, it doesnt match up
lopsided98 has quit [Quit: Disconnected]
lopsided98 has joined #nixos-dev
aanderse has joined #nixos-dev
drakonis has quit [Ping timeout: 260 seconds]
drakonis has joined #nixos-dev
lopsided98 has quit [Quit: Disconnected]
lopsided98 has joined #nixos-dev
orivej has quit [Ping timeout: 246 seconds]
primeos has quit [Remote host closed the connection]
drakonis has quit [Ping timeout: 276 seconds]
drakonis has joined #nixos-dev
drakonis has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-dev
drakonis has joined #nixos-dev
fadenb has quit [Remote host closed the connection]
fadenb has joined #nixos-dev
drakonis_ has joined #nixos-dev
drakonis has quit [Ping timeout: 250 seconds]
drakonis has joined #nixos-dev