17 desktopItem = makeDesktopItem {
21 comment = "Calculate Investment Portfolio Performance";
22 desktopName = "Portfolio Performance";
23 categories = [ "Office" ];
26 runtimeLibs = lib.makeLibraryPath [
34 stdenvNoCC.mkDerivation (finalAttrs: {
35 pname = "PortfolioPerformance";
39 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=";
52 mkdir -p $out/portfolio
53 cp -av ./* $out/portfolio
55 makeWrapper $out/portfolio/PortfolioPerformance $out/bin/portfolio \
56 --prefix LD_LIBRARY_PATH : "${runtimeLibs}" \
57 --prefix PATH : ${openjdk21}/bin
60 mkdir -p $out/share/applications
61 cp ${desktopItem}/share/applications/* $out/share/applications
62 mkdir -p $out/share/pixmaps
63 ln -s $out/portfolio/icon.xpm $out/share/pixmaps/portfolio.xpm
66 passthru.updateScript = gitUpdater { url = "https://github.com/buchen/portfolio.git"; };
69 description = "Simple tool to calculate the overall performance of an investment portfolio";
70 homepage = "https://www.portfolio-performance.info/";
71 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
72 license = lib.licenses.epl10;
73 maintainers = with lib.maintainers; [
78 mainProgram = "portfolio";
79 platforms = [ "x86_64-linux" ];