!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

700 Members
Rust155 Servers

Load older messages


SenderMessageTime
9 May 2025
@bloxx12:matrix.org@bloxx12:matrix.org joined the room.22:48:56
10 May 2025
@lily:lilyvex.devlily 🏳️‍⚧️ joined the room.00:12:41
@awwpotato:envs.net@awwpotato:envs.netcould someone help me debug https://github.com/NixOS/nixpkgs/pull/405768? I have glib in the pkgconfig path but cargo thinks otherwise.03:03:09
@mr.defenestrator:matrix.orgMr. Defenestrator It's because gobject-sys relies on gobject-2.0 >= 2.83 - the version of glib in the PKG_CONFIG_PATH is glib-2.82.5. 05:40:07
@awwpotato:envs.net@awwpotato:envs.nethmm looks like it will be fixed once staging next is merged, I'll leave it as a draft in the mean time.17:23:44
@r522:matrix.org@r522:matrix.org changed their display name from 522 to 522 [it/its][ΘΔ].18:06:53
@niklaskorz:matrix.orgniklaskorz @qyliss:fairydust.space I'll take a look at the Rust std docs issue. Though if the patch did suddenly cause std docs for other targets to disappear that'd also mean upstream Rust would be affected, as they merged the patch in February 😳 (which would then be included in 1.87.0) 20:54:52
@qyliss:fairydust.spaceAlyssa Ross
In reply to @niklaskorz:matrix.org
@qyliss:fairydust.space I'll take a look at the Rust std docs issue. Though if the patch did suddenly cause std docs for other targets to disappear that'd also mean upstream Rust would be affected, as they merged the patch in February 😳 (which would then be included in 1.87.0)
I think I found that it wasn't actually applying the patch that broke it, but adding the ebpf target
22:12:45
@niklaskorz:matrix.orgniklaskorz
In reply to @qyliss:fairydust.space
I think I found that it wasn't actually applying the patch that broke it, but adding the ebpf target
Yeah I have a suspicion, commented it on the issue
23:30:21
@niklaskorz:matrix.orgniklaskorzBasically it's installing the docs once for each target23:30:31
@niklaskorz:matrix.orgniklaskorzAnd each time removes the previous targets docs23:30:44
@niklaskorz:matrix.orgniklaskorzSo the last target to be installed (bpf) is whose docs end up in the output23:31:02
11 May 2025
@niklaskorz:matrix.orgniklaskorz Created an upstream issue: https://github.com/rust-lang/rust/issues/140922 11:11:29
@luke:vuksta.comLuke Hey folks, can someone advise me how to use the openblas-static feature of ndarray-linalg with crane? It is pretty obvious that it is unable to download the tarball needed during build, due to network sandboxing... I don't understand how to fix this though? Do I need to add the tarball to the flake dependencies? How would I provide it to the rust crate if that is the case? 19:52:48
@luke:vuksta.comLuke

For a bit more context, in my Cargo.toml I have ndarray-linalg = { version = "0.16", features = ["openblas-static"] }, and when I build I see the error:

quick-start-deps>   thread 'main' panicked at /nix/store/si15pm553934s2jl6h6w7ysn8vmjg4i6-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/openblas-src-0.10.11/build.rs:183:52:
quick-start-deps>   called `Result::unwrap()` on an `Err` value: https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.28/OpenBLAS-0.3.28.tar.gz: Dns Failed: resolve dns name 'github.com:443': failed to lookup address information: Temporary failure in name resolution
19:55:39
12 May 2025
@tomasajt:matrix.orgToma

https://github.com/blas-lapack-rs/openblas-src/blob/04e9b023423744d24693458dfd0bc37d377a6f18/openblas-src/build.rs#L183
https://github.com/blas-lapack-rs/openblas-src/blob/04e9b023423744d24693458dfd0bc37d377a6f18/openblas-build/src/download.rs#L13

don't know what mechanism crane has for editing source files, but you may need to look into the code above and figure out a way to make the code above use a FOD created by fetchurl or fetchFromGitHub.

One idea would be to populate the directory where it would cache the download.
Another would be to patch the download function to just copy your fetchFromGitHub source directory to dest

00:10:48
@tomasajt:matrix.orgToma *

https://github.com/blas-lapack-rs/openblas-src/blob/04e9b023423744d24693458dfd0bc37d377a6f18/openblas-src/build.rs#L183
https://github.com/blas-lapack-rs/openblas-src/blob/04e9b023423744d24693458dfd0bc37d377a6f18/openblas-build/src/download.rs#L13

I don't know what mechanism crane has for editing vendored source files, but you may need to look into the code above and figure out a way to use a FOD created by fetchurl or fetchFromGitHub instead f trying to download the project during build time.

One idea would be to populate the directory where it would cache the download.
Another would be to patch the download function to just copy your fetchFromGitHub source directory to dest

00:17:38
@saiko:knifepoint.net@saiko:knifepoint.net changed their profile picture.15:04:40
@saiko:knifepoint.net@saiko:knifepoint.net changed their profile picture.15:08:18
@saiko:knifepoint.net@saiko:knifepoint.net changed their profile picture.15:09:36
@fxomt:pub.solar@fxomt:pub.solar joined the room.18:19:07
13 May 2025
@kraem:ne.bul.aekraem changed their profile picture.13:52:21
@crop_tech:matrix.orgcrop left the room.16:09:20
14 May 2025
@amrosia:matrix.orgamrosia joined the room.04:09:59
@lily:lilyvex.devlily 🏳️‍⚧️ changed their profile picture.05:01:40
@cleverca22:matrix.orgcleverca22 vcunat: are you familiar with pgrx? i see you made a commit on it in nixpkgs, and i'm having trouble with it 05:09:15
@vcunat:matrix.orgvcunatNo. I don't even recall what it is.05:09:56
@cleverca22:matrix.orgcleverca22ah, dang05:10:03
@cleverca22:matrix.orgcleverca22https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/rust/cargo-pgrx/buildPgrxExtension.nix is the file in question05:10:42
@cleverca22:matrix.orgcleverca22its some kind of framework for writing postgres extensions in rust05:10:57

Show newer messages


Back to Room ListRoom Version: 6