phreedom has quit [(Remote host closed the connection)]
MichaelRaskin has quit [(Quit: MichaelRaskin)]
goibhniu has joined joined #nixos-dev
JosW has joined joined #nixos-dev
FRidh has joined joined #nixos-dev
FRidh has quit [(Client Quit)]
FRidh has joined joined #nixos-dev
mingc has quit [(Quit: Ping timeout (120 seconds))]
mingc has joined joined #nixos-dev
FRidh has quit [(Ping timeout: 264 seconds)]
FRidh has joined joined #nixos-dev
LnL has quit [(Ping timeout: 248 seconds)]
<fadenb>
Some people mentioned they want to join up for dinner the evening before NixCon. I reserved some seats at Augustiner-Keller, https://doodle.com/poll/z63wcs8z4vtcbdhv
<fadenb>
fpletz ^
FRidh has quit [(Ping timeout: 240 seconds)]
LnL has joined joined #nixos-dev
goibhniu has quit [(Ping timeout: 246 seconds)]
FRidh has joined joined #nixos-dev
<Profpatsch>
fadenb: Awesome!
<Profpatsch>
I’ll see if I can make it.
<Profpatsch>
fadenb: Friday?
<fadenb>
Profpatsch: yep
<Profpatsch>
Should be possible. o/
<fadenb>
:)
<Profpatsch>
Quickcheck, but for nix expressions.
<fpletz>
fadenb: thanks!
cransom has quit [(Quit: WeeChat 1.7)]
cransom has joined joined #nixos-dev
FRidh has quit [(Ping timeout: 252 seconds)]
FRidh has joined joined #nixos-dev
<Profpatsch>
Multi-Arity functions! a: if a < 5 then a else b: a + b
<Profpatsch>
Dependent Multi-Arity functions!
<Profpatsch>
So much FUN
<gchristensen>
oh wt_f_
<Profpatsch>
Oh the _p_o_s_s_i_b_i_l_i_e_s
goibhniu has joined joined #nixos-dev
<regnat[m]>
Profpatsch: Multi-Arity functions! a: if a < 5 then a else b: a + b <-- Oh god, I never thought of putting this in the "why typing the whole nix lang is insanely hard" part when doing presentations on it
<Profpatsch>
regnat[m]: You are very much welcome. xoxo
<Profpatsch>
Fun fact of the day: lib.take is not lazy. It uses the length of the list m(
<copumpkin>
lists in general do not have lazy spines in nix
FRidh has quit [(Ping timeout: 264 seconds)]
<Profpatsch>
copumpkin: In my case the list is infinite anyway.
<copumpkin>
you can still pretend to have an infinite list with something like `let x = { head = 5; tail = x; } in x`
<Profpatsch>
Why actually build an intermediate list functor value when you can represent it as variadic lambda?~~~
<Profpatsch>
this stuff is gud
<copumpkin>
lol
<Profpatsch>
This must be the most elaborate list concatenation I’ve done yet.
* Profpatsch
starts patting his shoulder
<copumpkin>
lol
<copumpkin>
you'll be at nixcon, right?
<Profpatsch>
aye
jtojnar_ has joined joined #nixos-dev
jtojnar has quit [(Read error: Connection reset by peer)]
jtojnar_ has quit [(Remote host closed the connection)]
goibhniu has quit [(Ping timeout: 248 seconds)]
MichaelRaskin has joined joined #nixos-dev
<copumpkin>
niksnut: you seen many of these? error: AWS error fetching ‘a0ns0fbflkf485l9lsx7zv03b25hy61h.narinfo’: Unable to parse ExceptionName: InternalError Message: We encountered an internal error. Please try again.
<copumpkin>
from 1.12
<copumpkin>
I'm thinking I might need to tinker with the AWS retry policy too :D
<aminechikhaoui>
Howdy folks, anyone knows what's the cmd to sync a local nix store with an s3 binary cache store with nix 1.12 ?
<copumpkin>
sync? there's `nix copy` but that generally goes one direction, and will only copy closure of paths you ask it to
<LnL>
nix 1.12 has native support for s3 with nix copy IIRC
<copumpkin>
yeah
<aminechikhaoui>
hm I probably can do a mix of nix path-info --all and nix copy then
<copumpkin>
oh I didn't know about nix path-info --all
<copumpkin>
but yeah, `nix copy --to s3://foo <paths>`
<copumpkin>
up until recently you had to pass in -r if you wanted it to copy the full closure
<copumpkin>
now it'll do it by default
<aminechikhaoui>
nice
<aminechikhaoui>
copumpkin: any idea which nix rev fixed the -r thingy ? got 1.12pre5619_346aeee1 in my machine
<copumpkin>
don't recall, but it was in the past couple of weeks
<copumpkin>
nixUnstable in nixpkgs-unstable now defaults to -r
<aminechikhaoui>
ok thanks
zraexy has quit [(Ping timeout: 255 seconds)]
infinisil has quit [(Quit: ZNC 1.7.x-git-unknown - https://znc.in)]
infinisil has joined joined #nixos-dev
<copumpkin>
is there some sort of nix-instantiate --eval --json --strict that also builds stuff as needed?
<copumpkin>
like if I have an attrset that refers to derivations and such
<copumpkin>
I want to get the JSON out of it, but I also want the paths in question to be valid
<gchristensen>
I think you don't want --eval?
<gchristensen>
oh hm
<copumpkin>
I think --json and --strict both come from --eval
<gchristensen>
yeah
<copumpkin>
the issue is that there doesn't seem to be a reliable way to get nix-build to build the same thing
<copumpkin>
so if it's a simple structure, I can do nix-build ... && nix-instantiate --json --eval --strict
<copumpkin>
but for anything more complicated I don't think there's any ... I can put above that'll make sure that all the paths returned by nix-instantiate are valid
JosW has quit [(Quit: Konversation terminated!)]
<Dezgeg>
make some IFD hack that recurses your json and collects the paths and depends on them?
<copumpkin>
Dezgeg: doesn't even really need to be IFD I guess
<gchristensen>
MichaelRaskin: right now, just Approved Serious People. later, A Much Longer List Of Approved Serious People
<hl>
What is the state of cross-compilation support in NixOS?
<aminechikhaoui>
hm does the nix daemon care about AWS creds being passed to its systemd service environment as env vars
<MichaelRaskin>
I would estimate that cross-compilation support in Nixpkgs is uneven.
<copumpkin>
aminechikhaoui: not sure, I use instance metadata creds
<copumpkin>
hl: best person to answer that is Sonarpulse
<MichaelRaskin>
Depends on target, depends on package.
<Dezgeg>
hmm yes, maybe instead of generating the json with 'nix-instantiate --json --eval --strict' a simple 'pkgs.writeText (builtins.toJSON myStruct)' would do that
<copumpkin>
@Dez
<copumpkin>
yeah that's what I'm thinking
* copumpkin
experiments
<Sonarpulse>
hi
<Sonarpulse>
hl nixpkgs or nixos?
<Sonarpulse>
bgamari (on #nixos) was working on some basic linux whole-world cross-compilation