!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

681 Members
Rust154 Servers

Load older messages


SenderMessageTime
9 Apr 2025
@glepage:matrix.orgGaétan Lepage
In reply to @qyliss:fairydust.space
There is a variable for the system part
I ended up using cargoInstallHook.targetSubdirectory
14:03:35
@glepage:matrix.orgGaétan Lepage https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/ra/rav1d/package.nix#L38-L49 14:03:37
@cleverca22:matrix.orgcleverca22
[clever@thinkpad:~/iohk/midnight-node]$ ls /nix/store/0rn3apgrjdqrq6zpqsrh5b8dmlxbci42-rustc-1.85.0/lib/rustlib/wasm32-unknown-unknown/lib/
libaddr2line-75d3d0c5981cd211.rlib          libcore-c8e3d79b493aee7a.rlib       liblibc-279616ba3aa6b6b5.rlib         libpanic_unwind-5bf15f6e79874620.rlib               librustc_std_workspace_core-20597a32dbe324b7.rlib  libtest-72b3932de24c9224.rlib
libadler-7915b69899d8f62d.rlib              libdlmalloc-82297a628a89729a.rlib   libmemchr-12d9c02ac2b46e93.rlib       libproc_macro-604f5a1a5a3487e6.rlib                 librustc_std_workspace_std-3fb1821d50d1a00e.rlib   libunicode_width-f19aa74aa999edec.rlib
liballoc-a55cb6cdcc7074cd.rlib              libgetopts-4c1c3c48cdd30e1d.rlib    libminiz_oxide-b4d4129edfbbc22f.rlib  libprofiler_builtins-69ea14db5fb2290e.rlib          libstd-4e586b256d6eead5.rlib                       libunwind-610f019430ca2de2.rlib
libcfg_if-57ac834c4abeb545.rlib             libgimli-10b471aa877c9dcc.rlib      libobject-4bbfa37031017b9f.rlib       librustc_demangle-d987a56c328827e5.rlib             libstd_detect-cf3cdd655689b063.rlib
libcompiler_builtins-9bfd52bc78369877.rlib  libhashbrown-06aa1b00a4ac11fb.rlib  libpanic_abort-91efa2f4e3051c3f.rlib  librustc_std_workspace_alloc-5894bc93779fa041.rlib  libsysroot-bcec41c60c9f169c.rlib
14:09:34
@cleverca22:matrix.orgcleverca22and yet, the path it gave, does have wasm32!?14:09:52
@cleverca22:matrix.orgcleverca22 *
[clever@thinkpad:~/iohk/]$ ls /nix/store/0rn3apgrjdqrq6zpqsrh5b8dmlxbci42-rustc-1.85.0/lib/rustlib/wasm32-unknown-unknown/lib/
libaddr2line-75d3d0c5981cd211.rlib          libcore-c8e3d79b493aee7a.rlib       liblibc-279616ba3aa6b6b5.rlib         libpanic_unwind-5bf15f6e79874620.rlib               librustc_std_workspace_core-20597a32dbe324b7.rlib  libtest-72b3932de24c9224.rlib
libadler-7915b69899d8f62d.rlib              libdlmalloc-82297a628a89729a.rlib   libmemchr-12d9c02ac2b46e93.rlib       libproc_macro-604f5a1a5a3487e6.rlib                 librustc_std_workspace_std-3fb1821d50d1a00e.rlib   libunicode_width-f19aa74aa999edec.rlib
liballoc-a55cb6cdcc7074cd.rlib              libgetopts-4c1c3c48cdd30e1d.rlib    libminiz_oxide-b4d4129edfbbc22f.rlib  libprofiler_builtins-69ea14db5fb2290e.rlib          libstd-4e586b256d6eead5.rlib                       libunwind-610f019430ca2de2.rlib
libcfg_if-57ac834c4abeb545.rlib             libgimli-10b471aa877c9dcc.rlib      libobject-4bbfa37031017b9f.rlib       librustc_demangle-d987a56c328827e5.rlib             libstd_detect-cf3cdd655689b063.rlib
libcompiler_builtins-9bfd52bc78369877.rlib  libhashbrown-06aa1b00a4ac11fb.rlib  libpanic_abort-91efa2f4e3051c3f.rlib  librustc_std_workspace_alloc-5894bc93779fa041.rlib  libsysroot-bcec41c60c9f169c.rlib
14:10:03
@cleverca22:matrix.orgcleverca22ah wait, it wants the SOURCE for wasm32!14:11:34
@cleverca22:matrix.orgcleverca22 K900: any ideas? 14:14:40
@k900:0upti.meK900It should be the same source always14:14:53
@cleverca22:matrix.orgcleverca22 ls: cannot access '/nix/store/0rn3apgrjdqrq6zpqsrh5b8dmlxbci42-rustc-1.85.0/lib/rustlib/src/rust': No such file or directory 14:15:09
@cleverca22:matrix.orgcleverca22its looking in here for wasm3214:15:14
@cleverca22:matrix.orgcleverca22 but its only in $out//lib/rustlib/wasm32-unknown-unknown/ 14:15:32
@cleverca22:matrix.orgcleverca22in a pre-compiled form14:15:37
@qyliss:fairydust.spaceAlyssa RossWhy does it need source?14:18:09
@cleverca22:matrix.orgcleverca22
In reply to @qyliss:fairydust.space
Why does it need source?

