flakelight | 38 Members | |
| https://github.com/nix-community/flakelight | 12 Servers |
| Sender | Message | Time |
|---|---|---|
| 15 Mar 2024 | ||
| good idea :) let me give that a go | 15:55:34 | |
| thanks! I appreciate it! | 15:55:40 | |
hmm, weird, no even with just inherit src; in the crane call the filetree is the same (filtered rust related stuff). that seems completely wrong, based on that change. so, let me dig around and make sure I'm not doing anything stupid | 16:00:37 | |
| wait, nope, yeah I did something stupid ๐คฆโโ๏ธignore this โ๏ธ | 16:01:32 | |
| hmm, okay, still no luck - every time the source tree is the same, even with
| 16:06:20 | |
| Huh, that probably means crane is filtering the source | 17:21:57 | |
| I'll see if thats the case and if it can be disabled | 17:22:10 | |
| (and maybe switch off crane; people at NixCon were mentioning might be better to use no-cargo instead) | 17:22:37 | |
| https://github.com/ipetkov/crane/blob/10484f86201bb94bd61ecc5335b1496794fedb78/docs/source-filtering.md?plain=1#L24 | 17:23:53 | |
| Ah yeah, seems will have to turn this crane feature off in flakelight-rust | 17:24:15 | |
| actually hmm that seems opt-in | 17:29:27 | |
| Maybe https://github.com/ipetkov/crane/issues/352? | 17:32:02 | |
| ahh, interesting, yeah it's possibly related to the above issue (although it's closed, haha) | 17:33:24 | |
| what's 'no-cargo'? is that a nix rust abstraction? | 17:33:41 | |
| https://github.com/oxalica/nocargo this? | 17:33:59 | |
| Yeah | 17:34:06 | |
| oh cool, not seen this before | 17:34:14 | |
| I hadn;t heard of it either but people said it has better caching for deps than crane | 17:34:49 | |
| 19 Mar 2024 | ||
| 00:29:56 | ||
| 21 Mar 2024 | ||
| 18:02:53 | ||
| 24 Mar 2024 | ||
| 23:06:35 | ||
| cmacrae: Not sure about how to make crane not filter deps; might have to open an issue there. Been busy, apologies for late reply Looking into using nocargo as well, seems better, though may need some work to make it usable | 23:10:26 | |
Do you have an example of how the file is included? is it include_str! or include_bytes!? or is Cargo.toml somehow importing it? | 23:41:43 | |
| Yeah with include_str/bytes, I'm getting expected behavior of just the fileset applying, so unsure how to reproduce the issue | 23:56:44 | |
| 25 Mar 2024 | ||
| no need for apologies! I wasn't expecting anything :) I've had to switch focus to some other stuff for now, so will go spelunking with Nix/Rust stuff then ๐๏ธ definitely curious about nocargo | 14:29:29 | |
| 27 Mar 2024 | ||
| 09:04:01 | ||
| 29 Mar 2024 | ||
| 05:40:41 | ||
| 4 Apr 2024 | ||
| 22:02:37 | ||
| 5 Apr 2024 | ||
| ๐ I've been porting my nixos+home-manager config to flakelight and thought you would like a little feedback from somebody who has been using nix and flakes for a while but is new to flakelight. Overall, it has been a great experience. Everything works, (well, builds) and flakelight provides a lot of functionality that I had had to half hack together hand half get-around-to-eventually for very little effort. The biggest surprise for me was that the pkgs for NixOS and home-manager configurations do not automatically contain the overlays specified at the top level with withOverlays and the config in nixpkgs.config. I think it would be useful to have this explicitly documented and an example of how to pass them to nixosConfigurations and homeConfigurations.I also struggled a little with how to add packages from other flakes which were not exposed as overlays. Ultimately, I added an overlay like to add an NUR package set andto add a package from another flake. I think these should be pretty common use-cases, so might be worth giving an example in the documentation?Excited to try out nixDir next, as it should remove more or less the last remnants of boilerplate from my flake.nix. Thanks for putting flakelight together! | 20:12:44 | |
| ๐ I've been porting my nixos+home-manager config to flakelight and thought you would like a little feedback from somebody who has been using nix and flakes for a while but is new to flakelight. Overall, it has been a great experience. Everything works, (well, builds) and flakelight provides a lot of functionality that I had had to half hack together hand half get-around-to-eventually for very little effort. The biggest surprise for me was that the pkgs for NixOS and home-manager configurations do not automatically contain the overlays specified at the top level with withOverlays and the config in nixpkgs.config. I think it would be useful to have this explicitly documented and an example of how to pass them to nixosConfigurations and homeConfigurations.I also struggled a little with how to add packages from other flakes which were not exposed as overlays. Ultimately, I added an overlay like to add an NUR package set andto add a package from another flake. I think these should be pretty common use-cases, so might be worth giving an example in the documentation?Excited to try out nixDir next, as it should remove more or less the last remnants of boilerplate from my flake.nix. Thanks for putting flakelight together! | 20:12:56 | |