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 |