4 Jun 2025 |
x10an14 | Ahhh... I didn't find any reference (maybe I overlooked it) in https://nixos.org/manual/nixpkgs/unstable/#compiling-rust-applications-with-cargo. Good to know. Would you know of any discourse threads/github issues/other documentation explaining why this is so? | 19:21:34 |
| HedgeMage joined the room. | 19:22:56 |
K900 | Not off the top of my head | 19:24:19 |
K900 | It's stupid | 19:24:20 |
x10an14 | Fair! As always, thanks for your time and answers =) | 19:25:00 |
| 0x4A6F joined the room. | 20:03:36 |
6 Jun 2025 |
| @creepinson:matrix.org left the room. | 00:18:40 |
7 Jun 2025 |
Sofie 🏳️⚧️ | Any rust toolchain tech people can figure out what is the actual issue in? The comments including newest one are kinda confused? I posted a fix that fixed my issue on the thread tho.
https://github.com/nix-community/fenix/issues/123
| 11:59:20 |
| andreas joined the room. | 14:22:30 |
| @deeok:matrix.org changed their display name from deeok to matrixrooms.info mod bot (does NOT read/send messages and/or invites; used for checking reported rooms). | 22:01:42 |
| @deeok:matrix.org left the room. | 22:20:48 |
8 Jun 2025 |
| yuzuki joined the room. | 21:58:33 |
9 Jun 2025 |
| Anders changed their display name from Anders C. Sørby to Anders. | 12:51:42 |
| Anders removed their profile picture. | 12:53:01 |
| audiotrope joined the room. | 23:42:10 |
| Kleha joined the room. | 23:52:08 |
10 Jun 2025 |
| four joined the room. | 17:05:53 |
11 Jun 2025 |
four | {
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
fetchNpmDeps,
autoconf,
cargo-tauri,
cmake,
glib-networking,
nodejs,
npmHooks,
openssl,
perl,
pkg-config,
protobuf,
typescript,
webkitgtk_4_1,
wrapGAppsHook4
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "tari-universe";
version = "1.2.8";
src = fetchFromGitHub {
owner = "tari-project";
repo = "universe";
tag = "v${finalAttrs.version}";
hash = "sha256-r+xVeKTZ52C0Fj01XocJR759Sp0qdRdmo85cl5nqxMs=";
};
npmDeps = fetchNpmDeps {
name = "${finalAttrs.pname}-${finalAttrs.version}-npm-deps";
inherit (finalAttrs) src;
hash = "sha256-zdH/NsWHjEF1sekbm9qoI7+/K5v8YleGCR2KsAUapLU=";
};
cargoRoot = "src-tauri";
buildAndTestSubdir = finalAttrs.cargoRoot;
useFetchCargoVendor = true;
cargoHash = "sha256-g4u65lh7VP7sE6UCdLYarq/q0lBXEYThNLr8vkDUNXU=";
nativeBuildInputs =
[
cargo-tauri.hook
autoconf
cmake
nodejs
npmHooks.npmConfigHook
perl
protobuf
typescript
]
++ lib.optionals stdenv.hostPlatform.isLinux [
pkg-config
wrapGAppsHook4
];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
glib-networking
openssl
webkitgtk_4_1
];
meta = {
description = "The beautifully simple mining app for mining Tari.";
homepage = "https://www.tari.com/downloads";
license = lib.licenses.cpal10;
platforms = lib.platforms.linux;
mainProgram = "tari-universe";
};
})
| 01:33:12 |
four | * I'm trying to package this tauri app, but I can't get past building the backend. Specifically, I'm getting a linking error when building the randomx-rs crate.
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
fetchNpmDeps,
autoconf,
cargo-tauri,
cmake,
glib-networking,
nodejs,
npmHooks,
openssl,
perl,
pkg-config,
protobuf,
typescript,
webkitgtk_4_1,
wrapGAppsHook4
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "tari-universe";
version = "1.2.8";
src = fetchFromGitHub {
owner = "tari-project";
repo = "universe";
tag = "v${finalAttrs.version}";
hash = "sha256-r+xVeKTZ52C0Fj01XocJR759Sp0qdRdmo85cl5nqxMs=";
};
npmDeps = fetchNpmDeps {
name = "${finalAttrs.pname}-${finalAttrs.version}-npm-deps";
inherit (finalAttrs) src;
hash = "sha256-zdH/NsWHjEF1sekbm9qoI7+/K5v8YleGCR2KsAUapLU=";
};
cargoRoot = "src-tauri";
buildAndTestSubdir = finalAttrs.cargoRoot;
useFetchCargoVendor = true;
cargoHash = "sha256-g4u65lh7VP7sE6UCdLYarq/q0lBXEYThNLr8vkDUNXU=";
nativeBuildInputs =
[
cargo-tauri.hook
autoconf
cmake
nodejs
npmHooks.npmConfigHook
perl
protobuf
typescript
]
++ lib.optionals stdenv.hostPlatform.isLinux [
pkg-config
wrapGAppsHook4
];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
glib-networking
openssl
webkitgtk_4_1
];
meta = {
description = "The beautifully simple mining app for mining Tari.";
homepage = "https://www.tari.com/downloads";
license = lib.licenses.cpal10;
platforms = lib.platforms.linux;
mainProgram = "tari-universe";
};
})
Here is the error I'm getting: https://bpa.st/GCEQ
| 01:35:14 |
four | I've also tried adding randomx to nativeBuildInputs , but still got the same error. any help would be super appreciated :) | 01:38:24 |
four | could this possibly be due to the randomx-rs crate bundling the randomx C library? https://github.com/tari-project/randomx-rs/tree/development
maybe i need to explicitly tell nix to build this "submodule" ? | 01:55:54 |
| elamon joined the room. | 15:13:45 |
| Katalin 🔪 changed their profile picture. | 16:11:38 |
| Katalin 🔪 changed their profile picture. | 16:12:49 |
| Katalin 🔪 changed their display name from Katalin 🔪 to Katalin ⚧︎. | 16:13:19 |
12 Jun 2025 |
| Emma joined the room. | 17:04:50 |
| davidisaksson joined the room. | 20:10:47 |
13 Jun 2025 |
| Emma changed their display name from emsknock to Emma. | 13:40:35 |
| mithria joined the room. | 14:10:30 |
| @tebro:matrix.org left the room. | 19:08:22 |