20 Sep 2024 |
Enric Morales | * having read that comment in rustc.nix and a bit more of the buildPhase, my patch would need to be applied to build the std: it applies to the configure script, as upstream has a bug that prevents setting options for targets which have a dot (like thumbv8m.main). It's what I tried to address last week by changing the configure method. | 10:23:51 |
Alyssa Ross | hmm, I'd expect your overlay there to be doing the right thing | 11:21:05 |
Alyssa Ross | Wait, did you say you're using pkgsCross , and importing nixpkgs while setting crossSystem ?
| 11:21:58 |
Enric Morales | sorry, I tried several iterations. The first was with pkgsCross and that's what I wrote in the message, then tried with just the overlay, modifying rustc as in the code above, but mistakenly left the mention of pkgsCross, adding to the confusion | 18:59:40 |
21 Sep 2024 |
| luna-null joined the room. | 05:43:46 |
| @thescientiac:matrix.org left the room. | 06:44:31 |
22 Sep 2024 |
| rane [they/them] joined the room. | 09:51:23 |
| @rayne:spooky.computer left the room. | 10:24:53 |
| @rootname:matrix.org left the room. | 10:56:00 |
anstylian | Hi, I am trying to setup vscode in nix for rust. I used the extensions form programs.vscode.extensions to setup plugins. From there I installed pkgs.vscode-extensions.vadimcn.vscode-lldb and pkgs.vscode-extensions.rust-lang.rust-analyzer . When I try to debug a rust program in vectors I just see the raw addresses not there values. I assume that the helping python script from /nix/store/..../lib/rustlib/etc are not used. Do you have any advice how to setup it correctly? | 11:26:23 |
| Li-ion changed their profile picture. | 23:06:13 |
| Li-ion changed their display name from D. Tritus to ion. | 23:07:52 |
24 Sep 2024 |
| loudgolem joined the room. | 08:45:43 |
| Nikolay Kolev changed their profile picture. | 22:27:24 |
25 Sep 2024 |
| luna-null changed their display name from luna-null to Autumn. | 06:39:22 |
| @brian:bmcgee.ie left the room. | 08:37:44 |
SebTM | Hey, there is a rust-library with python-bindings (compiled to a ".so" file" including the library) I would like/need to use in python-modules to fix protonvpn-app: https://github.com/ProtonVPN/python-proton-vpn-local-agent/
I've successfully built the .so-file and placed it in $out/lib/local_agent.so but adding the package to dependencies of the protonvpn-gui app/the proton-vpn-network-manager package does not work - same error as if it was not present - maybe I need to add it different? | 15:43:38 |
SebTM | * Hey, there is a rust-library with python-bindings (compiled to a ".so" file" including the library) I would like/need to use in python-modules to fix protonvpn-app: https://github.com/ProtonVPN/python-proton-vpn-local-agent/
I've successfully built the .so-file and placed it in $out/lib/local_agent.so but adding the package to dependencies of the protonvpn-gui app/the proton-vpn-network-manager package does not work - same error as if it was not present - maybe I need to add it different to get recognized? | 15:44:13 |
K900 | It needs to be in lib/python3.12/site-packages | 15:56:30 |
K900 | Or something like that | 15:56:33 |
| Viorel-Cătălin Răpițeanu joined the room. | 17:17:51 |
26 Sep 2024 |
hexa | ${python.sitePackages} | 23:48:50 |
hexa | nix-repl> python3.sitePackages
"lib/python3.12/site-packages"
| 23:49:13 |
hexa | overriding the python package should produce bindings for the related python version | 23:49:29 |
27 Sep 2024 |
diniamo | How can I package Rust apps with a git dependency? | 11:42:53 |
K900 | By using importCargoLock , as it tells you | 11:43:39 |
diniamo | What about if the package uses cmake instead of cargo? | 11:44:26 |
K900 | Does it use Cargo in the build at all? | 11:45:04 |
K900 | Or does it just use cmake to drive the entire thing? | 11:45:10 |
diniamo | Pretty sure it does, let me check | 11:45:26 |