Sender | Message | Time |
---|---|---|
1 May 2025 | ||
I'm looking for some help. I'm trying to do this: https://gist.github.com/drupol/15146d0b2d4eff11473a5db0caf23155 | 18:01:16 | |
I have found this:
But the list are not merged together. Do you suggest something better? | 18:17:43 | |
20:09:29 | ||
You could maybe try to hack something around evalModules | 20:17:52 | |
In that example, you want to merge multiple modules into If you, you can simply define The only work you need to do is to extract the data at the attrpath Something like: | 21:13:31 | |
2 May 2025 | ||
Hello everybody! I want to create a Nix development environment flake for Rust. For tools that are accessed by my editor (Emacs), such as rust-analyzer and clippy , should I keep those outside of the flake somehow? | 02:51:03 | |
"it depends" :-) | 02:55:32 | |
You might want some project specfic sets of tools, like the LSP, that's only used with that project.. maybe a relevant pinned version matching the compiler version, etc. Or maybe you only want the Rust LSP when working on a Rust project, and you have another for Python or whatever else in other projects. In that case, having your entire project setup in the project flake is helpful. You would enter the project directory / devshell, and then start the editor in that environment. One good thing about that is then you can have that same editor environment on any host, nixos or not. | 02:57:49 | |
Or you might think of the editor more as part of your user and desktop environment, that you want working the same for any directory. This is especially true if you tend to have a long-running emacs session, and use emacsclient to edit specific files. In that case, you want it outside the project and managed by your system or home-manager config | 02:59:17 | |
Here's a recent post on the topic with some suggestions: https://discourse.nixos.org/t/how-to-run-a-command-in-a-running-nix-shell-from-outside/63595/7?u=uep | 03:03:08 | |
Thank you, going to try ! | 06:29:13 | |
I tried, without luck so far, here's the issue I have: https://matrix.to/#/!gcrYWdPsIUOFpXFDHB:matrix.org/$fQDQSwXfnSWd6bL9fpOnpz5ir57hBqBlqr35Rf7I_0c?via=matrix.org&via=goblin.sh&via=nixos.dev | 13:21:13 | |
4 May 2025 | ||
I'm trying to create a wrapped version of lld so that the Nix magic works for dynamically linked libraries. I'm trying to modify this snippet: https://github.com/NixOS/nixpkgs/issues/24744#issuecomment-2094118403 to work for me, but it's unclear how to get the "path" (ie, the path to nixpkgs. I've tried something like ${<nixpkgs/foo>} , but that does not seem to match the nixpkgs in my flake. How do I get this path? | 05:07:33 | |
* I'm trying to create a wrapped version of lld so that the Nix magic works for dynamically linked libraries. I'm trying to modify this snippet: https://github.com/NixOS/nixpkgs/issues/24744#issuecomment-2094118403 to work for me, but it's unclear how to get the "path" (ie, the path to nixpkgs. I've tried something like ${<nixpkgs/foo>} , but that does not seem to match the nixpkgs in my flake (maybe it's the nixpkgs in my channels or something?). How do I get this path? | 05:07:58 | |
Or better yet, given pkgs that I got from doing something like pkgs = import <nixpkgs> {} , how do I get the store path of that <nixpkgs> | 05:14:38 | |
pkgs.path | 05:15:38 | |
Or better, builtins.storePath pkgs.path | 05:15:55 | |
Oh wow, that works!! | 05:22:24 | |
Thanks so much! | 05:22:26 | |
In reply to @piegames:flausch.socialWhy is this one better? | 15:49:52 | |
In the case where pkgs.path points into the store, it won't copy it into the store twice | 16:46:15 | |
5 May 2025 | ||
09:40:04 | ||
15:00:17 | ||
20:48:11 | ||
6 May 2025 | ||
09:12:26 | ||
7 May 2025 | ||
15:11:41 | ||
8 May 2025 | ||
08:58:21 | ||
11:35:19 | ||
16:53:38 | ||
19:20:39 |