10 url = "https://github.com/RPGLogs/Uploaders-fflogs/releases/download/v${version}/fflogs-v${version}.AppImage";
11 hash = "sha256-hHgPtr25X2vZY+MKQn9FgkMLrF5vgklMQHzx4ksGrDk=";
13 extracted = appimageTools.extractType2 { inherit pname version src; };
15 appimageTools.wrapType2 {
16 inherit pname version src;
18 extraInstallCommands = ''
19 mkdir -p $out/share/applications
20 cp -r ${extracted}/usr/share/icons $out/share/
21 chmod -R +w $out/share/
22 mv $out/share/icons/hicolor/0x0 $out/share/icons/hicolor/512x512 # https://github.com/electron-userland/electron-builder/issues/5294
23 cp ${extracted}/fflogs.desktop $out/share/applications/
24 sed -i 's@^Exec=AppRun --no-sandbox@Exec=fflogs@g' $out/share/applications/fflogs.desktop
28 description = "Application for uploading Final Fantasy XIV combat logs to fflogs.com";
29 homepage = "https://www.fflogs.com/client/download";
30 downloadPage = "https://github.com/RPGLogs/Uploaders-fflogs/releases/latest";
31 license = licenses.unfree; # no license listed
32 mainProgram = "fflogs";
33 platforms = platforms.linux;
34 maintainers = with maintainers; [ sersorrel ];
35 sourceProvenance = with sourceTypes; [ binaryNativeCode ];