!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

598 Members
Rust134 Servers

Load older messages


SenderMessageTime
4 Jun 2025
@x10an14:matrix.orgx10an14Ahhh... 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:unredacted.orgHedgeMage joined the room.19:22:56
@k900:0upti.meK900Not off the top of my head19:24:19
@k900:0upti.meK900It's stupid19:24:20
@x10an14:matrix.orgx10an14Fair! As always, thanks for your time and answers =)19:25:00
@0x4a6f:nixos.dev0x4A6F joined the room.20:03:36
6 Jun 2025
@creepinson:matrix.org@creepinson:matrix.org left the room.00:18:40
7 Jun 2025
@jh-devv:matrix.orgSofie 🏳️‍⚧️

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:hgk.meandreas joined the room.14:22:30
@deeok:matrix.org@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@deeok:matrix.org left the room.22:20:48
8 Jun 2025
@yuzuki:matrix.kikuri.moeyuzuki joined the room.21:58:33
9 Jun 2025
@anderscs:matrix.orgAnders changed their display name from Anders C. Sørby to Anders.12:51:42
@anderscs:matrix.orgAnders removed their profile picture.12:53:01
@audiotrope:matrix.orgaudiotrope joined the room.23:42:10
@kleha:matrix.orgKleha joined the room.23:52:08
10 Jun 2025
@bivsk22:matrix.orgfour joined the room.17:05:53
11 Jun 2025
@bivsk22:matrix.orgfour
{ 
  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
@bivsk22:matrix.orgfour *

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
@bivsk22:matrix.orgfour I've also tried adding randomx to nativeBuildInputs, but still got the same error. any help would be super appreciated :) 01:38:24
@bivsk22:matrix.orgfourcould 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
@astodialo:matrix.orgelamon joined the room.15:13:45
@saiko:knifepoint.netKatalin 🔪 changed their profile picture.16:11:38
@saiko:knifepoint.netKatalin 🔪 changed their profile picture.16:12:49
@saiko:knifepoint.netKatalin 🔪 changed their display name from Katalin 🔪 to Katalin ⚧︎.16:13:19
12 Jun 2025
@emsknock:pikaviestin.fiEmma joined the room.17:04:50
@davidisaksson:matrix.orgdavidisaksson joined the room.20:10:47
13 Jun 2025
@emsknock:pikaviestin.fiEmma changed their display name from emsknock to Emma.13:40:35
@mithria:matrix.orgmithria joined the room.14:10:30
@tebro:matrix.org@tebro:matrix.org left the room.19:08:22

Show newer messages


Back to Room ListRoom Version: 6