23 stdenv.mkDerivation (finalAttrs: {
24 pname = "tradingview";
29 url = "https://api.snapcraft.io/api/v1/snaps/download/nJdITJ6ZJxdvfu8Ch7n5kH5P99ClzBYV_${finalAttrs.revision}.snap";
30 hash = "sha256-qGQZKl8h23H8npdIBeVw3aCZPZiCfPsawzQxUY31Ujs=";
69 cp -r squashfs-root $out/share/tradingview
70 rm -rf $out/share/tradingview/meta
72 install -Dm444 squashfs-root/meta/gui/tradingview.desktop -t $out/share/applications
73 substituteInPlace $out/share/applications/tradingview.desktop --replace \$\{SNAP}/meta/gui/icon.png tradingview
75 mkdir $out/share/icons
76 cp squashfs-root/meta/gui/icon.png $out/share/icons/tradingview.png
79 makeBinaryWrapper $out/share/tradingview/tradingview $out/bin/tradingview --prefix LD_LIBRARY_PATH : ${ lib.makeLibraryPath finalAttrs.buildInputs }
85 description = "Charting platform for traders and investors";
86 homepage = "https://www.tradingview.com/desktop/";
87 changelog = "https://www.tradingview.com/support/solutions/43000673888/";
88 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
89 license = licenses.unfree;
90 maintainers = with maintainers; [ prominentretail ];
91 platforms = [ "x86_64-linux" ];
92 mainProgram = "tradingview";