19 Aug 2024 |
samasaur | since idk where else nixpkgs could be coming from | 08:24:28 |
samasaur | might be something about how the module system means that it is using the nixpkgs that made the nixosSystem | 08:25:35 |
samasaur | In reply to @blitz:chat.x86.lol The quick fix would be in your NixOS config to manually set the package option of this module to the package output of the flake this is probably the right solution for your use case | 08:25:51 |
samasaur | if you can’t update the nixpkgs input of your config flake | 08:26:16 |
Šimon Brandner | Hmm, it seems to be building now | 08:29:09 |
Šimon Brandner | I would expect this to be a very common problem and I don't really understand why it works this way... | 08:29:46 |
blitz | You might want to try the NixOS discourse for these kinds of questions | 08:29:55 |
Šimon Brandner | Is there another way to use a flake in my system config? | 08:29:58 |
blitz | It's a problem with how the module is written | 08:31:40 |
Šimon Brandner | How should I write it instead? | 08:31:55 |
blitz | https://flake.parts/define-module-in-separate-file <- flake parts has a solution for this exact problem but it has its own steep learning curve | 08:32:47 |
blitz | You have to use outputs.packages... to define the default of the package option and not callPackage again | 08:33:49 |
blitz | The quick version would be to pass the flake's self parameter to the module | 08:34:16 |
blitz | But I'm currently sitting in a plane and can't directly edit your example. If you post it on discourse I'm sure someone can help you improve the module | 08:35:00 |
Šimon Brandner | Sounds good, I'll look at the link and possibly post on discourse | 08:39:15 |
Šimon Brandner | In reply to @blitz:chat.x86.lol But I'm currently sitting in a plane and can't directly edit your example. If you post it on discourse I'm sure someone can help you improve the module Here: https://discourse.nixos.org/t/nixos-module-using-system-nixpkgs-instead-of-the-nixpkgs-specified-in-the-modules-flake/50816 | 09:22:30 |
| Shahar "Dawn" Or (mightyiam) joined the room. | 09:55:33 |
blitz | In reply to @simon.brandner:envs.net Here: https://discourse.nixos.org/t/nixos-module-using-system-nixpkgs-instead-of-the-nixpkgs-specified-in-the-modules-flake/50816 The response you got looks good! | 10:15:38 |
blitz | I hope it helps you! | 10:15:50 |
Šimon Brandner | I'll give it a go later | 10:15:58 |
Šimon Brandner | It did do the trick! | 11:25:06 |
| cafkafk changed their profile picture. | 12:45:30 |
damccull | Is it possible to have a flake with nativeBuildInputs listed such that one particular package is built from source with a specific version of rustc/cargo that is different than the version my devShell would then use? | 19:17:19 |
damccull | * Is it possible to have a flake with nativeBuildInputs listed such that one particular package is built from source with a specific version of rustc/cargo that is different than the version my devShell would then use? Where I (hopefully) specify it instead of making a new flake/overlay for it | 19:18:17 |
Sashanoraa.gay (she/her, ze/zir) | In reply to @damccull:matrix.org Is it possible to have a flake with nativeBuildInputs listed such that one particular package is built from source with a specific version of rustc/cargo that is different than the version my devShell would then use? Where I (hopefully) specify it instead of making a new flake/overlay for it I think something like that might be possile using the rust overlay https://github.com/oxalica/rust-overlay | 19:38:43 |
damccull | In reply to @sasha:the-apothecary.club I think something like that might be possile using the rust overlay https://github.com/oxalica/rust-overlay Excellent. Now to figure out how. I'm already using oxilica's overlay. It's nice. | 19:39:38 |
damccull | Makes it easy to have multiple version of rust where I can jus tlaunch the right version devShell, but I need to figure out how a 1.80 devShell can build a specific dependency with 1.78 :D | 19:40:13 |
Alyssa Ross | Are you sure it isn't easier to update that dependency? | 20:09:09 |
Alyssa Ross | (assuming this is because of the inference changes in 1.80, it's usually a very easy fix) | 20:09:51 |
20 Aug 2024 |
| WeetHet joined the room. | 00:09:38 |