| 15 May 2024 |
Charles | Yeah | 21:14:58 |
mjm | yeah plenty of flakes support multiple systems but only have x86_64-linux cached | 21:15:05 |
Charles | In reply to @jade_:matrix.org i also think that it might be reasonable to actually do something different than that, maybe expose sets of settings that are ci'd? That's what I do here: https://gitlab.computer.surgery/matrix/grapevine-fork/-/blob/main/flake.nix?ref_type=heads#L60 | 21:15:46 |
@jade_:matrix.org | the other thing is that we have a very common use case of "i want to give you an already imported nixpkgs" | 21:16:01 |
@jade_:matrix.org | i actually think that single entry point file might be Part of the Problem | 21:16:15 |
@jade_:matrix.org | even if it makes some things more understandable 🙃 | 21:16:25 |
murazaki | trying to use a nixpkgs PR and I can't figure how that should work, what's wrong and what nix-updater is complaining about T_T | 21:22:58 |
@jade_:matrix.org | do you mean nix-update? | 21:23:47 |
murazaki | uhh no sorry I meant nix-patcher ^^ | 21:24:11 |
murazaki | I tried it but maybe it's not that good of an idea | 21:24:34 |
murazaki | https://github.com/katrinafyi/nix-patcher | 21:24:46 |
@jade_:matrix.org | woahhh crimes | 21:25:50 |
@jade_:matrix.org | i try to eliminate my need for actual nixpkgs patches by just vendoring stuff in overlays | 21:26:08 |
murazaki | ok but does that mean I need to rewrite the PR to an overlay ? | 21:27:42 |
@jade_:matrix.org | yes, but that's often just copying a file and then writing callPackage into a file | 21:28:34 |
murazaki | ok great but what's the process ? I'm in nixos.wiki overlays | 21:30:04 |
murazaki | there's just on case about callPackage and the content of the file is not given | 21:31:05 |
@jade_:matrix.org | wiki.nixos.org is the correct wiki | 21:31:09 |
@jade_:matrix.org | but callPackage takes a file that contains a lambda like {somePkg, somePkg2}: some-stuff | 21:31:43 |
murazaki | * there's just one case about callPackage and the content of the file is not given | 21:31:43 |
@jade_:matrix.org | let me see if the nixpkgs manual is useful here | 21:32:00 |
@jade_:matrix.org | https://nixos.org/manual/nixpkgs/stable/#sec-overlays-definition | 21:32:34 |
@jade_:matrix.org | https://nixos.org/manual/nixpkgs/stable/#sec-pkg-override this may also be helpful in re what callPackage does (basically it gives you pkgs.NAME for each argument called NAME, and then adds .override that lets you replace it, returning a new called version of your function with the new arg) | 21:35:24 |
Qyriad | I can't believe callPackage still does not have API reference docs… But there is also https://nix.dev/tutorials/callpackage at least | 21:36:09 |
@jade_:matrix.org | In reply to @qyriad:katesiria.org I can't believe callPackage still does not have API reference docs… But there is also https://nix.dev/tutorials/callpackage at least it does | 21:36:19 |
Qyriad | Wait it finally does? | 21:36:26 |
@jade_:matrix.org | i dont think they are in stable | 21:36:28 |
@jade_:matrix.org | valentin wrote some | 21:36:38 |
vringar | In reply to @jade_:matrix.org wiki.nixos.org is the correct wiki Is there a meta collection of knowledge bases with a quick comment on each of them like "look here if you want to know X or if Y is your learning style"? | 21:36:47 |
murazaki | ok thanks but what about code patches or git content to fetch and fill the overlay > | 21:36:52 |