depot/third_party/nixpkgs/pkgs/by-name/we/wealthfolio/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

79 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cargo-tauri,
jq,
libsoup_3,
moreutils,
nodejs,
openssl,
pkg-config,
pnpm_9,
rustPlatform,
webkitgtk_4_1,
wrapGAppsHook3,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "wealthfolio";
version = "1.0.24";
src = fetchFromGitHub {
owner = "afadil";
repo = "wealthfolio";
rev = "v${finalAttrs.version}";
hash = "sha256-3EuZXP4CTUcc9tlIdfAQfvwK5RZXcBe/8YkyjL/ZOVg=";
};
pnpmDeps = pnpm_9.fetchDeps {
inherit (finalAttrs) src pname version;
hash = "sha256-0mjflUoqVJzshgpmyk32+Br61nkvcSjmjN7nf+7ZXJE=";
};
cargoRoot = "src-tauri";
buildAndTestSubdir = finalAttrs.cargoRoot;
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
sourceRoot = "${finalAttrs.src.name}/${finalAttrs.cargoRoot}";
hash = "sha256-QFIDiuoT4J4pv1VrU5twrcb9Eqo77bgsWQl1DURpghE=";
};
nativeBuildInputs = [
cargo-tauri.hook
jq
moreutils
nodejs
pkg-config
pnpm_9.configHook
rustPlatform.cargoSetupHook
wrapGAppsHook3
];
buildInputs = [
libsoup_3
openssl
webkitgtk_4_1
];
postPatch = ''
jq \
'.plugins.updater.endpoints = [ ]
| .bundle.createUpdaterArtifacts = false' \
src-tauri/tauri.conf.json \
| sponge src-tauri/tauri.conf.json
'';
passthru.updateScript = nix-update-script { };
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;
};
})