!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

680 Members
Rust155 Servers

Load older messages


SenderMessageTime
18 Nov 2021
@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
@ralith:ralith.comRalithif somebody does have such a setup, I would obviously like them to share it :P02:03:37
@ralith:ralith.comRalithit is related to nix because the question is trivial unless you are trying to stay within nix02:04:03
@andi:kack.itandi-i've got it going with nvim and whatever rust-analzyer is in nixpkgs for a couple of months now02:04:30
@andi:kack.itandi-isn't it just about pointing emcas to the right LSP?02:04:45
@ralith:ralith.comRaliththe emacs LSP impl doesn't like the rust-analyzer in stable nixpkgs02:05:09

Show newer messages


Back to Room ListRoom Version: 6