!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

697 Members
Rust155 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
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
@cleverca22:matrix.orgcleverca22 but its being dumb, and trying to copy files to the extensions/ subdir of the postgres derivation 05:11:14
@vcunat:matrix.orgvcunatI don't think I really touched the file, at a quick glance in the git log.05:12:12
@vcunat:matrix.orgvcunat* I don't think I've really touched the file, at a quick glance in the git log.05:12:18
@vcunat:matrix.orgvcunatIt shows just a merge of staging-next to master.05:12:32
@cleverca22:matrix.orgcleverca22 the git blame only shows you editing the line dealing with .pg_config output on postgres itself 05:12:42
@cleverca22:matrix.orgcleverca22ah, maybe git blame is also blaming merge commits, rather then the commit your merging05:13:02
@cleverca22:matrix.orgcleverca22 aha, doCheck=false; fixes it 05:36:11
@cleverca22:matrix.orgcleverca22 i think the problem is that normal install goes to $out, but tests dont 05:36:22
@hello2u:catgirl.cloudJosie (she/her) joined the room.06:08:27
@curid:matrix.org@curid:matrix.org What's the easiest use new manifests in an old version of rust-overlay? 17:16:25

Show newer messages


Back to Room ListRoom Version: 6