18 desktopItem = makeDesktopItem {
22 comment = "Calculate Investment Portfolio Performance";
23 desktopName = "Portfolio Performance";
24 categories = [ "Office" ];
27 runtimeLibs = lib.makeLibraryPath [
32 stdenv.mkDerivation rec {
33 pname = "PortfolioPerformance";
37 url = "https://github.com/buchen/portfolio/releases/download/${version}/PortfolioPerformance-${version}-linux.gtk.x86_64.tar.gz";
38 hash = "sha256-Q36pQkxFMwwb6qHZYqer/em6G4TlFmFwtFhB0YUsOlw=";
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 PATH : ${openjdk17}/bin
62 mkdir -p $out/share/applications
63 cp ${desktopItem}/share/applications/* $out/share/applications
64 mkdir -p $out/share/pixmaps
65 ln -s $out/portfolio/icon.xpm $out/share/pixmaps/portfolio.xpm
68 passthru.updateScript = gitUpdater { url = "https://github.com/buchen/portfolio.git"; };
71 description = "Simple tool to calculate the overall performance of an investment portfolio";
72 homepage = "https://www.portfolio-performance.info/";
73 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
74 license = licenses.epl10;
75 maintainers = with maintainers; [
80 mainProgram = "portfolio";
81 platforms = [ "x86_64-linux" ];