Skip to content

Commit 1ed4d80

Browse files
committed
feat(wealthfolio): upgrade 2.1.0 -> 3.1.0
1 parent 2b429cf commit 1ed4d80

1 file changed

Lines changed: 40 additions & 2 deletions

File tree

parts/features/apps/wealthfolio.nix

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,45 @@
44
osConfig,
55
pkgs,
66
...
7-
}: {
7+
}: let
8+
wealthfolio = pkgs.unstable.wealthfolio.overrideAttrs (oldAttrs: rec {
9+
version = "3.1.0";
10+
11+
src = pkgs.fetchFromGitHub {
12+
owner = "afadil";
13+
repo = "wealthfolio";
14+
rev = "v${version}";
15+
hash = "sha256-/ft1QQicuwMiLNxojwyeWYeNejXabTDL7NOGWq+1Y5E=";
16+
};
17+
18+
pnpmDeps = pkgs.fetchPnpmDeps {
19+
inherit src;
20+
pname = "wealthfolio";
21+
inherit version;
22+
pnpm = pkgs.pnpm_9;
23+
fetcherVersion = 1;
24+
hash = "sha256-feM1jQsUDKVX4+x4Otdwx6AEM+FO7fiaJjmMbU6GDf8=";
25+
};
26+
27+
cargoRoot = ".";
28+
buildAndTestSubdir = cargoRoot;
29+
30+
cargoDeps = pkgs.unstable.rustPlatform.fetchCargoVendor {
31+
inherit src cargoRoot;
32+
pname = "wealthfolio";
33+
inherit version;
34+
hash = "sha256-+KulyYaenGA82xgZkkblcc2SVN4MWqHunpNmi5SX4fs=";
35+
};
36+
37+
postPatch = ''
38+
jq \
39+
'.plugins.updater.endpoints = [ ]
40+
| .bundle.createUpdaterArtifacts = false' \
41+
apps/tauri/tauri.conf.json \
42+
| sponge apps/tauri/tauri.conf.json
43+
'';
44+
});
45+
in {
846
home.persistence."/persist" = lib.mkIf osConfig.dendrix.isImpermanent {
947
directories = [
1048
".local/share/com.teymz.wealthfolio"
@@ -13,6 +51,6 @@
1351
];
1452
};
1553

16-
home.packages = [pkgs.unstable.wealthfolio];
54+
home.packages = [wealthfolio];
1755
};
1856
}

0 commit comments

Comments
 (0)