!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

689 Members
Rust154 Servers

Load older messages


SenderMessageTime
11 Nov 2021
@cleeyv:matrix.orgCleeyv joined the room.18:14:25
12 Nov 2021
@andi:kack.itandi-Give the "whell" a white outline and that should fix it.12:23:25
@andi:kack.itandi- * Give the "wheel" a white outline and that should fix it.12:23:28
@bbigras:matrix.orgbbigras joined the room.16:05:25
17 Nov 2021
@linus.heckemann:matrix.mayflower.deLinux Hackerman is moving: @linus:schreibt.jetzt joined the room.08:33:28
@towesfeb:matrix.orgtowesfeb joined the room.21:07:19
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

Show newer messages


Back to Room ListRoom Version: 6