Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
81 lines
1.8 KiB
Nix
81 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
cargo-tauri,
|
|
nodejs,
|
|
pnpm_9,
|
|
pkg-config,
|
|
glib-networking,
|
|
openssl,
|
|
webkitgtk_4_1,
|
|
wrapGAppsHook3,
|
|
libsoup_3,
|
|
libayatana-appindicator,
|
|
gtk3,
|
|
nix-update-script,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "quantframe";
|
|
version = "1.5.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Kenya-DK";
|
|
repo = "quantframe-react";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-afTiQzHat6k+BF8EhYhd0o0FzYjq7GpnOnjRhjXASG8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \
|
|
--replace-fail "libayatana-appindicator3.so.1" "${libayatana-appindicator}/lib/libayatana-appindicator3.so.1"
|
|
|
|
substituteInPlace src-tauri/tauri.conf.json \
|
|
--replace-fail '"createUpdaterArtifacts": "v1Compatible"' '"createUpdaterArtifacts": false'
|
|
'';
|
|
|
|
patches = [ ./0001-disable-telemetry.patch ];
|
|
|
|
pnpmDeps = pnpm_9.fetchDeps {
|
|
inherit (finalAttrs) pname version src;
|
|
fetcherVersion = 1;
|
|
hash = "sha256-ncoxliXnLxWEXL1Z7ixOULI/uYkxmfLiDWu1tDSRsrM=";
|
|
};
|
|
|
|
cargoHash = "sha256-0IgQK0jMVN6u5i4lBKK8njbMyRQCLguTdDcSBnFnyso=";
|
|
|
|
nativeBuildInputs = [
|
|
cargo-tauri.hook
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
nodejs
|
|
pnpm_9.configHook
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
libsoup_3
|
|
glib-networking
|
|
gtk3
|
|
libayatana-appindicator
|
|
webkitgtk_4_1
|
|
];
|
|
|
|
cargoRoot = "src-tauri";
|
|
buildAndTestSubdir = finalAttrs.cargoRoot;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Warframe Market listings and transactions manager";
|
|
mainProgram = "quantframe";
|
|
homepage = "https://quantframe.app/";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [
|
|
nyukuru
|
|
enkarterisi
|
|
];
|
|
};
|
|
})
|