!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

681 Members
Rust154 Servers

Load older messages


SenderMessageTime
17 Apr 2025
@hexa:lossy.networkhexa(╯°□°)╯︵ ┻━┻03:57:23
@hexa:lossy.networkhexa can't reproduce with nix-shell -p cargo python3.pkgs.build --run "python3 -m buiild py" 04:22:07
@hexa:lossy.networkhexa * can't reproduce with nix-shell -p cargo python3.pkgs.build --run "python3 -m build py" 04:23:18
@hexa:lossy.networkhexa

cargo-deps-vendor-staging> Fetching https://crates.io/api/v1/crates/tokio/1.42.0/download -> tarballs/tokio-1.42.0.tar.gz

04:25:07
@hexa:lossy.networkhexasame version of tokio04:25:23
@hexa:lossy.networkhexabecause of course it is locked04:29:40
@hexa:lossy.networkhexaa fun bit is that the tag on the repo is not the version of the python package in the repo 🤪04:30:01
@hexa:lossy.networkhexahttps://github.com/getsentry/relay/blob/master/py/setup.py#L2304:30:43
@hexa:lossy.networkhexaand instead of 25.4.0 we get 0.9.804:30:49
@hexa:lossy.networkhexareminds me of good ol' openssl04:30:54
@hexa:lossy.networkhexa * reminds me of good ol' openssl 04:30:59
@hexa:lossy.networkhexalatest version pushed to https://github.com/mweinelt/nixpkgs/blob/sentry/pkgs/development/python-modules/sentry-relay/default.nix04:33:05
@k900:0upti.meK900We don't have a prefetch-cargo-vendor or anything, right?09:56:47
@emilazy:matrix.orgemily nix-update can do it 10:06:47
@emilazy:matrix.orgemilyif you tell it not to bump the version10:06:52
@k900:0upti.meK900Hm OK this helps10:09:49
@glepage:matrix.orgGaétan Lepage How can I pass --target wasm32-wasip1 to buildRustPackage? Is it really falling in the scope of cross-compiling? 11:07:55
@glepage:matrix.orgGaétan Lepage Source: https://github.com/bytecodealliance/wasmtime-py/blob/main/ci/build-rust.py#L22 11:08:24
@qyliss:fairydust.spaceAlyssa RossYou should be able to do it without cross compiling11:17:34
@qyliss:fairydust.spaceAlyssa Ross(in the Nixpkgs sense)11:17:39
@glepage:matrix.orgGaétan Lepage Ok great! How though? If I add --target wasm32-wasip1 to cargoBuildFlags, it just appends it and I have two --target flags in the final command. 11:41:31
@glepage:matrix.orgGaétan Lepage Is there a way to simply "override" the --target flag? 11:41:47
@aloisw:julia0815.de@aloisw:julia0815.de There does not appear to, but you can work around by calling cargo with the right flags in stdenv.mkDerivation. 12:39:16
@glepage:matrix.orgGaétan LepageOk I see, thanks :)13:26:14
@glepage:matrix.orgGaétan Lepage

Not that easy...

error[E0463]: can't find crate for `core`
  |
  = note: the `wasm32-wasip1` target may not be installed
  = help: consider downloading the target with `rustup target add wasm32-wasip1`
14:07:36
@aloisw:julia0815.de@aloisw:julia0815.deAh shit, wasi may be harder.15:58:21
@qyliss:fairydust.spaceAlyssa Rossyeah wasi will be actual cross16:06:29
@oneeyed:matrix.orgSam changed their display name from Sam to Sam (away → 5/5).17:17:07
19 Apr 2025
@hauler:exarius.org@hauler:exarius.org joined the room.20:24:56
@hauler:exarius.org@hauler:exarius.org 20:26:23

Show newer messages


Back to Room ListRoom Version: 6