12 Dec 2024 |
Niklas Korz | Afaik the only downside to patching it out is that it'll take a bit longer to build (link) than with lld | 16:52:29 |
Gaétan Lepage | Ok, that's not too bad then | 16:53:56 |
Niklas Korz | If this is for Linux packages you could try mold instead | 16:56:13 |
Niklas Korz | For macOS there is better solution yet, but afaik Randy was looking into it | 16:56:27 |
Niklas Korz | * For macOS there is no better solution yet, but afaik Randy was looking into it | 16:56:32 |
13 Dec 2024 |
WeetHet | Is it possible to properly patch Cargo dependencies with nix without forking the repo and patching Cargo.toml? | 20:49:08 |
WeetHet | The other option is to use path deps and clone the dependency separately, which is also not something I would love to do | 20:49:52 |
14 Dec 2024 |
pveierland | What is the easiest way to build a package that is not a part of the project workspace with Crane? | 00:53:16 |
pveierland | 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 | Will try to get cargo install to work | 01:31:22 |
pveierland | 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 | 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 | Adding the external crates via submodule + adding to workspace fixed it. | 04:54:31 |
Charles | 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 | When 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 | You can also point buildRustPackage to your Cargo.lock to avoid this | 18:56:44 |
Charles | Check the nixpkgs manual for how to do that because I don't recall off the top of my head | 18:57:12 |
tobi34 | Ok. I can figure that out. Thank You. | 19:04:50 |
16 Dec 2024 |
| Oro (any/all) changed their display name from Oro (they/she) to Oro (any/all). | 02:24:25 |
17 Dec 2024 |
| Any (they/any) joined the room. | 06:01:58 |
Any (they/any) | println!("hello everyone 😃"); | 06:06:35 |
Any (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 left the room. | 11:07:27 |
19 Dec 2024 |
| @bbigras:matrix.org left the room. | 01:45:53 |
20 Dec 2024 |
| @nickorta12:matrix.org left the room. | 04:40:30 |
| jthulhu joined the room. | 09:16:40 |
Any (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 |
| Fré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 | I can't even google this program that you want to install to offer generic advice | 14:01:14 |
Morj | I mean, I can offer one: what do the official installation instructions say? | 14:01:35 |