18 desktopItem = makeDesktopItem {
22 comment = "Calculate Investment Portfolio Performance";
23 desktopName = "Portfolio Performance";
24 categories = [ "Office" ];
27 runtimeLibs = lib.makeLibraryPath [
36 stdenvNoCC.mkDerivation (finalAttrs: {
37 pname = "PortfolioPerformance";
41 url = "https://github.com/buchen/portfolio/releases/download/${finalAttrs.version}/PortfolioPerformance-${finalAttrs.version}-linux.gtk.x86_64.tar.gz";
42 hash = "sha256-TVrxYz6hFWn2C0CrBnNCPxkfQkTjCXkNSeQp6eC/fjc=";
54 mkdir -p $out/portfolio
55 cp -av ./* $out/portfolio
57 makeWrapper $out/portfolio/PortfolioPerformance $out/bin/portfolio \
58 --prefix LD_LIBRARY_PATH : "${runtimeLibs}" \
59 --prefix CLASSPATH : "${swt}/jars/swt.jar" \
60 --prefix PATH : ${openjdk17}/bin
63 mkdir -p $out/share/applications
64 cp ${desktopItem}/share/applications/* $out/share/applications
65 mkdir -p $out/share/pixmaps
66 ln -s $out/portfolio/icon.xpm $out/share/pixmaps/portfolio.xpm
69 passthru.updateScript = gitUpdater { url = "https://github.com/buchen/portfolio.git"; };
72 description = "Simple tool to calculate the overall performance of an investment portfolio";
73 homepage = "https://www.portfolio-performance.info/";
74 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
75 license = lib.licenses.epl10;
76 maintainers = with lib.maintainers; [
81 mainProgram = "portfolio";
82 platforms = [ "x86_64-linux" ];