!9IQChSjwSHXPPWTa:lix.systems

Lix

1121 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms302 Servers

Load older messages


SenderMessageTime
15 May 2024
@charles:computer.surgeryCharlesYeah21:14:58
@mjm:midna.devmjmyeah plenty of flakes support multiple systems but only have x86_64-linux cached21:15:05
@charles:computer.surgeryCharles
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@jade_:matrix.orgthe 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@jade_:matrix.orgi actually think that single entry point file might be Part of the Problem21:16:15
@jade_:matrix.org@jade_:matrix.orgeven if it makes some things more understandable 🙃21:16:25
@murazaki:matrix.orgmurazakitrying 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_T21:22:58
@jade_:matrix.org@jade_:matrix.orgdo you mean nix-update?21:23:47
@murazaki:matrix.orgmurazakiuhh no sorry I meant nix-patcher ^^21:24:11
@murazaki:matrix.orgmurazakiI tried it but maybe it's not that good of an idea21:24:34
@murazaki:matrix.orgmurazaki https://github.com/katrinafyi/nix-patcher 21:24:46
@jade_:matrix.org@jade_:matrix.orgwoahhh crimes21:25:50
@jade_:matrix.org@jade_:matrix.orgi try to eliminate my need for actual nixpkgs patches by just vendoring stuff in overlays21:26:08
@murazaki:matrix.orgmurazakiok but does that mean I need to rewrite the PR to an overlay ?21:27:42
@jade_:matrix.org@jade_:matrix.orgyes, but that's often just copying a file and then writing callPackage into a file21:28:34
@murazaki:matrix.orgmurazakiok great but what's the process ? I'm in nixos.wiki overlays21:30:04
@murazaki:matrix.orgmurazakithere's just on case about callPackage and the content of the file is not given21:31:05
@jade_:matrix.org@jade_:matrix.orgwiki.nixos.org is the correct wiki21:31:09
@jade_:matrix.org@jade_:matrix.org but callPackage takes a file that contains a lambda like {somePkg, somePkg2}: some-stuff 21:31:43
@murazaki:matrix.orgmurazaki* there's just one case about callPackage and the content of the file is not given21:31:43
@jade_:matrix.org@jade_:matrix.orglet me see if the nixpkgs manual is useful here21:32:00
@jade_:matrix.org@jade_:matrix.orghttps://nixos.org/manual/nixpkgs/stable/#sec-overlays-definition21:32:34
@jade_:matrix.org@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:katesiria.orgQyriadI can't believe callPackage still does not have API reference docs… But there is also https://nix.dev/tutorials/callpackage at least21:36:09
@jade_:matrix.org@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:katesiria.orgQyriadWait it finally does?21:36:26
@jade_:matrix.org@jade_:matrix.orgi dont think they are in stable21:36:28
@jade_:matrix.org@jade_:matrix.orgvalentin wrote some21:36:38
@ff-vringar:mozilla.orgvringar
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:matrix.orgmurazakiok thanks but what about code patches or git content to fetch and fill the overlay >21:36:52

Show newer messages


Back to Room ListRoom Version: 10