!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

508 Members
Rust112 Servers

Load older messages


SenderMessageTime
12 Dec 2024
@niklaskorz:korz.devNiklas KorzAfaik the only downside to patching it out is that it'll take a bit longer to build (link) than with lld16:52:29
@glepage:matrix.orgGaétan LepageOk, that's not too bad then16:53:56
@niklaskorz:korz.devNiklas Korz If this is for Linux packages you could try mold instead 16:56:13
@niklaskorz:korz.devNiklas KorzFor macOS there is better solution yet, but afaik Randy was looking into it16:56:27
@niklaskorz:korz.devNiklas Korz* For macOS there is no better solution yet, but afaik Randy was looking into it16:56:32
13 Dec 2024
@weethet:catgirl.cloudWeetHetIs it possible to properly patch Cargo dependencies with nix without forking the repo and patching Cargo.toml?20:49:08
@weethet:catgirl.cloudWeetHetThe other option is to use path deps and clone the dependency separately, which is also not something I would love to do20:49:52
14 Dec 2024
@pveierland:matrix.orgpveierlandWhat is the easiest way to build a package that is not a part of the project workspace with Crane?00:53:16
@pveierland:matrix.orgpveierland

I'm trying to invoke the binary of a package that is a Cargo dependency, but is not a workspace member, in the post build step of one of my packages:

myPackage = craneLib.buildPackage (
  individualCrateArgs
  // {
    postBuild = ''
      ./otherPackageTool export
    '';
  }
);
01:28:52
@pveierland:matrix.orgpveierland Will try to get cargo install to work 01:31:22
@pveierland:matrix.orgpveierland

The following works for workspace packages, but not packages outside the workspace that are a dependency:

foo = craneLib.buildPackage (
  individualCrateArgs
  // {
    cargoExtraArgs = "-p foo --bin foo";
    pname = "foo";
    version = "0.0.1";
  }
);
02:45:00
@pveierland:matrix.orgpveierland For workspace packages the check + build runs and the output is in out/bin/foo, while for dependency packages the check + build runs, but the output is empty 02:45:56
@pveierland:matrix.orgpveierlandAdding the external crates via submodule + adding to workspace fixed it.04:54:31
@charles:computer.surgeryCharles submodules are annoying to deal with; you could also use fetchurl to get the sources for a released version from crates.io 17:22:13
@tobi34:matrix.orgtobi34When i build a local rust project with buildRustPackage i often have to set cargoHash to empty string, run it and then insert the correct hash. Is there a way (command or helper nix-file) that I can run to just create the new hash that can be inserted into the build nixfile ? 18:52:26
@charles:computer.surgeryCharlesYou can also point buildRustPackage to your Cargo.lock to avoid this18:56:44
@charles:computer.surgeryCharlesCheck the nixpkgs manual for how to do that because I don't recall off the top of my head18:57:12
@tobi34:matrix.orgtobi34Ok. I can figure that out. Thank You.19:04:50
16 Dec 2024
@orowith2os:fedora.imOro (any/all) changed their display name from Oro (they/she) to Oro (any/all).02:24:25
17 Dec 2024
@reflux1291:catgirl.cloudAny (they/any) joined the room.06:01:58
@reflux1291:catgirl.cloudAny (they/any)println!("hello everyone 😃");06:06:35
@reflux1291:catgirl.cloudAny (they/any)OK, I'm struggling with this for more than a week already What is the easiest way to install "spl-token-cli"? 🫠06:07:39
@blitz:chat.x86.lol@blitz:chat.x86.lol left the room.11:07:27
19 Dec 2024
@bbigras:matrix.org@bbigras:matrix.org left the room.01:45:53
20 Dec 2024
@nickorta12:matrix.org@nickorta12:matrix.org left the room.04:40:30
@jthulhu:matrix.orgjthulhu joined the room.09:16:40
@reflux1291:catgirl.cloudAny (they/any)
In reply to @reflux1291:catgirl.cloud
OK, I'm struggling with this for more than a week already
What is the easiest way to install "spl-token-cli"? 🫠
Very loud silence 😂
12:58:27
@frederic:scs.ems.hostFrédéric Christ changed their display name from Frédéric Christ to Frédéric Christ 🎄23.12. - 07.01..13:02:57
@morj:morj.menMorjI can't even google this program that you want to install to offer generic advice14:01:14
@morj:morj.menMorjI mean, I can offer one: what do the official installation instructions say?14:01:35

Show newer messages


Back to Room ListRoom Version: 6