!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

685 Members
Rust153 Servers

Load older messages


SenderMessageTime
18 Nov 2021
@mikroskeem:d0.eeMark joined the room.21:50:00
@mikroskeem:d0.eeMarkhey, how can i patch a dependency vendored by Nix?21:51:22
@mikroskeem:d0.eeMarki'm trying to update Deno, but for that i need to patch rusty_v8 crate's build.rs21:51:43
@mikroskeem:d0.eeMarkhttps://github.com/NixOS/nixpkgs/pull/146543/files#diff-978687fc2d0854b777ef29c688b25d5a64379b23f67ebd18becc0dc1cb76fbf6R4421:52:38
@mikroskeem:d0.eeMarkno luck so far21:52:41
@mikroskeem:d0.eeMarki've considered copying the dependency, and changing Cargo.toml, but that's a bit stretch21:53:26
@mikroskeem:d0.eeMarkalternatively, i can try fixing this on upstream21:53:48
@jonringer:matrix.orgjonringer you're looking for cargoPatches 21:54:08
@mikroskeem:d0.eeMarkrusty_v8 build.rs insists on deleting the downloaded .a file now21:54:09
@jonringer:matrix.orgjonringerwhich will apply before vendoring21:54:23
@jonringer:matrix.orgjonringerdownloading a precompiled binary at build time is a no-no. I would create an issue upstream to some how specify it.21:55:05
@mikroskeem:d0.eeMark
In reply to @jonringer:matrix.org
which will apply before vendoring
before vendoring, in other words when vendored dependencies are not available yet
21:56:06
@mikroskeem:d0.eeMarkthen cargoPatches isn't a thing i'm looking for21:56:27
@mikroskeem:d0.eeMarkbecause i need to patch the vendored dependency, not project (Deno) itself21:56:47
@mikroskeem:d0.eeMark
In reply to @jonringer:matrix.org
downloading a precompiled binary at build time is a no-no. I would create an issue upstream to some how specify it.
of course, current Deno derivation is downloading prebuilt v8 .a file from github and placing it into a directory where rusty_v8 would download & put it
21:58:14
@mikroskeem:d0.eeMarkright now rusty_v8 insists on deleting the file21:58:35
@mikroskeem:d0.eeMark alternatively i can just set V8_FROM_SOURCE=1 and build V8 from source 21:59:24
@jonringer:matrix.orgjonringer
In reply to @mikroskeem:d0.ee
alternatively i can just set V8_FROM_SOURCE=1 and build V8 from source
this looks like it tries to build it from a submodule, which is also bad
22:00:21
@jonringer:matrix.orgjonringerhttps://github.com/denoland/rusty_v8 should really allow you a way to just say, "V8_STATIC_LIB=${pkgsStatic.v8}/lib/v8.a"22:01:25
@jonringer:matrix.orgjonringer or even better yet, attempt pkg-config --static --libs v8 22:02:27
@mikroskeem:d0.eeMarkhm wait, RUSTY_V8_MIRROR is a thing22:05:54
@mikroskeem:d0.eeMarkclearly didn't RTFM enough22:06:15
@mikroskeem:d0.eeMarkand so is RUSTY_V8_ARCHIVE22:09:10
19 Nov 2021
@uep:matrix.orguep joined the room.22:30:31
@evils:nixos.devevils joined the room.22:39:24
20 Nov 2021
@nykw:tchncs.denykw joined the room.11:09:46
23 Nov 2021
@ralith:ralith.comRalithhas anyone got an emacs + rust-analyzer setup that gets them reasonably recent RA builds?00:21:36
@mikroskeem:d0.eeMarkthat question is quite ambiguous in many ways00:37:24
@mikroskeem:d0.eeMarkwhat is reasonably recent RA for you? if somebody does have such setup, then what? how is this related to nix (do you want a derivation for RA? or one which combines RA with emacs? or...?)00:39:36
@ralith:ralith.comRalithRA itself updates on the order of weeks, so a reasonably recent build would not be drastically slower than that02:03:31

Show newer messages


Back to Room ListRoom Version: 6