!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

464 Members
Rust111 Servers

Load older messages


SenderMessageTime
19 Aug 2024
@blitz:chat.x86.lolblitzBut I'm currently sitting in a plane and can't directly edit your example. If you post it on discourse I'm sure someone can help you improve the module 08:35:00
@simon.brandner:envs.netŠimon BrandnerSounds good, I'll look at the link and possibly post on discourse08:39:15
@simon.brandner:envs.netŠimon Brandner
In reply to @blitz:chat.x86.lol
But I'm currently sitting in a plane and can't directly edit your example. If you post it on discourse I'm sure someone can help you improve the module
Here: https://discourse.nixos.org/t/nixos-module-using-system-nixpkgs-instead-of-the-nixpkgs-specified-in-the-modules-flake/50816
09:22:30
@mightyiam:matrix.orgShahar "Dawn" Or (mightyiam) joined the room.09:55:33
@blitz:chat.x86.lolblitz
In reply to @simon.brandner:envs.net
Here: https://discourse.nixos.org/t/nixos-module-using-system-nixpkgs-instead-of-the-nixpkgs-specified-in-the-modules-flake/50816
The response you got looks good!
10:15:38
@blitz:chat.x86.lolblitzI hope it helps you!10:15:50
@simon.brandner:envs.netŠimon BrandnerI'll give it a go later10:15:58
@simon.brandner:envs.netŠimon BrandnerIt did do the trick!11:25:06
@cafkafk:gitter.imcafkafk changed their profile picture.12:45:30
@damccull:matrix.orgdamccullIs it possible to have a flake with nativeBuildInputs listed such that one particular package is built from source with a specific version of rustc/cargo that is different than the version my devShell would then use?19:17:19
@damccull:matrix.orgdamccull * Is it possible to have a flake with nativeBuildInputs listed such that one particular package is built from source with a specific version of rustc/cargo that is different than the version my devShell would then use? Where I (hopefully) specify it instead of making a new flake/overlay for it19:18:17
@sasha:the-apothecary.clubSashanoraa.gay (she/her, ze/zir)
In reply to @damccull:matrix.org
Is it possible to have a flake with nativeBuildInputs listed such that one particular package is built from source with a specific version of rustc/cargo that is different than the version my devShell would then use? Where I (hopefully) specify it instead of making a new flake/overlay for it
I think something like that might be possile using the rust overlay https://github.com/oxalica/rust-overlay
19:38:43
@damccull:matrix.orgdamccull
In reply to @sasha:the-apothecary.club
I think something like that might be possile using the rust overlay https://github.com/oxalica/rust-overlay
Excellent. Now to figure out how. I'm already using oxilica's overlay. It's nice.
19:39:38
@damccull:matrix.orgdamccullMakes it easy to have multiple version of rust where I can jus tlaunch the right version devShell, but I need to figure out how a 1.80 devShell can build a specific dependency with 1.78 :D19:40:13
@qyliss:fairydust.spaceAlyssa RossAre you sure it isn't easier to update that dependency?20:09:09
@qyliss:fairydust.spaceAlyssa Ross(assuming this is because of the inference changes in 1.80, it's usually a very easy fix)20:09:51
20 Aug 2024
@weethet:catgirl.cloudWeetHet joined the room.00:09:38
@ralith:ralith.comRalithyou can't mix and match different rustc versions, anyway00:49:45
@benjaminedwardwebb:envs.netbenwebb changed their display name from benjaminedwardwebb to benwebb.12:44:09
@blitz:chat.x86.lolblitzHey! Is there a good way to patch rust dependencies? Specifically I have a patch file for one dependency that I would like to apply. But cargo [patch] can't do this and I also don't see anything for buildRustPackage. Does anyone have a pointer?14:46:19
@emilazy:matrix.orgemily I think you can patch it in the vendor/ directory 14:49:44
@emilazy:matrix.orgemilybut it's ugly14:49:46
@blitz:chat.x86.lolblitzis cargoPatches the right way to go?14:50:42
@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

Show newer messages


Back to Room ListRoom Version: 6