| 23 May 2023 |
figsoda | otherwise you can do stuff like (builtins.getFlake "/path/to/your/nixos/config").nixosConfigurations.<name>.nixpkgs.overlays | 23:13:07 |
figsoda | or (builtins.getFlake "/path/to/your/nixos/config").nixosConfigurations.<name>._module.args.pkgs | 23:13:57 |
figsoda | * or (builtins.getFlake "/path/to/your/nixos/config").nixosConfigurations.<name>._module.args.pkgs if you want to overwrite <nixpkgs> | 23:14:07 |
figsoda | you can replace /path/to/your/nixos/config with an interpolation of a relative path if that makes it easier | 23:15:03 |
figsoda | and you can put that in a separate file or wrap it with a writeText or toFile | 23:15:42 |
bendlas | that's not what I wanna do. but no problem. either I'll figure it out, or maybe someone who has solved this comes along .. | 23:17:58 |
bendlas | Repeating this here: Does anybody have a working nixos flake config, that can share nixpkgs config and overlays between nixos modules and other nix tools doing import <nixpkgs>? | 23:21:28 |
bendlas | * Repeating this here: Does anybody have a working nixos flake config, that can share nixpkgs config and overlays between nixos modules and other nix tools doing import <nixpkgs>? In a way similar to the Using nixpkgs.overlays from configuration.nix section in https://nixos.wiki/wiki/Overlays? | 23:23:03 |
figsoda | In reply to @figsoda:matrix.org otherwise you can do stuff like (builtins.getFlake "/path/to/your/nixos/config").nixosConfigurations.<name>.nixpkgs.overlays that's what this does | 23:25:33 |
bendlas | I see. I was going in that direction (only with flake-compat), but couldn't test it so far because of unrelated difficulties. So I wondered if anyone already had something up. | 23:28:28 |
bendlas | but I had a hunch that it would work like that, once I pushed it to a repo and didn't need --override-input any more -- which makes getFlake as well as flake-compat break in my test container | 23:32:32 |
| 24 May 2023 |
| @phelix:c-base.org left the room. | 18:09:54 |
| 27 May 2023 |
| tfortmuller joined the room. | 07:13:06 |
| mjolnirchanged room power levels. | 16:41:40 |
| 28 May 2023 |
| @uwap:ohai.su joined the room. | 14:11:04 |
| @uwap:ohai.su left the room. | 14:12:59 |
| @yuu:matrix.org left the room. | 20:31:40 |
| 29 May 2023 |
@peddie:matrix.org | hi, I tried to run nix develop on a flake-enabled repository and got error: A hash was specified for <package>, but there is no corresponding git dependency. in the flake.nix file in question, indeed I see a list of outputHashes but no other reference to the package in question (https://github.com/pola-rs/r-polars/blob/main/flake.nix#L23 arrow2-0.16.0). is this a flake problem? the specific command was nix develop github:Sicheng-Pan/r-polars | 02:48:47 |
@peddie:matrix.org | same error with repo `pola-rs/r-polars` | 02:57:32 |
kenji | Seems unmaintained, what happens if you remove the hashes?
| 06:34:40 |
kenji | This doesn't seem like a flake specific problem.
| 06:35:04 |
@peddie:matrix.org | ok thanks, opened an issue on github | 07:00:51 |
@peddie:matrix.org | just didn't recognise that error message and initial googling suggested maybe flakes were associated with the error | 07:03:38 |
| 30 May 2023 |
| didiercrunch joined the room. | 15:29:00 |
didiercrunch | have you tried nix flake update? | 15:30:10 |
didiercrunch | Quick question: how do I get the timestamp of the revision in a nix flake? I know the revision is self.rev, is there something like self.lastModified? And more importantly, where is that documented? | 15:31:29 |
@ulli:hrnz.li | https://github.com/NixOS/nix/blob/master/src/nix/flake.md#flake-reference-attributes | 15:36:30 |
didiercrunch | thanks a lot | 15:37:04 |
@peddie:matrix.org | didiercrunch: no, I ran the command from outside the repo (I don't have it on my machine, I want to pull it into another flake as a dependency). the flake had not kept up with the rest of the project upstream, but they are addressing it (https://github.com/pola-rs/r-polars/issues/226) | 22:49:44 |
| 1 Jun 2023 |
| raphi changed their display name from raphi to raphi (element unread channel fix when). | 13:03:24 |