Skip to content

Commit 8d75e9b

Browse files
authored
portfolio: 0.72.2 -> 0.73.0 (NixOS#369408)
2 parents 79feb86 + 7f40a2c commit 8d75e9b

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

pkgs/by-name/po/portfolio/package.nix

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ let
3333
in
3434
stdenvNoCC.mkDerivation (finalAttrs: {
3535
pname = "PortfolioPerformance";
36-
version = "0.72.2";
36+
version = "0.73.0";
3737

3838
src = fetchurl {
3939
url = "https://github.com/buchen/portfolio/releases/download/${finalAttrs.version}/PortfolioPerformance-${finalAttrs.version}-linux.gtk.x86_64.tar.gz";
40-
hash = "sha256-IYidpwN82j/XKUV+Z3V2pNkxTh9BTTCYD+322ILxZgU=";
40+
hash = "sha256-GCP1lvdXzvdUMKBZnSyoLBJ3sxI2/4JKAuDrtGZQJxo=";
4141
};
4242

4343
nativeBuildInputs = [
@@ -49,9 +49,43 @@ stdenvNoCC.mkDerivation (finalAttrs: {
4949
dontBuild = true;
5050

5151
installPhase = ''
52+
runHook preInstall
53+
5254
mkdir -p $out/portfolio
5355
cp -av ./* $out/portfolio
5456
57+
# Remove all jna plugins that does not match the system
58+
rm -fR $out/portfolio/plugins/com.sun.jna*/com/sun/jna/{\
59+
aix-ppc,\
60+
aix-ppc64,\
61+
darwin-aarch64,\
62+
darwin-x86-64,\
63+
dragonflybsd-x86-64,\
64+
freebsd-aarch64,\
65+
freebsd-x86,\
66+
freebsd-x86-64,\
67+
linux-aarch64,\
68+
linux-arm,\
69+
linux-armel,\
70+
linux-loongarch64,\
71+
linux-mips64el,\
72+
linux-ppc,\
73+
linux-ppc64le,\
74+
linux-riscv64,\
75+
linux-s390x,\
76+
linux-x86,\
77+
openbsd-x86,\
78+
openbsd-x86-64,\
79+
sunos-sparc,\
80+
sunos-sparcv9,\
81+
sunos-x86,\
82+
sunos-x86-64,\
83+
win32,\
84+
win32-aarch64,\
85+
win32-x86,\
86+
win32-x86-64\
87+
}
88+
5589
makeWrapper $out/portfolio/PortfolioPerformance $out/bin/portfolio \
5690
--prefix LD_LIBRARY_PATH : "${runtimeLibs}" \
5791
--prefix PATH : ${openjdk21}/bin
@@ -61,6 +95,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
6195
cp ${desktopItem}/share/applications/* $out/share/applications
6296
mkdir -p $out/share/pixmaps
6397
ln -s $out/portfolio/icon.xpm $out/share/pixmaps/portfolio.xpm
98+
99+
runHook postInstall
64100
'';
65101

66102
passthru.updateScript = gitUpdater { url = "https://github.com/buchen/portfolio.git"; };

0 commit comments

Comments
 (0)