84 lines
1.7 KiB
Nix
84 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.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "afadil";
|
|
repo = "wealthfolio";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-HxzLGo+Tu8r58q7agagapfb69yxmFOLJFqDTQVYhpUE=";
|
|
};
|
|
|
|
pnpmDeps = pnpm_9.fetchDeps {
|
|
inherit (finalAttrs) src pname version;
|
|
hash = "sha256-wKj1jy/TDi8Cckx9et2XzX3yPnmfXMDrqv9c4+Yyhu4=";
|
|
};
|
|
|
|
cargoRoot = "src-tauri";
|
|
buildAndTestSubdir = finalAttrs.cargoRoot;
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit (finalAttrs)
|
|
pname
|
|
version
|
|
src
|
|
cargoRoot
|
|
;
|
|
hash = "sha256-9qxbgVEOmSaOBL6Vo3ZufNyn9wfs/FI+Pz38BiS91S8=";
|
|
};
|
|
|
|
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 = "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;
|
|
};
|
|
})
|