!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

685 Members
Rust158 Servers

Load older messages


SenderMessageTime
8 Oct 2025
@anders:sorby.xyzAndersSo the original build was a mess. Downlaoding tarballs from dropbox and more. But to be able to cross compile we need relibc to work. 20:32:24
@niklaskorz:matrix.orgniklaskorzI might be on board with experimenting a bit as I'm personally interested in Redox21:03:39
@anders:sorby.xyzAndersI tried to build relibc now, but it requires a lot of experimental rust features to build21:04:57
@anders:sorby.xyzAndersI wonder if the easiest way is to build relibc inside a redox vm 21:06:09
@niklaskorz:matrix.orgniklaskorz you mean -Z build-std=core,alloc,compiler_builtins? 21:07:10
@niklaskorz:matrix.orgniklaskorzbecause we support those without nightly on nixpkgs now, technically21:07:57
@anders:sorby.xyzAndersthings like #[target_feature(enable = "tbm")]21:08:14
@niklaskorz:matrix.orgniklaskorzhm target_feature shouldn't require nightly though?21:10:22
@niklaskorz:matrix.orgniklaskorznow that, on the other hand:21:23:13
@niklaskorz:matrix.orgniklaskorz
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> generic-rt/src/lib.rs:3:1
  |
3 | #![feature(core_intrinsics)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21:23:16
@qyliss:fairydust.spaceAlyssa RossI'd be surprised if we end up packaging redox's downstream rustc fwiw21:23:47
@qyliss:fairydust.spaceAlyssa Rossbut last development update says they "just need to finish up" moving to upstream so maybe that's not too much of a concern21:25:05
9 Oct 2025
@glepage:matrix.orgGaƩtan Lepage

I'm trying to package a python package using maturin in nixpkgs.
I use

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit
      pname
      version
      src
      sourceRoot
      cargoRoot
      ;
    hash = "sha256-m3SNWjHsQcrH6v8Z6CnURhuXNQRgvtGreM0g91rOv6Q=";
  };

But it fails with

Executing maturinBuildHook
maturinBuildHook flags: --jobs=64 --offline --target x86_64-unknown-linux-gnu --manylinux off --strip --release --out /build/source/obstore/dist --interpreter python3.13
error: failed to load source for dependency `object_store`

Caused by:
  Unable to update https://github.com/apache/arrow-rs-object-store?rev=f422dce1528ee2a089d8061af639c3f2a9cd43af#f422dce1

Caused by:
  can't checkout from 'https://github.com/apache/arrow-rs-object-store': you are in the offline mode (--offline)
šŸ’„ maturin failed

The Cargo.lock has this at the end:

[[patch.unused]]
name = "object_store"
version = "0.12.2"
source = "git+https://github.com/apache/arrow-rs-object-store?rev=f422dce1528ee2a089d8061af639c3f2a9cd43af#f422dce1528ee2a089d8061af639c3f2a9cd43af";

Am I supposed to do something extra to fetch this dep?

12:02:50
@niklaskorz:matrix.orgniklaskorzAre you sure the fetchCargoVendor hash is up to date and not using an older version of the package's cache?12:04:57
@niklaskorz:matrix.orgniklaskorz ah wait, I missed the patch.unused part 12:05:46
@glepage:matrix.orgGaƩtan Lepage For reference, here is the PR: https://github.com/NixOS/nixpkgs/pull/450218
(obstore package)
12:08:35
@niklaskorz:matrix.orgniklaskorz that doesn't appear anywhere in the upstream Cargo.lock 12:18:13
@niklaskorz:matrix.orgniklaskorzah, it's the obstore package that is failing, not nutpie12:18:36
@niklaskorz:matrix.orgniklaskorzhonestly I think the solution is just patching out these lines in Cargo.toml:12:19:46
@niklaskorz:matrix.orgniklaskorzhttps://github.com/developmentseed/obstore/blob/fbaeb7fa772f21e9b8f54b7eeb1f19a3f5b07336/Cargo.toml#L41-L4212:19:57
@glepage:matrix.orgGaƩtan LepageRemove them you mean?12:20:16
@niklaskorz:matrix.orgniklaskorzyes, or maybe see what upstream commit removed them12:20:29
@niklaskorz:matrix.orgniklaskorzbecause master doesn't have those anymore12:20:33
@niklaskorz:matrix.orgniklaskorz* because main doesn't have those anymore12:20:43
@niklaskorz:matrix.orgniklaskorzthey removed them as part of https://github.com/developmentseed/obstore/commit/7cff737f4d86eeee8ddeb69bca47aecbfd997065#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a61554212:21:24
@niklaskorz:matrix.orgniklaskorz* they removed them as part of https://github.com/developmentseed/obstore/commit/7cff737f4d86eeee8ddeb69bca47aecbfd99706512:21:30
@niklaskorz:matrix.orgniklaskorznot sure if that cleanly applies to 0.8.212:21:51
@glepage:matrix.orgGaƩtan LepageRemoving the last lines doesn't help unfortunately... I still get the same error.12:33:31
@niklaskorz:matrix.orgniklaskorzhm my next best bet would be removing it from both Cargo.toml and Cargo.lock, don't have time to check myself right now unfortunately13:16:51
@bananapoop:matrix.orgBanana Poop set a profile picture.14:49:08

Show newer messages


Back to Room ListRoom Version: 6