!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

663 Members
Rust148 Servers

Load older messages


SenderMessageTime
9 Jun 2025
@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.net@saiko:knifepoint.net changed their profile picture.16:11:38
@saiko:knifepoint.net@saiko:knifepoint.net changed their profile picture.16:12:49
@saiko:knifepoint.net@saiko:knifepoint.net 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
15 Jun 2025
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their display name from LEGO® Worm™ (he/they) (Happy Pride Month! 🏳️‍🌈) to Worm 🏳️‍🌈 (he/they).00:59:34
16 Jun 2025
@ygt:matrix.org@ygt:matrix.org left the room.21:51:43
17 Jun 2025
@r522:matrix.org@r522:matrix.org changed their display name from 522 [it/its][ΘΔ] to 522 (moved to @522_:catgirl.cloud ).16:27:39
@makuru:catgirl.cloudMakuru changed their display name from Makuru to Makuru @ GPN 📞4850.16:33:45
@522_:catgirl.cloud@522_:catgirl.cloud joined the room.18:29:23
@r522:matrix.org@r522:matrix.org left the room.19:07:16
@522_:catgirl.cloud@522_:catgirl.cloud changed their display name from 522_ to 522 [it/its][ΘΔ].19:51:31
@522_:catgirl.cloud@522_:catgirl.cloud set a profile picture.20:18:12
18 Jun 2025
@zeromute:matrix.org@zeromute:matrix.org joined the room.00:51:46
@audiotrope:matrix.org@audiotrope:matrix.org set a profile picture.07:17:37
@audiotrope:matrix.org@audiotrope:matrix.org changed their profile picture.07:18:03
@audiotrope:matrix.org@audiotrope:matrix.org changed their profile picture.07:18:56
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their display name from Worm 🏳️‍🌈 (he/they) to The Worm 🏳️‍🌈 (he/they).17:57:00
19 Jun 2025
@fliegendewurst:matrix.orgFliegendeWurst changed their display name from FliegendeWurst to FliegendeWurst (@GPN23).12:29:11
@lgcl:lgcl.delgcl (she/they) changed their display name from lgcl (they/them) to lgcl (she/they).18:06:50

Show newer messages


Back to Room ListRoom Version: 6