!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

472 Members
Rust115 Servers

Load older messages


SenderMessageTime
20 Aug 2024
@blitz:chat.x86.lolblitzor do I have to manually patch it in one of the phases?14:50:51
@emilazy:matrix.orgemily should just be patches 14:53:50
@emilazy:matrix.orgemilyunless you are touching Cargo.lock stuff14:53:58
@blitz:chat.x86.lolblitzhttps://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.section.md#vendoring-of-dependencies-vendoring-of-dependencies <- this looks like it could work. let me try...14:55:51
@blitz:chat.x86.lolblitz

emily

15:13:52
@blitz:chat.x86.lolblitz *

emily

15:13:59
@blitz:chat.x86.lolblitz *

emily

  postPatch = ''
    patch -d ../cargo-vendor-dir/somecrate-0.10.0 -p2 -i ${./some.patch}
  '';
15:14:22
@blitz:chat.x86.lolblitzthis works15:14:28
@emilazy:matrix.orgemily you can probably just use patchFlags also 15:15:14
@emilazy:matrix.orgemilybut yeah, sure :)15:15:22
@emilazy:matrix.orgemily(why do you need to do this anyway?)15:15:27
@blitz:chat.x86.lolblitzhttps://github.com/cloud-hypervisor/cloud-hypervisor/issues/667315:16:14
@blitz:chat.x86.lolblitzbefore the fix is merged, it's easier to just patch the couple of lines that cause the issue in the dependent crate rather than the crate updates15:16:52
@emilazy:matrix.orgemilyah15:19:03
21 Aug 2024
@frectonz:matrix.orgFraol Lemecha set a profile picture.20:24:14
22 Aug 2024
@jaredbaur:matrix.orgJared Baur set a profile picture.02:07:14
@jackleightcap:matrix.orgJack Leightcap joined the room.02:52:22
@jackleightcap:matrix.orgJack Leightcap hey all -- i'm packaging a rust project, and noticed that nixpkgs doesn't include oxalica/rust-overlay: i'm curious then if there's a way to add targets to rustc inside nixpkgs, something like in a rust-toolchain.toml targets = [ "thumbv7em-none-eabihf" ] 03:01:12
@jackleightcap:matrix.orgJack Leightcap the context is an embedded firmware, so the target platform is fixed to arm-embedded. would pkgsCross.arm-embedded accomplish this? 03:05:10
@9hp71n:matrix.orgghpzinPretty sure this exact target is covered by something related to cross in rust section in nixpkgs.04:26:18
@9hp71n:matrix.orgghpzin * Jack Leightcap:
Pretty sure this exact target is covered by something related to cross in rust section in nixpkgs.
https://github.com/NixOS/nixpkgs/blob/c79da508a6bea132f3a0debcec870063f99078f1/doc/languages-frameworks/rust.section.md#cross-compilation-cross-compilation
04:27:01
@jackleightcap:matrix.orgJack Leightcapthanks, RTFM needed and useful here04:38:57
@9hp71n:matrix.orgghpzin Does anybody know if there are workarounds for Cargo.lock having dependencies with same name, but different urls ?
https://github.com/NixOS/nixpkgs/issues/183344
06:21:05
@9hp71n:matrix.orgghpzin * Does anybody know if there are workarounds for Cargo.lock having dependencies with same name, but different urls ?
https://github.com/NixOS/nixpkgs/issues/183344
(other than editing Cargo.lock to use same one and hoping for the best)
06:24:01
@9hp71n:matrix.orgghpzin * Does anybody know if there are workarounds for Cargo.lock having dependencies with same name, but different urls ?
https://github.com/NixOS/nixpkgs/issues/30742
(other than editing Cargo.lock to use same one and hoping for the best)
06:33:14
@asmundesen:matrix.orgArtur Manuel joined the room.12:57:53
@asmundesen:matrix.orgArtur Manuel changed their profile picture.14:53:09
@niko:puppygock.gaynyanbinary 🏳️‍⚧️ left the room.17:19:45
@creepinson:matrix.orgTheo Paris
In reply to @9hp71n:matrix.org
Jack Leightcap:
Pretty sure this exact target is covered by something related to cross in rust section in nixpkgs.
https://github.com/NixOS/nixpkgs/blob/c79da508a6bea132f3a0debcec870063f99078f1/doc/languages-frameworks/rust.section.md#cross-compilation-cross-compilation
Is there a way to compile the rust std as a derivation in that case? It says the std isn't compiled when using the cross target...
21:23:17
@creepinson:matrix.orgTheo Paris* Is there a way to compile the rust std as a derivation in that case? It says the std isn't compiled when using the cross target... Not sure whether or not the core/alloc crate applies here21:23:46

Show newer messages


Back to Room ListRoom Version: 6