depot/third_party/nixpkgs/pkgs/by-name/we/wealthfolio/package.nix

64 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cargo-tauri,
libsoup_3,
nodejs,
openssl,
pkg-config,
pnpm,
rustPlatform,
webkitgtk_4_1,
wrapGAppsHook3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "wealthfolio";
version = "1.0.21";
src = fetchFromGitHub {
owner = "afadil";
repo = "wealthfolio";
rev = "v${finalAttrs.version}";
hash = "sha256-OWXmYFVr2nOzPeqLZHkteedcQ26bmkrsUF7HYUB+FQE=";
};
pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) src pname version;
hash = "sha256-U2NUym+6cvHkZ/ah2PaOCizdYeD5XzE8lpGnzhu0tW4=";
};
cargoRoot = "src-tauri";
buildAndTestSubdir = finalAttrs.cargoRoot;
cargoDeps = rustPlatform.fetchCargoTarball {
inherit (finalAttrs) pname version src;
sourceRoot = "${finalAttrs.src.name}/${finalAttrs.cargoRoot}";
hash = "sha256-W8VLswLZpybFPQ1JR4miW7BPDs27RazPGEhw2kyusIw=";
};
nativeBuildInputs = [
cargo-tauri.hook
nodejs
pkg-config
pnpm.configHook
rustPlatform.cargoSetupHook
wrapGAppsHook3
];
buildInputs = [
libsoup_3
openssl
webkitgtk_4_1
];
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;
};
})