mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
88 lines
1.7 KiB
Nix
88 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cargo-tauri,
|
|
jq,
|
|
libsoup_3,
|
|
moreutils,
|
|
nodejs,
|
|
openssl,
|
|
pkg-config,
|
|
pnpm_10,
|
|
fetchPnpmDeps,
|
|
pnpmConfigHook,
|
|
rustPlatform,
|
|
webkitgtk_4_1,
|
|
wrapGAppsHook3,
|
|
nix-update-script,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "wealthfolio";
|
|
version = "3.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wealthfolio";
|
|
repo = "wealthfolio";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-5CqLHnwBzqA+yf/sQM2ie3xuO+5aM5EDA0bhZ6r1VIM=";
|
|
};
|
|
|
|
pnpmDeps = fetchPnpmDeps {
|
|
inherit (finalAttrs) src pname version;
|
|
pnpm = pnpm_10;
|
|
fetcherVersion = 4;
|
|
hash = "sha256-I9s1hFNb7oHYH5OhKmtMbMsmQZXE6ovpupusN6M1YKc=";
|
|
};
|
|
|
|
cargoRoot = ".";
|
|
buildAndTestSubdir = finalAttrs.cargoRoot;
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit (finalAttrs)
|
|
pname
|
|
version
|
|
src
|
|
cargoRoot
|
|
;
|
|
hash = "sha256-PFMmpQhQubMzomvLWMJZrriH9emwEzO/rTFCovzFt6w=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cargo-tauri.hook
|
|
jq
|
|
moreutils
|
|
nodejs
|
|
pkg-config
|
|
pnpmConfigHook
|
|
pnpm_10
|
|
rustPlatform.cargoSetupHook
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
libsoup_3
|
|
openssl
|
|
webkitgtk_4_1
|
|
];
|
|
|
|
postPatch = ''
|
|
jq \
|
|
'.plugins.updater.endpoints = [ ]
|
|
| .bundle.createUpdaterArtifacts = false' \
|
|
apps/tauri/tauri.conf.json \
|
|
| sponge apps/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;
|
|
};
|
|
})
|