Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cargo-tauri,
|
|
libsoup,
|
|
nodejs,
|
|
openssl,
|
|
pkg-config,
|
|
pnpm,
|
|
rustPlatform,
|
|
webkitgtk_4_0,
|
|
wrapGAppsHook3,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "wealthfolio";
|
|
version = "1.0.18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "afadil";
|
|
repo = "wealthfolio";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-AH0bwzsnGaGE82Ds1pDeZkVY2GXEB7RqHYw+WAt69/4=";
|
|
};
|
|
|
|
pnpmDeps = pnpm.fetchDeps {
|
|
inherit (finalAttrs) src pname version;
|
|
hash = "sha256-OpQg/ZZ4M2vszMZeCJAKzqGduxexZfIVe3Jy/hG3Yu0=";
|
|
};
|
|
|
|
cargoRoot = "src-tauri";
|
|
buildAndTestSubdir = finalAttrs.cargoRoot;
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
inherit (finalAttrs) pname version src;
|
|
sourceRoot = "${finalAttrs.src.name}/${finalAttrs.cargoRoot}";
|
|
hash = "sha256-jbdshb+Kjnh/yKQlCVaYT3/RQ6Zyo2dm72EToLsbqxc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cargo-tauri.hook
|
|
nodejs
|
|
pkg-config
|
|
pnpm.configHook
|
|
rustPlatform.cargoSetupHook
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
libsoup
|
|
openssl
|
|
webkitgtk_4_0
|
|
];
|
|
|
|
meta = {
|
|
description = "A Beautiful Private and Secure Desktop Investment Tracking Application";
|
|
homepage = "https://wealthfolio.app/";
|
|
license = lib.licenses.agpl3Only;
|
|
mainProgram = "wealthfolio";
|
|
maintainers = with lib.maintainers; [ kilianar ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|