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