no idea, but thats what the error said:

Cannot compile the WASM runtime: no standard library sources found at /nix/store/0rn3apgrjdqrq6zpqsrh5b8dmlxbci42-rustc-1.85.0/lib/rustlib/src/rust
16:24:57
10 Apr 2025
@anselmetombarel:matrix.organselmetombarel joined the room.14:46:14
@sdht0:matrix.orgsdht0 joined the room.17:00:07
@tobi34:matrix.orgtobi34It seems that https://github.com/nix-community/fenix.git does not have the current rust stable version 1.86.0. Is there a workaround to get rust 1.86.0 with fenix ?19:20:12
@k900:0upti.meK900It should presumably update after the fix that was just merged19:22:06
@tobi34:matrix.orgtobi34I have looked at the last commit, it seems to have fixed some vscode problem. I didn't see a change for updating to 1.86.0 (I am very new to nix, so I'm not sure). In the issues page there is a call for a new maintainer. 19:34:45
@k900:0upti.meK900That change fixes the automatic CI workflow19:39:36
@k900:0upti.meK900That updates the Rust versions19:39:40
11 Apr 2025
@drupol:matrix.orgPol joined the room.07:48:32
@drupol:matrix.orgPolHey, I would like to package my first Rust project to Nixpkgs, but there are flaky test when tests are ran by the checkphase within Nix.07:49:50
@drupol:matrix.orgPolYou can see the package here: https://github.com/NixOS/nixpkgs/pull/397142/commits/dccd2f8cf6e64985393fb6f04ee2d12c763af0a807:50:31
@drupol:matrix.orgPolYou can see failures here: https://github.com/NixOS/nixpkgs/actions/runs/14398178146/job/40377988045?pr=39714207:51:10
@drupol:matrix.orgPolI made another run, now only 2 tests are failing instead of 3: https://github.com/NixOS/nixpkgs/actions/runs/14398178146/job/4037846031207:58:40
@drupol:matrix.orgPol I'll try to set dontUseCargoParallelTests = true; 08:03:27
@drupol:matrix.orgPolLooks like the issue is fixed: https://github.com/NixOS/nixpkgs/actions/runs/14398639050/job/40379213126?pr=39714208:13:18
@prism019:matrix.org@prism019:matrix.org left the room.22:37:30
@benjaminsparks:chat.alugha.appBen Sparks joined the room.23:01:17

Show newer messages


Back to Room ListRoom Version: 6