!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

237 Members
https://github.com/nixpkgs-architecture, weekly public meetings on Wednesday 15:00-16:00 UTC at https://meet.jit.si/nixpkgs-architecture54 Servers

Load older messages


SenderMessageTime
21 Jul 2022
@sandro:supersandro.deSandro 🐧
In reply to @j-k:matrix.org
sent an image.
kinda looks like prometheus upside down without the flame 🤔
12:59:03
@roberthensing:matrix.orgRobert Hensing (roberth)
In reply to @qyliss:fairydust.space
strongly disagree with having higher-level builder hooks, for exactly this reason. As it stands, setup hooks compose much better than high-level Nix derivation wrapper functions.
setup hooks don't have a per derivation eval overhead, whereas you pay an eval price for every feature that's in a mkDerivation wrapper
13:01:08
@qyliss:fairydust.spaceAlyssa Rossalso a good point13:01:36
@roberthensing:matrix.orgRobert Hensing (roberth)
In reply to @qyliss:fairydust.space
strongly disagree with having higher-level builder hooks, for exactly this reason. As it stands, setup hooks compose much better than high-level Nix derivation wrapper functions.
* also, setup hooks don't have a per derivation eval overhead, whereas you pay an eval price for every feature that's in a mkDerivation wrapper
13:01:38
@yorik.sar:matrix.orgyorik.sarI think we should optimise the evaluation process, not try to avoid it...13:35:59
@Ericson2314:matrix.orgJohn Ericsonyeah setup hooks cannot be the solution14:10:32
@Ericson2314:matrix.orgJohn Ericsonagree today's builder functions are no ogod14:10:41
@Ericson2314:matrix.orgJohn Ericson * agree today's builder functions are no good14:10:44
@qyliss:fairydust.spaceAlyssa Rosswhy can't the be the solution?14:11:16
@Ericson2314:matrix.orgJohn Ericson they are just too jank for for me, and when you do need eval time info they are no good 14:11:42
@qyliss:fairydust.spaceAlyssa RossI think setup hooks are great, as they allow package authors to simply declare the dependencies, and most of the time the right thing will happen. If it doesn't, it's easy to disable the problematic setup hooks and do things manually.14:12:32
@Ericson2314:matrix.orgJohn Ericson e.g. if we wanted to do build-cc cc target-ccrather thanmachine-cc` in wrapper would be nice to have some sort of eval level setup hook to build the wrapper with different prefix depending on how it is used 14:12:45
@Ericson2314:matrix.orgJohn Ericson Well, what I really believe is Nix needs more layering so we can get a better diversity of approaches 14:13:30
@Ericson2314:matrix.orgJohn Ericsonit's very hard to steer nixpkgs at all right now14:13:48
@qyliss:fairydust.spaceAlyssa Rosswdym by layering?14:13:59
@Ericson2314:matrix.orgJohn EricsonI want to be able to build store layer without eval or falkes14:14:14
@Ericson2314:matrix.orgJohn Ericson * I want to be able to build store layer without eval or flakes14:14:17
@Ericson2314:matrix.orgJohn Ericsonand have a binary for it14:14:24
@Ericson2314:matrix.orgJohn Ericsonand try to standardize that between guix and us14:14:36
@infinisil:matrix.orginfinisilNot sure if I get the main problem here. Is it something like eval time vs build time computation?14:14:36
@qyliss:fairydust.spaceAlyssa RossNoble cause, but is it relevant to stdenv?14:14:43
@qyliss:fairydust.spaceAlyssa Rossor setup hooks vs builders?14:15:10
@Ericson2314:matrix.orgJohn Ericsonif we have more experimentaiton but interopt at the higher level, we can have "farm teams" trying out ideas and Nixpkgs can pick the best ones14:15:17
@infinisil:matrix.orginfinisilAnd setup hooks are currently build time, but because of that it doesn't allow eval time inspection? And how does that relate to wrapping? Can't there be eval or build time wrapping?14:15:31
@Ericson2314:matrix.orgJohn Ericson * if we have more experimentaiton but interopt at the higher level, we can have "farm teams" trying out ideas and Nixpkgs can pick the best ones. That's how they connect.14:16:15
@j-k:matrix.orgj-k
In reply to @Ericson2314:matrix.org
and try to standardize that between guix and us

makes me think of the modularity discussed in tvix but IDK if there has been much progress there

https://tvl.fyi/blog/rewriting-nix

14:17:07
@Ericson2314:matrix.orgJohn Ericsonthey are still doing things I understand, but yes this should be driven by the foundation14:18:46
@Ericson2314:matrix.orgJohn Ericsonit is some technological work but also more importantly believing that multiple approaches is good, vs everyone must use exprs or flakes or whatever14:19:21
@Ericson2314:matrix.orgJohn EricsonI do think nickle or hnix or something will give us types 14:20:02
@Ericson2314:matrix.orgJohn Ericsonnot C++ nix14:20:09

Show newer messages


Back to Room ListRoom Version: 9